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
31namespace Buteo {
32
40class SyncBackupProxy : public QObject
41{
42 Q_OBJECT
43 Q_CLASSINFO("D-Bus Interface", "com.nokia.backupclient")
44
45public:
46
47signals:
52 void backupDone();
53
58 void startBackup();
59
64 void restoreDone();
65
70 void startRestore();
71
72public slots:
80 virtual uchar backupStarts (const QDBusMessage &message) = 0;
81
88 virtual uchar backupFinished (const QDBusMessage &message) = 0;
89
97 virtual uchar restoreStarts (const QDBusMessage &message) = 0;
98
105 virtual uchar restoreFinished (const QDBusMessage &message) = 0;
106
110 virtual bool getBackUpRestoreState() = 0;
111
112};
113}
114#endif // SYNCBACKUPPROXY_H
Defines a D-Bus backup proxy for the backupclient.
Definition SyncBackupProxy.h:41
virtual uchar restoreFinished(const QDBusMessage &message)=0
Sets the required params and starts the servers.
virtual bool getBackUpRestoreState()=0
Requests the current state og backup/restore operation.
virtual uchar restoreStarts(const QDBusMessage &message)=0
Sets the required params and stops the servers and any running sync sessions.
void restoreDone()
Notifies about completion of restore opertaion.
Definition moc_SyncBackupProxy.cpp:246
virtual uchar backupFinished(const QDBusMessage &message)=0
Sets the required params and starts the servers.
void startBackup()
Notifies about starting of backup.
Definition moc_SyncBackupProxy.cpp:240
void startRestore()
Notifies about starting of restore operation.
Definition moc_SyncBackupProxy.cpp:252
virtual uchar backupStarts(const QDBusMessage &message)=0
Sets the required params and stops the servers and any running sync sessions.
void backupDone()
Notifies about completion of backup.
Definition moc_SyncBackupProxy.cpp:234