blob: 4cfe6519ae4c12818d49784b91c12639082e4991 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* Copyright (C) 2010 Intel Corporation
*/
#ifndef INCL_SYNCEVO_BUTEOBRIDGE
#define INCL_SYNCEVO_BUTEOBRIDGE
#include <config.h>
#include <libsyncpluginmgr/ClientPlugin.h>
#include <syncevo/declarations.h>
namespace SyncEvo {
class ButeoBridge : public Buteo::ClientPlugin
{
Q_OBJECT;
public:
ButeoBridge(const QString &pluginName,
const Buteo::SyncProfile &profile,
Buteo::PluginCbInterface *cbInterface);
// implementation of ClientPlugin interface
virtual bool startSync();
virtual bool init();
virtual bool uninit();
public slots:
virtual void connectivityStateChanged(Sync::ConnectivityType type,
bool state);
private:
/** config name to be used by sync, set in init() */
std::string m_config;
};
extern "C" ButeoBridge *createPlugin(const QString &pluginName,
const Buteo::SyncProfile &profile,
Buteo::PluginCbInterface *cbInterface);
extern "C" void destroyPlugin(ButeoBridge *client);
} // namespace SyncEvo
#endif // INCL_SYNCEVO_BUTEOBRIDGE
|