Class for storing alarms.
More...
#include <SyncAlarmInventory.h>
Class for storing alarms.
This class stores alarms for scheduled synchronizations. The main elements are the sync time and the alarm id
SyncAlarmInventory::SyncAlarmInventory |
( |
| ) |
|
The alarm inventory constructor Always Call init() before using other methods of this class
SyncAlarmInventory::~SyncAlarmInventory |
( |
| ) |
|
The alarm inventory destructor
int SyncAlarmInventory::addAlarm |
( |
QDateTime |
alarmTime | ) |
|
Method to add an alarm.
- Parameters
-
alarmTime | - time of the alarm as QDateTime |
- Returns
- id of the alarm if alarm was added successfully. else 0
bool SyncAlarmInventory::init |
( |
| ) |
|
Creates and Initialize the alarms database. also Creates the timers Please call this function to make sure the database is initialised properly.
- Returns
- - status of the initialisation
bool SyncAlarmInventory::removeAlarm |
( |
int |
alarmId | ) |
|
Method to remove an alarm
- Parameters
-
alarmId | - id of the alarm to remove |
- Returns
- status of the remove
void SyncAlarmInventory::removeAllAlarms |
( |
| ) |
|
Method to remove all alarms
void SyncAlarmInventory::triggerAlarm |
( |
int |
alarmId | ) |
|
|
signal |
Signal triggered when an alarm expired.
- Parameters
-
alarmId | - id of the alarm that got triggered. |
The documentation for this class was generated from the following files: