ButeoSynchronizationFramework
ClientPlugin.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 #ifndef CLIENTPLUGIN_H
24 #define CLIENTPLUGIN_H
25 
26 #include "SyncPluginBase.h"
27 #include "SyncProfile.h"
28 #include <QMetaType>
29 
30 namespace Buteo {
31 
32 class PluginCbInterface;
33 
38 {
39  Q_OBJECT;
40 
41 public:
42 
49  ClientPlugin( const QString& aPluginName,
50  const SyncProfile& aProfile,
51  PluginCbInterface* aCbInterface );
52 
57  virtual ~ClientPlugin();
58 
64  virtual bool startSync() = 0;
65 
68  SyncProfile &profile() { return iProfile; }
69 
70 protected:
71 
74 
75 private:
76 
77 };
78 
79 }
80 
81 #endif // CLIENTPLUGIN_H
virtual ~ClientPlugin()
Destructor.
Definition: ClientPlugin.cpp:35
SyncProfile & profile()
access to profile owned and used by this instance
Definition: ClientPlugin.h:68
Definition: AccountsHelper.h:31
SyncProfile iProfile
Sync Profile Object that the plugin is currently operating on.
Definition: ClientPlugin.h:73
Interface which client and server plugins can use to communicate with synchronization daemon...
Definition: PluginCbInterface.h:38
virtual bool startSync()=0
Starts synchronization.
Base class for client and server plugins.
Definition: SyncPluginBase.h:45
A top level synchronization profile.
Definition: SyncProfile.h:47
Base class for client plugins.
Definition: ClientPlugin.h:37
ClientPlugin(const QString &aPluginName, const SyncProfile &aProfile, PluginCbInterface *aCbInterface)
Constructor.
Definition: ClientPlugin.cpp:27