Buteo Synchronization Framework: SyncBackupProxy.h Source File

Buteo Synchronization Framework

SyncBackupProxy.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 #ifndef SYNCBACKUPPROXY_H
25 #define SYNCBACKUPPROXY_H
26
27 #include <QtDBus>
28 #include <QObject>
29 #include <QString>
30
31 namespace Buteo {
32
40 class SyncBackupProxy : public QObject
41 {
42 Q_OBJECT
43 Q_CLASSINFO("D-Bus Interface", "com.nokia.backupclient")
44
45 public:
46
47 signals:
48
49
54 void backupDone();
55
60 void startBackup();
61
66 void restoreDone();
67
72 void startRestore();
73
74 public slots:
75
83 virtual uchar backupStarts (const QDBusMessage &message) = 0;
84
91 virtual uchar backupFinished (const QDBusMessage &message) = 0;
92
100 virtual uchar restoreStarts (const QDBusMessage &message) = 0;
101
108 virtual uchar restoreFinished (const QDBusMessage &message) = 0;
109
113 virtual bool getBackUpRestoreState() = 0;
114
115 };
116 }
117 #endif // SYNCBACKUPPROXY_H
Buteo::SyncBackupProxy
Defines a D-Bus backup proxy for the backupclient.
Definition: SyncBackupProxy.h:41
Buteo::SyncBackupProxy::restoreFinished
virtual uchar restoreFinished(const QDBusMessage &message)=0
Sets the required params and starts the servers.
Buteo::SyncBackupProxy::getBackUpRestoreState
virtual bool getBackUpRestoreState()=0
Requests the current state og backup/restore operation.
Buteo::SyncBackupProxy::restoreStarts
virtual uchar restoreStarts(const QDBusMessage &message)=0
Sets the required params and stops the servers and any running sync sessions.
Buteo::SyncBackupProxy::restoreDone
void restoreDone()
Notifies about completion of restore opertaion.
Definition: moc_SyncBackupProxy.cpp:246
Buteo::SyncBackupProxy::backupFinished
virtual uchar backupFinished(const QDBusMessage &message)=0
Sets the required params and starts the servers.
Buteo::SyncBackupProxy::startBackup
void startBackup()
Notifies about starting of backup.
Definition: moc_SyncBackupProxy.cpp:240
Buteo::SyncBackupProxy::startRestore
void startRestore()
Notifies about starting of restore operation.
Definition: moc_SyncBackupProxy.cpp:252
Buteo::SyncBackupProxy::backupStarts
virtual uchar backupStarts(const QDBusMessage &message)=0
Sets the required params and stops the servers and any running sync sessions.
Buteo::SyncBackupProxy::backupDone
void backupDone()
Notifies about completion of backup.
Definition: moc_SyncBackupProxy.cpp:234