Buteo Synchronization Framework
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:
47  ServerPlugin(const QString &aPluginName,
48  const Profile &aProfile,
49  PluginCbInterface *aCbInterface);
50 
54  virtual ~ServerPlugin();
55 
61  virtual bool startListen() = 0;
62 
66  virtual void stopListen() = 0;
67 
73  virtual void suspend() = 0;
74 
78  virtual void resume() = 0;
79 
80 signals:
81 
87  void newSession(const QString &aDestination);
88 
89 protected:
92 };
93 
94 }
95 
96 #endif //SERVERPLUGIN_H_4399340943904399349843
Interface which client and server plugins can use to communicate with synchronization daemon.
Definition: PluginCbInterface.h:39
This class represents a single profile, a collection of settings or data releated to some entity.
Definition: Profile.h:53
Base class for server plugins.
Definition: ServerPlugin.h:37
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:130
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:91
virtual bool startListen()=0
Start listening for sync requests.
virtual void resume()=0
Resume suspended activity.
virtual void stopListen()=0
Stop listening for sync requests.
virtual ~ServerPlugin()
Destructor.
Definition: ServerPlugin.cpp:35
Base class for client and server plugins.
Definition: SyncPluginBase.h:46