ButeoSynchronizationFramework
ServerPlugin.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 SERVERPLUGIN_H_4399340943904399349843
24 #define SERVERPLUGIN_H_4399340943904399349843
25 
26 #include "SyncPluginBase.h"
27 #include "Profile.h"
28 #include <QObject>
29 #include <QString>
30 
31 namespace Buteo {
32 
37 {
38  Q_OBJECT;
39 
40 public:
41 
48  ServerPlugin( const QString& aPluginName,
49  const Profile& aProfile,
50  PluginCbInterface* aCbInterface );
51 
55  virtual ~ServerPlugin();
56 
62  virtual bool startListen() = 0;
63 
67  virtual void stopListen() = 0;
68 
74  virtual void suspend() = 0;
75 
79  virtual void resume() = 0;
80 
81 signals:
82 
88  void newSession(const QString &aDestination);
89 
90 protected:
91 
94 };
95 
96 }
97 
98 #endif //SERVERPLUGIN_H_4399340943904399349843
This class represents a single profile, a collection of settings or data releated to some entity...
Definition: Profile.h:52
virtual void resume()=0
Resume suspended activity.
Definition: AccountsHelper.h:31
virtual void suspend()=0
Suspend activity.
void newSession(const QString &aDestination)
Signal sent when a new sync session is received by the server.
Definition: moc_ServerPlugin.cpp:124
Base class for server plugins.
Definition: ServerPlugin.h:36
Interface which client and server plugins can use to communicate with synchronization daemon...
Definition: PluginCbInterface.h:38
virtual ~ServerPlugin()
Destructor.
Definition: ServerPlugin.cpp:35
ServerPlugin(const QString &aPluginName, const Profile &aProfile, PluginCbInterface *aCbInterface)
Constructor.
Definition: ServerPlugin.cpp:27
Profile iProfile
Profile Object that the server plugin operates on.
Definition: ServerPlugin.h:93
Base class for client and server plugins.
Definition: SyncPluginBase.h:45
virtual void stopListen()=0
Stop listening for sync requests.
virtual bool startListen()=0
Start listening for sync requests.