Buteo Synchronization Framework: SyncDaemonProxy.h Source File

Buteo Synchronization Framework

SyncDaemonProxy.h
1 /*
2 * This file is part of buteo-syncfw package
3 *
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 *
6 * Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1 as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
24 /*
25 * This file was generated by qdbusxml2cpp version 0.7
26 * Command line was: qdbusxml2cpp -p SyncDaemonProxy -N -c SyncDaemonProxy com.meego.msyncd.xml
27 *
28 * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
29 *
30 * This is an auto-generated file.
31 * Do not edit! All changes made to it will be lost.
32 */
33
34 #ifndef SYNCDAEMONPROXY_H_1280213538
35 #define SYNCDAEMONPROXY_H_1280213538
36
37 #include <QtCore/QObject>
38 #include <QtCore/QByteArray>
39 #include <QtCore/QList>
40 #include <QtCore/QMap>
41 #include <QtCore/QString>
42 #include <QtCore/QStringList>
43 #include <QtCore/QVariant>
44 #include <QtDBus/QtDBus>
45
48 class SyncDaemonProxy: public QDBusAbstractInterface
49 {
50 Q_OBJECT
51 public:
53 static inline const char *staticInterfaceName()
54 {
55 return "com.meego.msyncd";
56 }
57
58 public:
60 SyncDaemonProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
61
63 ~SyncDaemonProxy();
64
65 public Q_SLOTS: // METHODS
66
68 inline Q_NOREPLY void abortSync(const QString &aProfileId)
69 {
70 QList<QVariant> argumentList;
71 argumentList << qVariantFromValue(aProfileId);
72 callWithArgumentList(QDBus::NoBlock, QLatin1String("abortSync"), argumentList);
73 }
74
76 inline QDBusPendingReply<bool> addProfile(const QString &aProfileAsXml)
77 {
78 QList<QVariant> argumentList;
79 argumentList << qVariantFromValue(aProfileAsXml);
80 return asyncCallWithArgumentList(QLatin1String("addProfile"), argumentList);
81 }
82
84 inline QDBusPendingReply<QStringList> allVisibleSyncProfiles()
85 {
86 QList<QVariant> argumentList;
87 return callWithArgumentList(QDBus::Block, QLatin1String("allVisibleSyncProfiles"), argumentList);
88 }
89
91 inline QDBusPendingReply<bool> getBackUpRestoreState()
92 {
93 QList<QVariant> argumentList;
94 return asyncCallWithArgumentList(QLatin1String("getBackUpRestoreState"), argumentList);
95 }
96
98 inline QDBusPendingReply<QString> getLastSyncResult(const QString &aProfileId)
99 {
100 QList<QVariant> argumentList;
101 argumentList << qVariantFromValue(aProfileId);
102 return asyncCallWithArgumentList(QLatin1String("getLastSyncResult"), argumentList);
103 }
104
106 inline QDBusPendingReply<bool> isLastSyncScheduled(const QString &aProfileId)
107 {
108 QList<QVariant> argumentList;
109 argumentList << qVariantFromValue(aProfileId);
110 return asyncCallWithArgumentList(QLatin1String("isLastSyncScheduled"), argumentList);
111 }
112
114 inline QDBusPendingReply<int> lastSyncMajorCode(const QString &aProfileId)
115 {
116 QList<QVariant> argumentList;
117 argumentList << qVariantFromValue(aProfileId);
118 return asyncCallWithArgumentList(QLatin1String("lastSyncMajorCode"), argumentList);
119 }
120
122 inline QDBusPendingReply<int> lastSyncMinorCode(const QString &aProfileId)
123 {
124 QList<QVariant> argumentList;
125 argumentList << qVariantFromValue(aProfileId);
126 return asyncCallWithArgumentList(QLatin1String("lastSyncMinorCode"), argumentList);
127 }
129 inline QDBusPendingReply<QString> lastSyncTime(const QString &aProfileId)
130 {
131 QList<QVariant> argumentList;
132 argumentList << qVariantFromValue(aProfileId);
133 return asyncCallWithArgumentList(QLatin1String("lastSyncTime"), argumentList);
134 }
135
137 inline Q_NOREPLY void releaseStorages(const QStringList &aStorageNames)
138 {
139 QList<QVariant> argumentList;
140 argumentList << qVariantFromValue(aStorageNames);
141 callWithArgumentList(QDBus::NoBlock, QLatin1String("releaseStorages"), argumentList);
142 }
143
145 inline QDBusPendingReply<bool> removeProfile(const QString &aProfileId)
146 {
147 QList<QVariant> argumentList;
148 argumentList << qVariantFromValue(aProfileId);
149 return asyncCallWithArgumentList(QLatin1String("removeProfile"), argumentList);
150 }
151
153 inline QDBusPendingReply<bool> requestStorages(const QStringList &aStorageNames)
154 {
155 QList<QVariant> argumentList;
156 argumentList << qVariantFromValue(aStorageNames);
157 return asyncCallWithArgumentList(QLatin1String("requestStorages"), argumentList);
158 }
159
161 inline QDBusPendingReply<QStringList> runningSyncs()
162 {
163 QList<QVariant> argumentList;
164 return asyncCallWithArgumentList(QLatin1String("runningSyncs"), argumentList);
165 }
166
168 inline QDBusPendingReply<bool> saveSyncResults(const QString &aProfileId, const QString &aSyncResults)
169 {
170 QList<QVariant> argumentList;
171 argumentList << qVariantFromValue(aProfileId) << qVariantFromValue(aSyncResults);
172 return asyncCallWithArgumentList(QLatin1String("saveSyncResults"), argumentList);
173 }
174
176 inline QDBusPendingReply<bool> setSyncSchedule(const QString &aProfileId, const QString &aScheduleAsXml)
177 {
178 QList<QVariant> argumentList;
179 argumentList << qVariantFromValue(aProfileId) << qVariantFromValue(aScheduleAsXml);
180 return asyncCallWithArgumentList(QLatin1String("setSyncSchedule"), argumentList);
181 }
182
184 inline QDBusPendingReply<bool> startSync(const QString &aProfileId)
185 {
186 QList<QVariant> argumentList;
187 argumentList << qVariantFromValue(aProfileId);
188 return asyncCallWithArgumentList(QLatin1String("startSync"), argumentList);
189 }
190
192 inline QDBusPendingReply<QString> syncProfile(const QString &aProfileId)
193 {
194 QList<QVariant> argumentList;
195 argumentList << qVariantFromValue(aProfileId);
196 return callWithArgumentList(QDBus::Block, QLatin1String("syncProfile"), argumentList);
197 }
198
200 inline QDBusPendingReply<QStringList> syncProfilesByKey(const QString &aKey, const QString &aValue)
201 {
202 QList<QVariant> argumentList;
203 argumentList << qVariantFromValue(aKey) << qVariantFromValue(aValue);
204 return asyncCallWithArgumentList(QLatin1String("syncProfilesByKey"), argumentList);
205 }
206
208 inline QDBusPendingReply<QStringList> syncProfilesByType(const QString &aType)
209 {
210 QList<QVariant> argumentList;
211 argumentList << qVariantFromValue(aType);
212 return asyncCallWithArgumentList(QLatin1String("syncProfilesByType"), argumentList);
213 }
214
216 inline QDBusPendingReply<bool> updateProfile(const QString &aProfileAsXml)
217 {
218 QList<QVariant> argumentList;
219 argumentList << qVariantFromValue(aProfileAsXml);
220 return asyncCallWithArgumentList(QLatin1String("updateProfile"), argumentList);
221 }
222
223 Q_SIGNALS: // SIGNALS
224
226 void backupDone();
227
229 void backupInProgress();
230
232 void restoreDone();
233
235 void restoreInProgress();
236
238 void resultsAvailable(const QString &aProfileName, const QString &aResultsAsXml);
239
241 void signalProfileChanged(const QString &aProfileName, int aChangeType, const QString &aProfileAsXml);
242
244 void syncStatus(const QString &aProfileName, int aStatus, const QString &aMessage, int aErrorCode);
245
247 void transferProgress(const QString &aProfileName, int aTransferDatabase, int aTransferType, const QString &aMimeType,
248 int aCommittedItems);
249 };
250
251 #endif
QList
Definition: SyncBackupAdaptor.h:40
SyncDaemonProxy
Proxy class for interface com.meego.msyncd.
Definition: SyncDaemonProxy.h:49
SyncDaemonProxy::addProfile
QDBusPendingReply< bool > addProfile(const QString &aProfileAsXml)
Definition: SyncDaemonProxy.h:76
SyncDaemonProxy::backupInProgress
void backupInProgress()
Definition: moc_SyncDaemonProxy.cpp:358
SyncDaemonProxy::getBackUpRestoreState
QDBusPendingReply< bool > getBackUpRestoreState()
Definition: SyncDaemonProxy.h:91
SyncDaemonProxy::updateProfile
QDBusPendingReply< bool > updateProfile(const QString &aProfileAsXml)
Definition: SyncDaemonProxy.h:216
SyncDaemonProxy::getLastSyncResult
QDBusPendingReply< QString > getLastSyncResult(const QString &aProfileId)
Definition: SyncDaemonProxy.h:98
SyncDaemonProxy::removeProfile
QDBusPendingReply< bool > removeProfile(const QString &aProfileId)
Definition: SyncDaemonProxy.h:145
SyncDaemonProxy::staticInterfaceName
static const char * staticInterfaceName()
returns Interface Name
Definition: SyncDaemonProxy.h:53
SyncDaemonProxy::requestStorages
QDBusPendingReply< bool > requestStorages(const QStringList &aStorageNames)
Definition: SyncDaemonProxy.h:153
SyncDaemonProxy::allVisibleSyncProfiles
QDBusPendingReply< QStringList > allVisibleSyncProfiles()
Definition: SyncDaemonProxy.h:84
SyncDaemonProxy::syncProfilesByKey
QDBusPendingReply< QStringList > syncProfilesByKey(const QString &aKey, const QString &aValue)
Definition: SyncDaemonProxy.h:200
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)
Definition: moc_SyncDaemonProxy.cpp:397
SyncDaemonProxy::saveSyncResults
QDBusPendingReply< bool > saveSyncResults(const QString &aProfileId, const QString &aSyncResults)
Definition: SyncDaemonProxy.h:168
SyncDaemonProxy::backupDone
void backupDone()
Definition: moc_SyncDaemonProxy.cpp:352
SyncDaemonProxy::~SyncDaemonProxy
~SyncDaemonProxy()
Definition: SyncDaemonProxy.cpp:47
SyncDaemonProxy::lastSyncMinorCode
QDBusPendingReply< int > lastSyncMinorCode(const QString &aProfileId)
Definition: SyncDaemonProxy.h:122
SyncDaemonProxy::isLastSyncScheduled
QDBusPendingReply< bool > isLastSyncScheduled(const QString &aProfileId)
Definition: SyncDaemonProxy.h:106
SyncDaemonProxy::syncStatus
void syncStatus(const QString &aProfileName, int aStatus, const QString &aMessage, int aErrorCode)
Definition: moc_SyncDaemonProxy.cpp:390
SyncDaemonProxy::setSyncSchedule
QDBusPendingReply< bool > setSyncSchedule(const QString &aProfileId, const QString &aScheduleAsXml)
Definition: SyncDaemonProxy.h:176
SyncDaemonProxy::resultsAvailable
void resultsAvailable(const QString &aProfileName, const QString &aResultsAsXml)
Definition: moc_SyncDaemonProxy.cpp:376
SyncDaemonProxy::signalProfileChanged
void signalProfileChanged(const QString &aProfileName, int aChangeType, const QString &aProfileAsXml)
Definition: moc_SyncDaemonProxy.cpp:383
SyncDaemonProxy::restoreInProgress
void restoreInProgress()
Definition: moc_SyncDaemonProxy.cpp:370
SyncDaemonProxy::releaseStorages
Q_NOREPLY void releaseStorages(const QStringList &aStorageNames)
Definition: SyncDaemonProxy.h:137
SyncDaemonProxy::startSync
QDBusPendingReply< bool > startSync(const QString &aProfileId)
Definition: SyncDaemonProxy.h:184
SyncDaemonProxy::runningSyncs
QDBusPendingReply< QStringList > runningSyncs()
Definition: SyncDaemonProxy.h:161
SyncDaemonProxy::syncProfilesByType
QDBusPendingReply< QStringList > syncProfilesByType(const QString &aType)
Definition: SyncDaemonProxy.h:208
SyncDaemonProxy::syncProfile
QDBusPendingReply< QString > syncProfile(const QString &aProfileId)
Definition: SyncDaemonProxy.h:192
SyncDaemonProxy::restoreDone
void restoreDone()
Definition: moc_SyncDaemonProxy.cpp:364
SyncDaemonProxy::lastSyncMajorCode
QDBusPendingReply< int > lastSyncMajorCode(const QString &aProfileId)
Definition: SyncDaemonProxy.h:114
SyncDaemonProxy::lastSyncTime
QDBusPendingReply< QString > lastSyncTime(const QString &aProfileId)
Definition: SyncDaemonProxy.h:129
SyncDaemonProxy::SyncDaemonProxy
SyncDaemonProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=0)
Definition: SyncDaemonProxy.cpp:41