BackgroundSync implementation.
More...
#include <BackgroundSync.h>
|
| | BackgroundSync (QObject *aParent) |
| | Constructor. More...
|
| |
|
virtual | ~BackgroundSync () |
| | Destructor.
|
| |
| bool | set (const QString &aProfName, int seconds) |
| | Schedules a background sync for this profile. More...
|
| |
| bool | remove (const QString &aProfName) |
| | Removes background sync for a profile. More...
|
| |
|
void | removeAll () |
| | Removes all background syncs for all profiles.
|
| |
| bool | setSwitch (const QString &aProfName, const QDateTime &aSwitchTime) |
| | Schedules a switch(rush/off-rush) for a background sync running for this profile, the switch should be added after the background activity. More...
|
| |
| bool | removeSwitch (const QString &aProfName) |
| | Removes a switch(rush/off-rush) for a profile. More...
|
| |
BackgroundSync implementation.
This class manages background syncs for different profiles.
◆ BackgroundSync()
| BackgroundSync::BackgroundSync |
( |
QObject * |
aParent | ) |
|
◆ onBackgroundSwitchRunning
| void BackgroundSync::onBackgroundSwitchRunning |
( |
const QString & |
aProfName | ) |
|
|
signal |
This signal will be emitted when a switch timer for particular profile is triggered.
- Parameters
-
| aProfName | Name of the profile for which switch timer is triggered. |
◆ onBackgroundSyncCompleted
| void BackgroundSync::onBackgroundSyncCompleted |
( |
QString |
aProfName | ) |
|
|
slot |
Called when background sync is completed.
- Parameters
-
| aProfName | Name of the profile for which background sync is completed. |
◆ onBackgroundSyncRunning
| void BackgroundSync::onBackgroundSyncRunning |
( |
QString |
aProfName | ) |
|
|
signal |
This signal will be emitted when a background sync timer for particular profile is triggered.
- Parameters
-
| aProfName | Name of the profile for which background sync timer is triggered. |
◆ remove()
| bool BackgroundSync::remove |
( |
const QString & |
aProfName | ) |
|
Removes background sync for a profile.
- Parameters
-
| aProfName | Name of the profile. |
◆ removeSwitch()
| bool BackgroundSync::removeSwitch |
( |
const QString & |
aProfName | ) |
|
Removes a switch(rush/off-rush) for a profile.
- Parameters
-
| aProfName | Name of the profile. |
◆ set()
| bool BackgroundSync::set |
( |
const QString & |
aProfName, |
|
|
int |
seconds |
|
) |
| |
Schedules a background sync for this profile.
The beat will be generated between minWaitTime and maxWaitTime seconds
- Parameters
-
| aProfName | Name of the profile. |
| seconds | Sync frequency in seconds |
- Returns
- Success indicator.
◆ setSwitch()
| bool BackgroundSync::setSwitch |
( |
const QString & |
aProfName, |
|
|
const QDateTime & |
aSwitchTime |
|
) |
| |
Schedules a switch(rush/off-rush) for a background sync running for this profile, the switch should be added after the background activity.
- Parameters
-
| aProfName | Name of the profile. |
| aSwitchTime | when the switch will occurs |
- Returns
- Success indicator.
The documentation for this class was generated from the following files: