ButeoSynchronizationFramework
Public Member Functions | List of all members
Buteo::TargetResults Class Reference

Sync results for one target. More...

#include <TargetResults.h>

Public Member Functions

 TargetResults (const TargetResults &aSource)
 Copy constructor. More...
 
 TargetResults (const QString &aTargetName, ItemCounts aLocalItems, ItemCounts aRemoteItems)
 Constructor. More...
 
 TargetResults (const QDomElement &aRoot)
 Constructs TargetResults from XML. More...
 
 ~TargetResults ()
 Destructor.
 
TargetResultsoperator= (const TargetResults &aRhs)
 Assignment operator. More...
 
QDomElement toXml (QDomDocument &aDoc) const
 Exports the target results to XML. More...
 
QString targetName () const
 Gets the target name. More...
 
ItemCounts localItems () const
 Gets the counts of items added, deleted and modified locally. More...
 
ItemCounts remoteItems () const
 Gets the counts of items added, deleted and modified at remote. More...
 

Detailed Description

Sync results for one target.

TargetResults contains information about how many items were added, deleted and modified in a specific sync target during the sync session.

Constructor & Destructor Documentation

TargetResults::TargetResults ( const TargetResults aSource)

Copy constructor.

Parameters
aSourceCopy source.
TargetResults::TargetResults ( const QString &  aTargetName,
ItemCounts  aLocalItems,
ItemCounts  aRemoteItems 
)

Constructor.

Parameters
aTargetNameName of the target.
aLocalItemsCounts of local items.
aRemoteItemsCounts of remote items.
TargetResults::TargetResults ( const QDomElement &  aRoot)
explicit

Constructs TargetResults from XML.

Parameters
aRootRoot element of the XML representation.

Member Function Documentation

ItemCounts TargetResults::localItems ( ) const

Gets the counts of items added, deleted and modified locally.

Returns
Item counts.
TargetResults & TargetResults::operator= ( const TargetResults aRhs)

Assignment operator.

Parameters
aRhsSource.
ItemCounts TargetResults::remoteItems ( ) const

Gets the counts of items added, deleted and modified at remote.

Returns
Item counts.
QString TargetResults::targetName ( ) const

Gets the target name.

Returns
Target name.
QDomElement TargetResults::toXml ( QDomDocument &  aDoc) const

Exports the target results to XML.

Parameters
aDocParent 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: