ServerPlugin.h
/*
* This file is part of buteo-syncfw package
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SERVERPLUGIN_H_4399340943904399349843
#define SERVERPLUGIN_H_4399340943904399349843
#include "SyncPluginBase.h"
#include "Profile.h"
#include <QObject>
#include <QString>
namespace Buteo {
class ServerPlugin : public SyncPluginBase
{
Q_OBJECT
public:
ServerPlugin(const QString &aPluginName,
const Profile &aProfile,
PluginCbInterface *aCbInterface);
virtual ~ServerPlugin();
virtual bool startListen() = 0;
virtual void stopListen() = 0;
virtual void suspend() = 0;
virtual void resume() = 0;
signals:
void newSession(const QString &aDestination);
protected:
Profile iProfile;
};
}
#endif //SERVERPLUGIN_H_4399340943904399349843
Buteo::PluginCbInterface
Interface which client and server plugins can use to communicate with synchronization daemon.
Definition PluginCbInterface.h:39
Buteo::Profile
This class represents a single profile, a collection of settings or data releated to some entity.
Definition Profile.h:53
Buteo::ServerPlugin::suspend
virtual void suspend()=0
Suspend activity.
Buteo::ServerPlugin::newSession
void newSession(const QString &aDestination)
Signal sent when a new sync session is received by the server.
Buteo::ServerPlugin::ServerPlugin
ServerPlugin(const QString &aPluginName, const Profile &aProfile, PluginCbInterface *aCbInterface)
Constructor.
Definition ServerPlugin.cpp:28
Buteo::ServerPlugin::iProfile
Profile iProfile
Profile Object that the server plugin operates on.
Definition ServerPlugin.h:89
Buteo::ServerPlugin::startListen
virtual bool startListen()=0
Start listening for sync requests.
Buteo::ServerPlugin::resume
virtual void resume()=0
Resume suspended activity.
Buteo::ServerPlugin::stopListen
virtual void stopListen()=0
Stop listening for sync requests.
Buteo::ServerPlugin::~ServerPlugin
virtual ~ServerPlugin()
Destructor.
Definition ServerPlugin.cpp:36
Buteo::SyncPluginBase::SyncPluginBase
SyncPluginBase(const QString &aPluginName, const QString &aProfileName, PluginCbInterface *aCbInterface)
Constructor.
Definition SyncPluginBase.cpp:30