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 |
( |
QObject * |
aParent | ) |
|
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. |
void BackgroundSync::onBackgroundSyncCompleted |
( |
QString |
aProfName | ) |
|
|
slot |
Called when background sync is completed.
- Parameters
-
aProfName | Name of the profile for which background sync is completed. |
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. |
bool BackgroundSync::remove |
( |
const QString & |
aProfName | ) |
|
Removes background sync for a profile.
- Parameters
-
aProfName | Name of the profile. |
bool BackgroundSync::removeSwitch |
( |
const QString & |
aProfName | ) |
|
Removes a switch(rush/off-rush) for a profile.
- Parameters
-
aProfName | Name of the profile. |
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.
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: