menu: added new Keywords tag to .desktop files
[barry.git] / desktop / src / osconv40.h
blob212ab34239c68475c31da33e0197446db9e768a1
1 ///
2 /// \file osconv40.h
3 /// Converter class for opensync 0.40 plugins
4 ///
6 /*
7 Copyright (C) 2009-2013, 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_OSCONV40_H__
23 #define __BARRY_OSCONV40_H__
25 #include "osbase.h"
26 #include "os40.h"
28 namespace OpenSync {
30 class Converter40 : public Converter
32 OpenSync::OpenSync40 &m_api;
34 public:
35 Converter40(OpenSync::OpenSync40 &api);
37 virtual bool IsPluginSupported(const std::string &plugin_name,
38 std::string *appname = 0) const;
39 virtual plugin_ptr CreateAndLoadPlugin(const Member &member);
41 virtual std::string GetPluginName(const Config::Barry &) const;
42 virtual std::string GetPluginName(const Config::Evolution &) const;
43 virtual std::string GetPluginName(const Config::Evolution3 &) const;
44 virtual std::string GetPluginName(const Config::Google &) const;
45 virtual std::string GetPluginName(const Config::KDEPim &) const;
46 virtual std::string GetPluginName(const Config::Unsupported &) const;
48 virtual bool IsConfigured(const Config::Barry &) const;
49 virtual bool IsConfigured(const Config::Evolution &) const;
50 virtual bool IsConfigured(const Config::Evolution3 &) const;
51 virtual bool IsConfigured(const Config::Google &) const;
52 virtual bool IsConfigured(const Config::KDEPim &) const;
53 virtual bool IsConfigured(const Config::Unsupported &) const;
55 virtual Config::pst_type GetSupportedSyncTypes(const Config::Barry &) const;
56 virtual Config::pst_type GetSupportedSyncTypes(const Config::Evolution &) const;
57 virtual Config::pst_type GetSupportedSyncTypes(const Config::Evolution3 &) const;
58 virtual Config::pst_type GetSupportedSyncTypes(const Config::Google &) const;
59 virtual Config::pst_type GetSupportedSyncTypes(const Config::KDEPim &) const;
60 virtual Config::pst_type GetSupportedSyncTypes(const Config::Unsupported &) const;
62 virtual void Load(Config::Barry &config, const Member &member);
63 virtual void Load(Config::Evolution &config, const Member &member);
64 virtual void Load(Config::Evolution3 &config, const Member &member);
65 virtual void Load(Config::Google &config, const Member &member);
66 virtual void Load(Config::KDEPim &config, const Member &member);
67 virtual void Load(Config::Unsupported &config, const Member &member);
69 virtual void Save(const Config::Barry &config, const std::string &group_name);
70 virtual void Save(const Config::Evolution &config, const std::string &group_name);
71 virtual void Save(const Config::Evolution3 &config, const std::string &group_name);
72 virtual void Save(const Config::Google &config, const std::string &group_name);
73 virtual void Save(const Config::KDEPim &config, const std::string &group_name);
74 virtual void Save(const Config::Unsupported &config, const std::string &group_name);
77 } // namespace OpenSync
79 #endif