SyncDaemonProxy.h
/*
* This file is part of buteo-syncfw package
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbusxml2cpp -p SyncDaemonProxy -N -c SyncDaemonProxy com.meego.msyncd.xml
*
* qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#ifndef SYNCDAEMONPROXY_H_1280213538
#define SYNCDAEMONPROXY_H_1280213538
#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>
class SyncDaemonProxy: public QDBusAbstractInterface
{
Q_OBJECT
public:
static inline const char *staticInterfaceName()
{
return "com.meego.msyncd";
}
public:
SyncDaemonProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
~SyncDaemonProxy();
public Q_SLOTS: // METHODS
inline Q_NOREPLY void abortSync(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
callWithArgumentList(QDBus::NoBlock, QLatin1String("abortSync"), argumentList);
}
inline QDBusPendingReply<bool> addProfile(const QString &aProfileAsXml)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileAsXml);
return asyncCallWithArgumentList(QLatin1String("addProfile"), argumentList);
}
inline QDBusPendingReply<QStringList> allVisibleSyncProfiles()
{
QList<QVariant> argumentList;
return callWithArgumentList(QDBus::Block, QLatin1String("allVisibleSyncProfiles"), argumentList);
}
inline QDBusPendingReply<bool> getBackUpRestoreState()
{
QList<QVariant> argumentList;
return asyncCallWithArgumentList(QLatin1String("getBackUpRestoreState"), argumentList);
}
inline QDBusPendingReply<QString> getLastSyncResult(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("getLastSyncResult"), argumentList);
}
inline QDBusPendingReply<bool> isLastSyncScheduled(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("isLastSyncScheduled"), argumentList);
}
inline QDBusPendingReply<int> lastSyncMajorCode(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("lastSyncMajorCode"), argumentList);
}
inline QDBusPendingReply<int> lastSyncMinorCode(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("lastSyncMinorCode"), argumentList);
}
inline QDBusPendingReply<QString> lastSyncTime(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("lastSyncTime"), argumentList);
}
inline Q_NOREPLY void releaseStorages(const QStringList &aStorageNames)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aStorageNames);
callWithArgumentList(QDBus::NoBlock, QLatin1String("releaseStorages"), argumentList);
}
inline QDBusPendingReply<bool> removeProfile(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("removeProfile"), argumentList);
}
inline QDBusPendingReply<bool> requestStorages(const QStringList &aStorageNames)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aStorageNames);
return asyncCallWithArgumentList(QLatin1String("requestStorages"), argumentList);
}
inline QDBusPendingReply<QStringList> runningSyncs()
{
QList<QVariant> argumentList;
return asyncCallWithArgumentList(QLatin1String("runningSyncs"), argumentList);
}
inline QDBusPendingReply<bool> saveSyncResults(const QString &aProfileId, const QString &aSyncResults)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId) << qVariantFromValue(aSyncResults);
return asyncCallWithArgumentList(QLatin1String("saveSyncResults"), argumentList);
}
inline QDBusPendingReply<bool> setSyncSchedule(const QString &aProfileId, const QString &aScheduleAsXml)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId) << qVariantFromValue(aScheduleAsXml);
return asyncCallWithArgumentList(QLatin1String("setSyncSchedule"), argumentList);
}
inline QDBusPendingReply<bool> startSync(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return asyncCallWithArgumentList(QLatin1String("startSync"), argumentList);
}
inline QDBusPendingReply<QString> syncProfile(const QString &aProfileId)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileId);
return callWithArgumentList(QDBus::Block, QLatin1String("syncProfile"), argumentList);
}
inline QDBusPendingReply<QStringList> syncProfilesByKey(const QString &aKey, const QString &aValue)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aKey) << qVariantFromValue(aValue);
return asyncCallWithArgumentList(QLatin1String("syncProfilesByKey"), argumentList);
}
inline QDBusPendingReply<QStringList> syncProfilesByType(const QString &aType)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aType);
return asyncCallWithArgumentList(QLatin1String("syncProfilesByType"), argumentList);
}
inline QDBusPendingReply<QStringList> profilesByType(const QString &aType)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aType);
return asyncCallWithArgumentList(QLatin1String("profilesByType"), argumentList);
}
inline QDBusPendingReply<bool> updateProfile(const QString &aProfileAsXml)
{
QList<QVariant> argumentList;
argumentList << qVariantFromValue(aProfileAsXml);
return asyncCallWithArgumentList(QLatin1String("updateProfile"), argumentList);
}
Q_SIGNALS: // SIGNALS
void backupDone();
void backupInProgress();
void restoreDone();
void restoreInProgress();
void resultsAvailable(const QString &aProfileName, const QString &aResultsAsXml);
void signalProfileChanged(const QString &aProfileName, int aChangeType, const QString &aProfileAsXml);
void syncStatus(const QString &aProfileName, int aStatus, const QString &aMessage, int aErrorCode);
void transferProgress(const QString &aProfileName, int aTransferDatabase, int aTransferType, const QString &aMimeType,
int aCommittedItems);
};
#endif
QList
Definition SyncBackupAdaptor.h:40
SyncDaemonProxy::allVisibleSyncProfiles
QDBusPendingReply< QStringList > allVisibleSyncProfiles()
Definition SyncDaemonProxy.h:84
SyncDaemonProxy::backupInProgress
void backupInProgress()
SyncDaemonProxy::startSync
QDBusPendingReply< bool > startSync(const QString &aProfileId)
Definition SyncDaemonProxy.h:184
SyncDaemonProxy::syncProfile
QDBusPendingReply< QString > syncProfile(const QString &aProfileId)
Definition SyncDaemonProxy.h:192
SyncDaemonProxy::runningSyncs
QDBusPendingReply< QStringList > runningSyncs()
Definition SyncDaemonProxy.h:161
SyncDaemonProxy::abortSync
Q_NOREPLY void abortSync(const QString &aProfileId)
Definition SyncDaemonProxy.h:68
SyncDaemonProxy::transferProgress
void transferProgress(const QString &aProfileName, int aTransferDatabase, int aTransferType, const QString &aMimeType, int aCommittedItems)
SyncDaemonProxy::profilesByType
QDBusPendingReply< QStringList > profilesByType(const QString &aType)
Definition SyncDaemonProxy.h:216
SyncDaemonProxy::staticInterfaceName
static const char * staticInterfaceName()
returns Interface Name
Definition SyncDaemonProxy.h:53
SyncDaemonProxy::backupDone
void backupDone()
SyncDaemonProxy::~SyncDaemonProxy
~SyncDaemonProxy()
Definition SyncDaemonProxy.cpp:47
SyncDaemonProxy::setSyncSchedule
QDBusPendingReply< bool > setSyncSchedule(const QString &aProfileId, const QString &aScheduleAsXml)
Definition SyncDaemonProxy.h:176
SyncDaemonProxy::syncStatus
void syncStatus(const QString &aProfileName, int aStatus, const QString &aMessage, int aErrorCode)
SyncDaemonProxy::updateProfile
QDBusPendingReply< bool > updateProfile(const QString &aProfileAsXml)
Definition SyncDaemonProxy.h:224
SyncDaemonProxy::resultsAvailable
void resultsAvailable(const QString &aProfileName, const QString &aResultsAsXml)
SyncDaemonProxy::signalProfileChanged
void signalProfileChanged(const QString &aProfileName, int aChangeType, const QString &aProfileAsXml)
SyncDaemonProxy::lastSyncMajorCode
QDBusPendingReply< int > lastSyncMajorCode(const QString &aProfileId)
Definition SyncDaemonProxy.h:114
SyncDaemonProxy::removeProfile
QDBusPendingReply< bool > removeProfile(const QString &aProfileId)
Definition SyncDaemonProxy.h:145
SyncDaemonProxy::restoreInProgress
void restoreInProgress()
SyncDaemonProxy::releaseStorages
Q_NOREPLY void releaseStorages(const QStringList &aStorageNames)
Definition SyncDaemonProxy.h:137
SyncDaemonProxy::lastSyncMinorCode
QDBusPendingReply< int > lastSyncMinorCode(const QString &aProfileId)
Definition SyncDaemonProxy.h:122
SyncDaemonProxy::saveSyncResults
QDBusPendingReply< bool > saveSyncResults(const QString &aProfileId, const QString &aSyncResults)
Definition SyncDaemonProxy.h:168
SyncDaemonProxy::getLastSyncResult
QDBusPendingReply< QString > getLastSyncResult(const QString &aProfileId)
Definition SyncDaemonProxy.h:98
SyncDaemonProxy::restoreDone
void restoreDone()
SyncDaemonProxy::syncProfilesByType
QDBusPendingReply< QStringList > syncProfilesByType(const QString &aType)
Definition SyncDaemonProxy.h:208
SyncDaemonProxy::lastSyncTime
QDBusPendingReply< QString > lastSyncTime(const QString &aProfileId)
Definition SyncDaemonProxy.h:129
SyncDaemonProxy::requestStorages
QDBusPendingReply< bool > requestStorages(const QStringList &aStorageNames)
Definition SyncDaemonProxy.h:153
SyncDaemonProxy::isLastSyncScheduled
QDBusPendingReply< bool > isLastSyncScheduled(const QString &aProfileId)
Definition SyncDaemonProxy.h:106
SyncDaemonProxy::syncProfilesByKey
QDBusPendingReply< QStringList > syncProfilesByKey(const QString &aKey, const QString &aValue)
Definition SyncDaemonProxy.h:200
SyncDaemonProxy::getBackUpRestoreState
QDBusPendingReply< bool > getBackUpRestoreState()
Definition SyncDaemonProxy.h:91
SyncDaemonProxy::SyncDaemonProxy
SyncDaemonProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=0)
Definition SyncDaemonProxy.cpp:41
SyncDaemonProxy::addProfile
QDBusPendingReply< bool > addProfile(const QString &aProfileAsXml)
Definition SyncDaemonProxy.h:76