Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
It should be noted that, in the technical solution provided by the present invention, the execution subject of the embodiment is a terminal device, the terminal device is a mobile terminal or a fixed terminal, the mobile terminal may be a smart phone, a tablet computer, a motion picture expert compressed standard audio layer 3 (MP 3), a Personal Digital Assistant (PDA), and the like, and details are not described in the following embodiments.
Fig. 1 is a flowchart of an alarm control method according to an embodiment of the present invention. Referring to fig. 1, this embodiment specifically includes:
101. acquiring at least one sub-alarm task in preset alarm tasks, wherein each alarm response in the alarm tasks is one sub-alarm task;
in this embodiment, a one-time alarm response is a one-time alarm behavior of the mobile terminal, and the alarm response has a unique alarm time.
For an alarm task, if the alarm task is started only once, the alarm task only contains one alarm response, that is, the alarm task divided according to the alarm response contains one sub-alarm task, if the alarm task is a cyclic task, that is, the alarm task is started once every preset time length, the alarm task contains a plurality of alarm responses, that is, the alarm task divided according to the alarm response contains a plurality of sub-alarm tasks, and if the alarm task includes a plurality of single start tasks and/or cyclic tasks, the alarm task contains a plurality of sub-alarm responses, that is, the alarm task divided according to the alarm response contains a plurality of sub-alarm tasks. For the embodiments of the present invention, the alarm control method is the same for an alarm including one alarm response or a plurality of alarm responses, and therefore, in the subsequent embodiments, only the alarm task includes a plurality of alarm responses, that is, the alarm task divided according to the alarm response includes a plurality of sub-alarm tasks is taken as an example for description.
Corresponding to the specific alarm tasks described above, the following are exemplified: (1) when the alarm task is started only once, for example, the time of the alarm task is 2012-9-26 days 09: 00 min, the alarm task divided according to the alarm response only comprises the sub alarm tasks responding to 2012-9-26 days 09: 00 min; (2) in the case of an alarm task cycle task, for example, the time of the alarm task is monday to friday 09 o 00 min, the alarm tasks divided according to the alarm response include 5N alarm tasks of monday to friday 09 o 00 min response, where N is the number of weeks of the cycle; (3) in case the alarm task comprises a plurality of single start tasks and/or cycle tasks, for example, the alarm task has a time of 2012-9-26 days 09 o ' clock 00, 2012-9-27 days 09 o ' clock 00 and Monday to Fridays 09 o ' clock 00, the divided alarm task according to the alarm response comprises 2+5N sub-alarm tasks, where N is the number of cycles of the cycle.
For step 101, specifically, according to a preset alarm response in an alarm task, the alarm task is divided, each alarm response in the alarm task is used as a sub-alarm task, and at least one sub-alarm task is obtained from the divided sub-alarm tasks.
In the embodiment of the invention, in order to facilitate the user to control some sub alarm tasks and not influence the whole alarm task, at least one sub alarm task can be obtained from the alarm tasks, thereby facilitating the subsequent display and processing. It should be noted that, the embodiment of the present invention does not limit the specific number of the acquired sub alarm tasks.
In another embodiment of the present invention, at least one sub alarm task in the alarm task can be obtained by comparing the time of each sub alarm task with the current time.
102. Providing an entry corresponding to the at least one sub-alarm task;
preferably, the entry may be any shortcut, such as an icon selected by the user or a default icon of the mobile terminal, or the entry may be an entry generated according to a sub-alarm task, and the entry may include the time of the sub-alarm task and/or a prompt for the sub-alarm task, for example, if the time of the sub-alarm task is 2012-9-26 days 15:00, then the shortcut includes "2012-9-26 days 15: 00".
The display of step 103 and the acquisition of step 102 may be performed at different times, the display process of step 103 only needs to be performed after step 102, preferably, the display of step 103 may be triggered by any operation of the mobile terminal, for example, the mobile terminal switches to the screen locking state, or the mobile terminal switches from the screen locking state to the screen unlocking state, or the calendar function of the mobile terminal is invoked, and the specific triggering manner may be set or adjusted by a technician or a user.
Preferably, when providing the entry corresponding to the at least one sub alarm task obtained in step 103, only one entry corresponding to one sub alarm task may be provided at a time, or entries corresponding to a plurality of sub alarm tasks may be provided at the same time, and preferably, the providing may be implemented in a manner of displaying a corresponding icon.
103. And receiving an instruction for canceling the sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry.
In an embodiment of the present invention, the entry may be a triggerable cancel button. When the user needs to control the sub-alarm tasks, touch screen operation can be performed on any one or more of the icons provided on the screen through fingers to trigger a corresponding instruction of the mobile terminal, for example, a cancel instruction.
According to the alarm control method provided by the embodiment of the invention, each alarm response in the alarm task is a sub-alarm task by acquiring at least one sub-alarm task in the preset alarm tasks; providing an entry corresponding to the at least one sub-alarm task; and receiving an instruction for canceling the sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry. By adopting the technical scheme of the invention, each sub alarm task and the whole alarm task are treated separately, so that the sub alarm task is closed in advance, the whole alarm task is not influenced while the sub alarm task is operated, the resetting of the whole alarm task is avoided, the operation is simplified, and the user experience is improved.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, the step 101 "obtaining at least one sub alarm task of preset alarm tasks" specifically includes the steps 101a or 101 b:
101a, acquiring preset number of sub-alarm tasks in the alarm tasks according to the alarm time of each sub-alarm task in the alarm tasks and the sequence of the alarm time from near to far from the current time;
for the alarm tasks, the alarm tasks comprise at least one sub-alarm task, the alarm time of each sub-alarm task is different, and the time interval between the sub-alarm task and the current time has a near-far sequence, so that when at least one sub-alarm task is obtained, the sub-alarm tasks with the number of the previous preset values in the alarm tasks can be obtained according to the sequence from near to far between the alarm time and the current time. For example, if the mobile terminal allows shortcuts to be displayed for 2 sub-alarm tasks at the same time, and an alarm task responds from monday to friday at 10 points per day, then the alarm task includes 5N sub-alarm tasks, 2012-9-2610:00, 2012-9-2710: 00, 2012-9-2810: and when the alarm time is from near to far, acquiring 2012-9-2610:00, 2012-9-2710 in the alarm task at point 00 and 2012-9-2910:00 … according to the sequence of the time intervals of the alarm time and the current time from near to far: 00 o' clock two sub alarm tasks.
102b, acquiring a sub alarm task with the alarm time closest to the current time in the alarm tasks according to the alarm time of each sub alarm task in the alarm tasks.
For an alarm task, the alarm task comprises at least one sub-alarm task, the alarm time of each sub-alarm task is different and has a time sequence, and if only an entry corresponding to one sub-alarm task is allowed to be provided or the number of entries provided by a user is one, a sub-alarm task with the alarm time closest to the current time in the alarm task is obtained. For the example in step 102a above, the sub alarm task obtained at this time is 2012-9-2610: 00.
In another embodiment, the sub-alarm tasks may be obtained by comparing the current time with the alarm time, specifically, for each sub-alarm task in the alarm tasks, a time difference exists between the alarm time of each alarm sub-task and the current time, and if it is allowed to provide entries corresponding to the sub-alarm tasks with the preset value at the same time, or the number of the provided entries set by the user is the preset value, the sub-alarm tasks with the preset value in the alarm tasks are obtained in the order from small to large. For example, the mobile terminal allows to display shortcuts of 2 sub-alarm tasks simultaneously, the current time being 2012-9-267:00, while there are three sub-alarm tasks among the alarm tasks, 2012-9-2610:00, 2012-9-2611: point 00, 2012-9-2612: and 00, acquiring 2012-9-2610:00, 2012-9-2611: 00 o' clock two sub alarm tasks.
By adopting the technical scheme of the invention, each sub-alarm task and the whole alarm task are treated separately, so that the sub-alarm task is closed in advance, the whole alarm task is not influenced while the sub-alarm task is operated, the reset of the alarm task is avoided, the operation is simplified, and the user experience is improved. Furthermore, the shortcut of at least one sub alarm task in the alarm tasks is displayed according to the time difference, so that a user can know the sub alarm task in advance and process the sub alarm task according to the displayed sub alarm task.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, the step 102 "providing an entry corresponding to the at least one sub-alarm task" specifically includes the following steps 102a and/or 102 b:
102a, when in a screen locking state, providing an entry corresponding to the at least one sub alarm task;
in the embodiment of the present invention, a specific time for providing an entry is not limited, but an entry is provided according to a state change of a display screen of the mobile terminal, and when the display screen of the mobile terminal is switched to a screen locking state, an entry corresponding to the at least one sub alarm task is provided on a display interface of the screen locking, and preferably, in combination with the technical features of step 101a or 101b, an entry with a preset number of entries may be provided, or an entry provided by a sub alarm task closest to the current time among the alarm tasks may be provided.
Through when the lock screen state, provide the entry that sub-alarm clock task corresponds, can play the effect of reminding sub-alarm clock task when not influencing user's normal use.
102b, determining the providing time of the shortcut of the at least one sub alarm task, wherein the providing time is earlier than the alarm time of the sub alarm task with the alarm time closest to the current time, the providing time is different from the alarm time of the sub alarm task with the alarm time closest to the current time by a preset time length, and when the providing time arrives, providing an entry corresponding to the at least one sub alarm task.
For the current sub-alarm task, the determination of the provided time can be performed when the alarm task is set, and can also be performed after the sub-alarm task with the latest alarm time is determined, the determination time only needs to be beyond the preset time before the sub-alarm task is executed, and the specific time is not limited here.
Preferably, the preset time duration may be a default time duration of the operating system of the mobile terminal, or may also be a time duration set by the user, for example, 1 hour or 2 hours, and the specific value thereof is not limited herein.
As another preferred embodiment, when determining the providing time, only the providing time of the sub alarm task with the closest alarm time in the at least one sub alarm task may be determined, and the providing time may be used as the providing time of the at least one sub alarm task, and when the providing time arrives, the entry corresponding to the at least one sub alarm task is provided.
The preset duration can provide an entrance corresponding to at least one sub-alarm task in advance, so that the alarm clock plays a role in reminding, and can provide a sufficient time for a user to process the sub-alarm task.
It is also possible for steps 103a and 103b to be performed simultaneously, i.e. step 103 may be performed as follows: determining the providing time of the shortcut of the at least one sub-alarm task, wherein the providing time is earlier than the alarm time of the sub-alarm task with the alarm time closest to the current time, the difference between the providing time and the alarm time of the sub-alarm task with the alarm time closest to the current time is preset time length, and when the providing time of the at least one sub-alarm task reaches, if the mobile terminal is in a screen locking state, providing an entry corresponding to the at least one sub-alarm task on a display screen of the mobile terminal. It can be understood that, after the providing time of the at least one sub-alarm task is reached, whenever the mobile terminal switches to the screen locking state, an entry corresponding to the at least one sub-alarm task is provided on the display screen of the mobile terminal. Preferably, after the providing time of the at least one sub-alarm task is reached, whenever the mobile terminal switches to the screen locking state, an entry corresponding to the sub-alarm task closest to the current time is provided on a display screen of the mobile terminal.
By adopting the technical scheme of the invention, each sub-alarm task and the whole alarm task are treated separately, so that the sub-alarm task is closed in advance, the whole alarm task is not influenced while the sub-alarm task is operated, the reset of the alarm task is avoided, the operation is simplified, and the user experience is improved. Furthermore, by displaying the shortcut of the closest sub-alarm task on the display screen in the screen locking state in advance, the prompt function is achieved while the normal use of the user is not influenced.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, "receiving, by the entry, an instruction for canceling the sub alarm task corresponding to the entry and canceling the sub alarm task corresponding to the entry" in step 103 includes: and when the display screen is in a screen locking state, unlocking the display screen.
For the provision of the entry corresponding to the sub alarm task in the mobile terminal, the provision may be performed only when the display screen is in the screen-locking state, and therefore, once an instruction for canceling the sub alarm task corresponding to the entry is received through the entry, the sub alarm task corresponding to the entry is cancelled, and the display screen is unlocked while the sub alarm task is cancelled. Of course, the unlocking of the display screen may not be performed, and the sub-alarm task corresponding to the entry may be directly cancelled.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, step 103 "providing an entry corresponding to the at least one sub alarm task", then further includes: providing an interface for setting an alarm task when receiving an instruction for setting the alarm task through the entry.
In the embodiment of the present invention, the entry may provide two functions, one is to cancel the corresponding sub-alarm task, and the other is to set the alarm task, and a user may trigger and receive an instruction for canceling the sub-alarm task corresponding to the entry by operating the entry, and may trigger an instruction for setting the alarm task by a second preset operation on the entry. And when receiving an instruction for setting an alarm task through the inlet, directly calling an interface for setting the alarm task so as to display the interface for setting the alarm task.
By adopting the technical scheme of the invention, each sub-alarm task and the whole alarm task are treated separately, so that the sub-alarm task is closed in advance, the whole alarm task is not influenced while the sub-alarm task is operated, the reset of the alarm task is avoided, the operation is simplified, and the user experience is improved. Furthermore, by operating the displayed shortcut, the sub alarm task can be cancelled or the setting option of the alarm task can be directly entered, so that the complicated process that the alarm task needs to be manually unlocked and set is avoided, and the setting purpose can be quickly and rapidly achieved.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, an entry of the sub alarm task may be a shortcut, specifically, an icon, where both the instruction for canceling the sub alarm task corresponding to the entry and the instruction for setting the alarm task are triggered by a touch screen operation on the icon, where the touch screen operation is a first preset operation. Preferably, the first preset operation may be set or adjusted by a technician or an end user. It should be noted that, the mobile terminal is a terminal having a touch screen function, and for the terminal having the touch screen function, the instruction for setting the alarm task is triggered by a touch screen operation on an icon of the at least one sub-alarm task, where the touch screen operation is a first preset operation, such as a sliding operation in a certain direction. Specifically, the icon may be an icon that triggers an instruction for setting the alarm task by sliding left or right, for example, when the user slides the icon left, a command for canceling the sub alarm task corresponding to the entry is triggered, and when the user slides the icon right, a command for setting the alarm task to the alarm task is triggered. It should be noted that the left or right slide may be set by a technician at the time of development or adjusted by a user during use.
And when the instruction for canceling the sub alarm task corresponding to the entry and the instruction for setting the alarm task are not received through the entry, executing the sub alarm task according to the original setting of the sub alarm task, namely, if the time of the sub alarm task is reached, executing the sub alarm task.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, an entry of the sub alarm task may be a shortcut, specifically, an icon, where the instruction for canceling the sub alarm task corresponding to the entry is triggered by a touch screen operation on the entry, and the touch screen operation is a second preset operation.
Preferably, the second preset operation may be set or adjusted by a technician or an end user. It should be noted that, the mobile terminal is a terminal having a touch screen function, and for the terminal having the touch screen function, the instruction for canceling the sub-alarm task corresponding to the entry is triggered by a touch screen operation on the entry corresponding to the at least one sub-alarm task, where the touch screen operation is a second preset operation. Specifically, the entry may be an icon that triggers a setting instruction by sliding left or right, for example, when the user slides the shortcut left, a command for canceling the sub-alarm task corresponding to the entry is triggered, and when the user slides the shortcut right, a command for setting the alarm task is triggered. It should be noted that the left or right slide may be set by a technician at the time of development or adjusted by a user during use.
Optionally, on the basis of the technical solution of the embodiment shown in fig. 1, "receiving, by the entry, an instruction for canceling the sub alarm task corresponding to the entry, and canceling the sub alarm task corresponding to the entry" in step 104 further includes: and when the alarm task does not contain other sub alarm tasks except the sub alarm task corresponding to the entry, closing the alarm task. In the embodiment of the invention, the alarm tasks can comprise at least one sub-alarm task, when the sub-alarm task is cancelled, whether the alarm task comprises other sub-alarm tasks is judged, if so, other sub-alarm tasks are continuously executed, and if not, the alarm task is closed. If the alarm task is to alarm at 10 points per day in 9 months, if the alarm at 10 points of the day is cancelled in the last day of 9 months, the whole alarm task is closed if no other sub-alarm tasks exist in the current alarm task, and the process of manually cancelling the alarm task is saved.
All the above-mentioned alternative technical solutions can be combined in any combination in a combinable manner to form alternative embodiments of the present invention, which are not illustrated herein.
The embodiment of the invention also provides an alarm control method, which is explained by taking a mobile phone as an example of the mobile terminal.
After the prior art is improved, the scheme provided by this embodiment preferably adds a shortcut display function in a lock screen mode to the mobile phone, and in the lock screen mode, the mobile phone can trigger a shortcut displayed on the lock screen to control the setting corresponding to the shortcut, and at this time, the display screen can be directly unlocked or the setting corresponding to the shortcut can be controlled in the lock screen mode.
Accordingly, the method provided by the embodiment can avoid resetting the alarm task, and when the method is specifically implemented, the logic for implementing the method can be built in an operating system, or installed in a mobile phone in the form of a third-party Application (APP).
In the embodiment of the present invention, only the mobile terminal is taken as a mobile phone, and the mobile phone is currently in the screen locking state. As shown in fig. 2, the alarm control method provided by the embodiment of the present invention may include the following steps:
201. acquiring a latest sub-alarm task in preset alarm tasks, wherein each alarm response in the alarm tasks is a sub-alarm task;
for a mobile phone, an alarm function is provided, and a user can set the alarm function to achieve the purpose of presetting an alarm task. One alarm task comprises multiple alarm responses, one sub-alarm task is one alarm response, the alarm tasks can be divided according to the alarm responses in the alarm tasks, and each alarm response in the alarm tasks is taken as one sub-alarm task.
In the embodiment of the present invention, the division of the alarm task may be performed after the alarm task is set, or may be performed at a time set by a technician, for example, a preset time after the setting, or a preset time before the first alarm response of the alarm task, which is not limited in this embodiment.
For example, alarm tasks include Friday 11: 00 o, saturday 11: 00 o, sunday 11: 00, then, via step 201, "friday 11: 00 o' is obtained as the latest sub alarm task in the alarm tasks.
The embodiment of the invention is only described by taking the example of displaying the shortcut of one sub-alarm task.
202. Determining a providing time, wherein the providing time is earlier than the time of the sub alarm task, and the providing time is different from the time of the sub alarm task by a preset time length;
in this embodiment, the entry corresponding to the sub alarm task is used as an icon, and the providing manner is described as displaying on the screen as an example, so that the icon of the sub alarm task does not necessarily need to be displayed all the time, and the icon may be set to start displaying at a time before the alarm time of the day, so that a providing time may be determined, for example, 10 minutes ahead may be set, for example, the current time is friday 10:00 o, while the alarm task includes friday 11: 00 o, saturday 11: 00 o, sunday 11: 00, then by comparison of step 202, the "friday 11: 00 o' is obtained as the latest sub alarm task in the alarm tasks. With a preset time period of 10 minutes, then through step 202, it may be determined that friday 10: and 50 is the supply time.
In addition, if the sub alarm task is not cancelled, the display may be maintained until the alarm time of the sub alarm task arrives and the alarm responds, and once the sub alarm task is cancelled, the display need not be maintained.
203. When the providing time is up, displaying an icon corresponding to the latest sub-alarm task in the alarm tasks;
in the embodiment of the present invention, the mobile phone is currently in the screen locking state as an example for explanation, then the display in step 203 is performed on the mobile phone display screen in the screen locking state, and the specific display position of the icon may be set by a technician or adjusted by a user during use.
In another embodiment, the step 202-203 can be further replaced by the following steps: according to the preset alarm task, each alarm response in the alarm task is used as a sub-alarm task, and when the alarm task is in a screen locking state, an icon corresponding to the last sub-alarm task in the alarm task is displayed, so that as long as a screen locking page appears on a mobile phone, the icons corresponding to the sub-alarm tasks also appear synchronously.
As another preferred embodiment, the step 202-203 can be further replaced by the following steps: acquiring a sub-alarm task which is closest to the current time in preset alarm tasks, wherein each alarm response in the alarm tasks is a sub-alarm task; and determining providing time, wherein the providing time is earlier than the time of the sub-alarm tasks, the providing time is different from the time of the sub-alarm tasks by preset time length, and when the providing time is up, when the mobile phone is switched to a screen locking state, displaying an icon corresponding to the latest sub-alarm task in the alarm tasks on a display screen in the screen locking state.
204. When an instruction for canceling the sub alarm task corresponding to the icon is received through the icon, canceling the sub alarm task corresponding to the icon;
the icon of the sub alarm task can be an icon only used for closing the sub alarm task, and can also be an icon comprising an intuitive option, so that a user can trigger an instruction for canceling the sub alarm task or an instruction for setting the alarm task through touch screen operation of the icon.
When the mobile phone enters a working mode from a standby mode, firstly, a screen is lightened, at this time, a screen locking page is popped up, and the mobile phone can really enter the working page of the mobile phone only after the screen is unlocked.
After the sub alarm tasks corresponding to the icon are cancelled, if the preset alarm tasks further include at least one sub alarm task, that is, the preset alarm task is not completed yet, for example, the sub alarm tasks are still available on the current day or the subsequent date, the sub alarm tasks will continue without any influence; and if the sub alarm task corresponding to the icon is cancelled and no other sub alarm task is available subsequently, the corresponding complete alarm task is closed.
205. When an instruction for setting the alarm task is received through the icon, providing an interface for setting the alarm task;
in order to have better user experience and avoid the complicated setting of the alarm task, the mobile phone provided by the embodiment can also adjust the alarm icon, and adds an option for setting the alarm task. By adding the setting option in the icon, the latest alarm response, namely the sub-alarm task, can be closed, and the complete setting window of the current alarm task can be directly accessed. It should be noted that the call may be implemented by an app added to the mobile phone.
Referring to fig. 3, fig. 3 is an exemplary diagram of an icon provided in an embodiment of the present invention, where the icon includes: the method comprises the steps of alarm R, a cancel option and a set option, wherein a touch screen operation of sliding the screen to the right can trigger an instruction for canceling a sub-alarm task corresponding to an icon, and a touch screen operation of sliding the screen to the left can trigger an instruction for setting the alarm task.
Referring to fig. 4, fig. 4 is an exemplary diagram of an icon provided in an embodiment of the present invention, where the icon includes: the alarm clock comprises a center icon, an unlocking icon, an alarm clock icon, a telephone option and a short message option, when the center icon is dragged to an alarm clock icon area, an instruction for setting the alarm clock task is triggered, operations such as closing or setting can be carried out on sub alarm clock tasks, the center icon is dragged to the unlocking icon area, and the current screen locking state can be unlocked.
206. And when any instruction to the icon is not received, if the alarm time of the sub alarm task corresponding to the icon is up, executing the sub alarm task.
In the embodiment of the invention, the operation on the icon can realize the cancellation of the sub-alarm task or the setting of the alarm task, the processing is executed when the corresponding instruction is received, and the sub-alarm task is continuously executed when the instruction for setting or canceling is not received. In another embodiment, the icon is only used for canceling the sub-alarm task, and once the user clicks the icon, a canceling instruction is triggered, and the mobile terminal cancels the sub-alarm task.
According to the alarm control method provided by the embodiment of the invention, each alarm response in the alarm task is a sub-alarm task by acquiring at least one sub-alarm task in the preset alarm tasks; providing an entry corresponding to the at least one sub-alarm task; and receiving an instruction for canceling the sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry. By adopting the technical scheme of the invention, each sub alarm task and the whole alarm task are treated separately, so that the sub alarm task is closed in advance, the whole alarm task is not influenced while the sub alarm task is operated, the resetting of the whole alarm task is avoided, the operation is simplified, and the user experience is improved.
Fig. 5 is a schematic structural diagram of an alarm control device according to an embodiment of the present invention. Referring to fig. 5, the apparatus includes:
a sub-alarm task obtaining module 10, configured to obtain at least one sub-alarm task in preset alarm tasks, where each alarm response in the alarm tasks is a sub-alarm task;
an entry providing module 20 for providing an entry corresponding to the at least one sub alarm task;
and the sub-alarm task processing module 30 is configured to receive, through the entry, an instruction for canceling the sub-alarm task corresponding to the entry, and cancel the sub-alarm task corresponding to the entry.
Optionally, the sub-alarm task obtaining module 10 is configured to obtain, according to alarm time of each sub-alarm task in the alarm tasks, a preset number of sub-alarm tasks in the alarm tasks according to a sequence from a close alarm time to a current alarm time;
or,
the sub-alarm task obtaining module 10 is configured to obtain, according to the alarm time of each sub-alarm task in the alarm tasks, one sub-alarm task whose alarm time is closest to the current time in the alarm tasks.
The entry providing module 20 is configured to provide an entry corresponding to the at least one sub alarm task when the entry is in the screen lock state; and/or the presence of a gas in the gas,
the entry providing module 20 is configured to determine a providing time of a shortcut of the at least one sub alarm task, where the providing time is earlier than an alarm time of a sub alarm task whose alarm time is closest to a current time, and the providing time is different from the alarm time of the sub alarm task whose alarm time is closest to the current time by a preset time length, and when the providing time arrives, provide an entry corresponding to the at least one sub alarm task.
The device further comprises:
and the unlocking module 40 is used for unlocking the display screen when the display screen is in a screen locking state.
The device further comprises:
a closing module 50, configured to close the alarm task when the alarm task does not include any other sub-alarm task except the sub-alarm task corresponding to the entry.
The alarm control device in the embodiment shown in fig. 5 is described with all the above-mentioned alternative solutions as examples, and in practical applications, all the above-mentioned alternative solutions may be combined in any way to form the alternative solutions in the embodiment of the present invention, and no examples are given here.
The alarm control apparatus of this embodiment implements alarm control by using the above modules, and the implementation mechanism of the above related method embodiments is the same, and details of the above related method embodiments may be referred to, and are not described herein again.
It should be noted that: in the alarm control device provided in the above embodiment, only the division of the above functional modules is used for illustration when alarm control is performed, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the alarm control device and the alarm control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments, and are not described herein again.
According to the alarm control device provided by the embodiment of the invention, each alarm response in the alarm task is a sub-alarm task by acquiring at least one sub-alarm task in the preset alarm tasks; providing an entry corresponding to the at least one sub-alarm task; and receiving an instruction for canceling the sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry. By adopting the technical scheme of the invention, each sub alarm task and the whole alarm task are treated separately, so that the sub alarm task is closed in advance, the whole alarm task is not influenced while the sub alarm task is operated, the resetting of the whole alarm task is avoided, the operation is simplified, and the user experience is improved.
An embodiment of the present invention further provides an apparatus, where the apparatus includes:
a display screen;
one or more processors;
a memory; and
one or more modules (programs) stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have functionality to:
acquiring at least one sub-alarm task in preset alarm tasks, wherein each alarm response in the alarm tasks is one sub-alarm task;
providing an entry corresponding to the at least one sub-alarm task;
and receiving an instruction for canceling the sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry.
Preferably, the acquiring at least one sub alarm task in the preset alarm tasks includes:
acquiring preset values of sub-alarm tasks in the alarm tasks according to the alarm time of each sub-alarm task in the alarm tasks and the sequence of the alarm time from the near to the far from the current time;
or,
and acquiring a sub alarm task with the alarm time closest to the current time in the alarm tasks according to the alarm time of each sub alarm task in the alarm tasks.
Preferably, the providing of the entry corresponding to the at least one sub-alarm task is performed in the following manner:
when the alarm is in a screen locking state, providing an entry corresponding to the at least one sub alarm task;
or,
and determining the providing time of the shortcut of the at least one sub alarm task, wherein the providing time is earlier than the alarm time of the sub alarm task with the alarm time closest to the current time, the difference between the providing time and the alarm time of the sub alarm task with the alarm time closest to the current time is preset duration, and when the providing time arrives, providing an entry corresponding to the at least one sub alarm task.
Preferably, the one or more modules may further include the following functions:
and when the display screen is in a screen locking state, unlocking the display screen.
Preferably, the one or more modules may further include the following functions:
and when the alarm task does not contain other sub alarm tasks except the sub alarm task corresponding to the entry, closing the alarm task.
Embodiments of the present invention also provide a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device having one or more processors, the one or more modules may cause the device to perform the following steps (instructions):
acquiring at least one sub-alarm task in preset alarm tasks, wherein each alarm response in the alarm tasks is one sub-alarm task;
providing an entry corresponding to the at least one sub-alarm task;
and receiving an instruction for canceling the sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry.
Preferably, the acquiring at least one sub alarm task in the preset alarm tasks includes:
acquiring preset values of sub-alarm tasks in the alarm tasks according to the alarm time of each sub-alarm task in the alarm tasks and the sequence of the alarm time from the near to the far from the current time;
or,
and acquiring a sub alarm task with the alarm time closest to the current time in the alarm tasks according to the alarm time of each sub alarm task in the alarm tasks.
Preferably, the providing of the entry corresponding to the at least one sub-alarm task is performed in the following manner:
when the alarm is in a screen locking state, providing an entry corresponding to the at least one sub alarm task;
or,
and determining the providing time of the shortcut of the at least one sub alarm task, wherein the providing time is earlier than the alarm time of the sub alarm task with the alarm time closest to the current time, the difference between the providing time and the alarm time of the sub alarm task with the alarm time closest to the current time is preset duration, and when the providing time arrives, providing an entry corresponding to the at least one sub alarm task.
Receiving an instruction for canceling a sub alarm task corresponding to the entry through the entry, and after canceling the sub alarm task corresponding to the entry, the method further includes:
and when the display screen is in a screen locking state, unlocking the display screen.
Receiving an instruction for canceling a sub alarm task corresponding to the entry through the entry, and canceling the sub alarm task corresponding to the entry, wherein the method further comprises the following steps:
and when the alarm task does not contain other sub alarm tasks except the sub alarm task corresponding to the entry, closing the alarm task.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.