3 /// Converter class for opensync 0.22 plugins
7 Copyright (C) 2009-2010, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #ifndef __BARRY_OSCONV22_H__
23 #define __BARRY_OSCONV22_H__
29 class Converter22
: public Converter
34 std::string
GrabField(const std::string
&cfg
, const std::string
&name
);
37 Converter22(OpenSync::API
&api
);
39 virtual bool IsPluginSupported(const std::string
&plugin_name
,
40 std::string
*appname
= 0) const;
41 virtual plugin_ptr
CreateAndLoadPlugin(const Member
&member
);
43 virtual std::string
GetPluginName(const Config::Barry
&) const;
44 virtual std::string
GetPluginName(const Config::Evolution
&) const;
45 virtual std::string
GetPluginName(const Config::Unsupported
&) const;
47 virtual bool IsConfigured(const Config::Barry
&) const;
48 virtual bool IsConfigured(const Config::Evolution
&) const;
49 virtual bool IsConfigured(const Config::Unsupported
&) const;
51 virtual void Load(Config::Barry
&config
, const Member
&member
);
52 virtual void Load(Config::Evolution
&config
, const Member
&member
);
53 virtual void Load(Config::Unsupported
&config
, const Member
&member
);
55 virtual void Save(const Config::Barry
&config
, const std::string
&group_name
);
56 virtual void Save(const Config::Evolution
&config
, const std::string
&group_name
);
57 virtual void Save(const Config::Unsupported
&config
, const std::string
&group_name
);
60 } // namespace OpenSync