ClientPlugin.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 CLIENTPLUGIN_H
#define CLIENTPLUGIN_H
#include "SyncPluginBase.h"
#include "SyncProfile.h"
#include <QMetaType>
namespace Buteo {
class PluginCbInterface;
class ClientPlugin : public SyncPluginBase
{
Q_OBJECT
public:
ClientPlugin(const QString &aPluginName,
const SyncProfile &aProfile,
PluginCbInterface *aCbInterface);
virtual ~ClientPlugin();
virtual bool startSync() = 0;
SyncProfile &profile()
{
return iProfile;
}
protected:
SyncProfile iProfile;
};
}
#endif // CLIENTPLUGIN_H
Buteo::ClientPlugin::startSync
virtual bool startSync()=0
Starts synchronization.
Buteo::ClientPlugin::ClientPlugin
ClientPlugin(const QString &aPluginName, const SyncProfile &aProfile, PluginCbInterface *aCbInterface)
Constructor.
Definition ClientPlugin.cpp:28
Buteo::ClientPlugin::profile
SyncProfile & profile()
access to profile owned and used by this instance
Definition ClientPlugin.h:67
Buteo::ClientPlugin::iProfile
SyncProfile iProfile
Sync Profile Object that the plugin is currently operating on.
Definition ClientPlugin.h:74
Buteo::ClientPlugin::~ClientPlugin
virtual ~ClientPlugin()
Destructor.
Definition ClientPlugin.cpp:36
Buteo::PluginCbInterface
Interface which client and server plugins can use to communicate with synchronization daemon.
Definition PluginCbInterface.h:39
Buteo::SyncPluginBase::SyncPluginBase
SyncPluginBase(const QString &aPluginName, const QString &aProfileName, PluginCbInterface *aCbInterface)
Constructor.
Definition SyncPluginBase.cpp:30
Buteo::SyncProfile
A top level synchronization profile.
Definition SyncProfile.h:49