Skip to content

Commit

Permalink
Merge branch 'reformat_code' into 'master'
Browse files Browse the repository at this point in the history
Reformat code

See merge request mer-core/buteo-syncfw!62
  • Loading branch information
pvuorela committed Apr 7, 2021
2 parents 250697d + 38c0ff4 commit 9923286
Show file tree
Hide file tree
Showing 182 changed files with 4,800 additions and 5,693 deletions.
28 changes: 14 additions & 14 deletions libbuteosyncfw/clientfw/SyncClientInterface.cpp
Expand Up @@ -27,60 +27,60 @@
using namespace Buteo;

SyncClientInterface::SyncClientInterface():
d_ptr(new SyncClientInterfacePrivate(this))
d_ptr(new SyncClientInterfacePrivate(this))
{

}

SyncClientInterface::~SyncClientInterface()
{
delete d_ptr;
d_ptr = NULL;
delete d_ptr;
d_ptr = nullptr;
}

bool SyncClientInterface::startSync(const QString &aProfileId) const
{
return d_ptr->startSync(aProfileId);
return d_ptr->startSync(aProfileId);
}

void SyncClientInterface::abortSync(const QString &aProfileId) const
{
d_ptr->abortSync(aProfileId);
d_ptr->abortSync(aProfileId);
}

QStringList SyncClientInterface::getRunningSyncList()
{
return d_ptr->getRunningSyncList();
return d_ptr->getRunningSyncList();
}

bool SyncClientInterface::removeProfile(QString &aProfileId)
{
return d_ptr->removeProfile(aProfileId);
return d_ptr->removeProfile(aProfileId);
}

bool SyncClientInterface::updateProfile(Buteo::SyncProfile &aProfile)
{
return d_ptr->updateProfile(aProfile);
return d_ptr->updateProfile(aProfile);
}

bool SyncClientInterface::setSyncSchedule(QString &aProfileId,SyncSchedule &aSchedule)
bool SyncClientInterface::setSyncSchedule(QString &aProfileId, SyncSchedule &aSchedule)
{
return d_ptr->setSyncSchedule(aProfileId,aSchedule);
return d_ptr->setSyncSchedule(aProfileId, aSchedule);
}

bool SyncClientInterface::saveSyncResults(const QString &aProfileId,const Buteo::SyncResults &aSyncResults)
bool SyncClientInterface::saveSyncResults(const QString &aProfileId, const Buteo::SyncResults &aSyncResults)
{
return d_ptr->saveSyncResults(aProfileId,aSyncResults);
return d_ptr->saveSyncResults(aProfileId, aSyncResults);
}

bool SyncClientInterface::getBackUpRestoreState()
{
return d_ptr->getBackUpRestoreState();
return d_ptr->getBackUpRestoreState();
}

bool SyncClientInterface::isValid()
{
return d_ptr->isValid();
return d_ptr->isValid();
}

Buteo::SyncResults SyncClientInterface::getLastSyncResult(const QString &aProfileId)
Expand Down
132 changes: 66 additions & 66 deletions libbuteosyncfw/clientfw/SyncClientInterface.h
Expand Up @@ -48,18 +48,18 @@ class SyncClientInterfacePrivate;
*/
class SyncClientInterface: public QObject
{
Q_OBJECT
Q_OBJECT

public:
/*!
* \brief Constructor
*/
SyncClientInterface();
/*!
* \brief Constructor
*/
SyncClientInterface();

/*!
* \brief Destructor
*/
~SyncClientInterface();
/*!
* \brief Destructor
*/
~SyncClientInterface();

/*!
* \brief Requests to starts synchronizing using a profile Id
Expand Down Expand Up @@ -105,15 +105,15 @@ class SyncClientInterface: public QObject
*
* \return status of the operation
*/
bool setSyncSchedule(QString &aProfileId,SyncSchedule &aSchedule);
bool setSyncSchedule(QString &aProfileId, SyncSchedule &aSchedule);

/*!
* \brief Save SyncResults to log.xml file.
* \param aProfileId to save result in corresponding file.
* \param aSyncResults to save in the \code <profileId>.log.xml \endcode
* \return status of the saveSyncResults
*/
bool saveSyncResults(const QString &aProfileId,const Buteo::SyncResults &aSyncResults);
bool saveSyncResults(const QString &aProfileId, const Buteo::SyncResults &aSyncResults);

/*!
* \brief This function should be called when sync profile has to be deleted
Expand All @@ -133,16 +133,16 @@ class SyncClientInterface: public QObject
*
*/
bool updateProfile(Buteo::SyncProfile &aSyncProfile);
/*!

/*!
* \brief This function returns true if backup/restore in progress else
* false.
*/
bool getBackUpRestoreState();

/*!
* \brief Use this function to understand if the creation of dbus connection to msyncd
* succeeded or not.
* succeeded or not.
* \return - status of the dbus object created for msyncd
*/
bool isValid();
Expand Down Expand Up @@ -170,7 +170,7 @@ class SyncClientInterface: public QObject
* \return The sync profile as Xml string.
*/
QString syncProfile(const QString &aProfileId);

/*! \brief Gets a sync profiles which matches the key-value.
*
* Loads and merges also all sub-profiles that are referenced from the
Expand All @@ -181,7 +181,7 @@ class SyncClientInterface: public QObject
* \return The sync profiles as Xml string list.
*/
QStringList syncProfilesByKey(const QString &aKey, const QString &aValue);

/*! \brief Gets a profiles matching the profile type.
*
* \param aType Type of the profile service/storage/sync.
Expand All @@ -190,56 +190,56 @@ class SyncClientInterface: public QObject
QStringList syncProfilesByType(const QString &aType);
signals:

/*! \brief Notifies about Backup start.
*
* This signal is sent when the backup framework is backing the sync related
* data
*/
void backupInProgress ();

/*! \brief Notifies about Backup done.
*
* This signal is sent when the backup framework has completed backing the sync related
* data.
*/
void backupDone();

/*! \brief Notifies about Restore start.
*
* This signal is sent when the backup framework is restoring the sync related
* data
*/
void restoreInProgress();

/*! \brief Notifies about Restore Done.
*
* This signal is sent when the backup framework has restored the sync related
* data
*/
void restoreDone();

/*! \brief Notifies about a change in profile.
*
* This signal is sent when the profile data is modified or when a profile
* is added or deleted in msyncd.
* \param aProfileId Id of the changed profile.
* \param aChangeType
* 0 (ADDITION): Profile was added.
* 1 (MODIFICATION): Profile was modified.
* 2 (DELETION): Profile was deleted.
/*! \brief Notifies about Backup start.
*
* This signal is sent when the backup framework is backing the sync related
* data
*/
void backupInProgress ();

/*! \brief Notifies about Backup done.
*
* This signal is sent when the backup framework has completed backing the sync related
* data.
*/
void backupDone();

/*! \brief Notifies about Restore start.
*
* This signal is sent when the backup framework is restoring the sync related
* data
*/
void restoreInProgress();

/*! \brief Notifies about Restore Done.
*
* This signal is sent when the backup framework has restored the sync related
* data
*/
void restoreDone();

/*! \brief Notifies about a change in profile.
*
* This signal is sent when the profile data is modified or when a profile
* is added or deleted in msyncd.
* \param aProfileId Id of the changed profile.
* \param aChangeType
* 0 (ADDITION): Profile was added.
* 1 (MODIFICATION): Profile was modified.
* 2 (DELETION): Profile was deleted.
* \param aChangedProfile changed sync profie as XMl string.
*
*/
void profileChanged(QString aProfileId,int aChangeType, QString aChangedProfile);

/*! \brief Notifies about the results of a recent sync for a profile
*
* This signal is sent after the sync has completed for a profile.
* \param aProfileId Id of the changed profile.
* \param aResults - Results of the sync
*
*/
void resultsAvailable(QString aProfileId , Buteo::SyncResults aResults);
*
*/
void profileChanged(QString aProfileId, int aChangeType, QString aChangedProfile);

/*! \brief Notifies about the results of a recent sync for a profile
*
* This signal is sent after the sync has completed for a profile.
* \param aProfileId Id of the changed profile.
* \param aResults - Results of the sync
*
*/
void resultsAvailable(QString aProfileId, Buteo::SyncResults aResults);

/*!
* \brief Notifies about a change in synchronization status.
Expand Down Expand Up @@ -282,7 +282,7 @@ class SyncClientInterface: public QObject
* \param aCommittedItems No. of items committed for this operation
*/
void transferProgress(QString aProfileId, int aTransferDatabase,
int aTransferType , QString aMimeType, int aCommittedItems );
int aTransferType, QString aMimeType, int aCommittedItems);

private:

Expand Down

0 comments on commit 9923286

Please sign in to comment.