PluginCbInterface.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 PLUGINCBINTERFACE_H
#define PLUGINCBINTERFACE_H
#include <QString>
#include "SyncPluginBase.h"
namespace Buteo {
class StoragePlugin;
class Profile;
class PluginCbInterface
{
public:
virtual ~PluginCbInterface() {}
virtual bool requestStorage(const QString &aStorageName,
const SyncPluginBase *aCaller) = 0;
virtual void releaseStorage(const QString &aStorageName,
const SyncPluginBase *aCaller) = 0;
virtual StoragePlugin *createStorage(const QString &aPluginName) = 0;
virtual void destroyStorage(StoragePlugin *aStorage) = 0;
virtual bool isConnectivityAvailable(Sync::ConnectivityType aType) = 0;
virtual Profile *getSyncProfileByRemoteAddress(const QString &aAddress) = 0;
virtual QString getValue(const QString &aAddress, const QString &aKey) = 0;
};
}
#endif
Buteo::PluginCbInterface
Interface which client and server plugins can use to communicate with synchronization daemon.
Definition PluginCbInterface.h:39
Buteo::PluginCbInterface::getValue
virtual QString getValue(const QString &aAddress, const QString &aKey)=0
Get a value for a property describing the remote device.
Buteo::PluginCbInterface::destroyStorage
virtual void destroyStorage(StoragePlugin *aStorage)=0
Destroys the given storage plug-in instance.
Buteo::PluginCbInterface::getSyncProfileByRemoteAddress
virtual Profile * getSyncProfileByRemoteAddress(const QString &aAddress)=0
tries to fetch a profile object based on the remote party's address (BT address for eg)
Buteo::PluginCbInterface::requestStorage
virtual bool requestStorage(const QString &aStorageName, const SyncPluginBase *aCaller)=0
Tries to reserve the given storage to the caller.
Buteo::PluginCbInterface::isConnectivityAvailable
virtual bool isConnectivityAvailable(Sync::ConnectivityType aType)=0
Returns whether connectivity domain is available.
Buteo::PluginCbInterface::releaseStorage
virtual void releaseStorage(const QString &aStorageName, const SyncPluginBase *aCaller)=0
Releases the given storage.
Buteo::PluginCbInterface::createStorage
virtual StoragePlugin * createStorage(const QString &aPluginName)=0
Creates a storage plug-in instance.
Buteo::Profile
This class represents a single profile, a collection of settings or data releated to some entity.
Definition Profile.h:53
Buteo::StoragePlugin
Base class for storage plugins.
Definition StoragePlugin.h:39
Buteo::SyncPluginBase
Base class for client and server plugins.
Definition SyncPluginBase.h:46