History of completed synchronization sessions and their results.
More...
#include <SyncLog.h>
History of completed synchronization sessions and their results.
Each SyncProfile has its own SyncLog associated to it. Loading and saving of SyncLog objects is handled by the ProfileManager. SyncLog is composed of SyncResults objects, one for each completed sync session.
SyncLog::SyncLog |
( |
const QString & |
aProfileName | ) |
|
|
explicit |
Constructs an empty log with the given profile name.
- Parameters
-
aProfileName | Name of the profile this log is related to. |
SyncLog::SyncLog |
( |
const QDomElement & |
aRoot | ) |
|
|
explicit |
Constructs a SyncLog from XML.
- Parameters
-
aRoot | Root element of the XML representation of the log. |
SyncLog::SyncLog |
( |
const SyncLog & |
aSource | ) |
|
Copy constructor.
- Parameters
-
void SyncLog::addResults |
( |
const SyncResults & |
aResults | ) |
|
Adds results to the sync log. Also makes sure that log size doesn't exceed given size limit.
- Parameters
-
Gets all results in the sync log.
- Returns
- List of results. The results are ordered by time so that the oldest results object is first in the list.
Gets the most recent results in the sync log.
- Returns
- The results. NULL if the log is empty.
QString SyncLog::profileName |
( |
| ) |
const |
Gets the name of the profile that owns this log.
- Returns
- Profile name.
QDomElement SyncLog::toXml |
( |
QDomDocument & |
aDoc | ) |
const |
Exports the log to XML.
- Parameters
-
aDoc | Parent document for the created XML elements. The created elements are not inserted to the document by this function, but the document is still required for creating the elements. |
- Returns
- Root element of the created XML.
The documentation for this class was generated from the following files: