[dbus] add overload 'value' for custom dbus property types
[profile/ivi/automotive-message-broker.git] / plugins / dbus / dbusinterfacemanager.h
1 /*
2 Copyright (C) 2012 Intel Corporation
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18
19
20 #ifndef DBUSINTERFACEMANAGER_H
21 #define DBUSINTERFACEMANAGER_H
22
23 #include "ambpluginimpl.h"
24 #include "gio/gio.h"
25 #include <memory>
26
27 class AbstractRoutingEngine;
28
29 class DBusInterfaceManager: public AmbPluginImpl
30 {
31
32 public:
33         DBusInterfaceManager(AbstractRoutingEngine* re, std::map<string, string> config, AbstractSource & parent);
34         ~DBusInterfaceManager();
35
36         /// From AbstractSink:
37         virtual const string uuid() const { return "DBusInterfaceManager"; }
38         virtual void supportedChanged(const PropertyList & supportedProperties);
39     
40         std::shared_ptr<GDBusConnection> connection;
41         std::shared_ptr<AbstractPropertyType> dbusConnected;
42
43         void registerTypes();
44
45 private:
46
47         unsigned int ownerId;
48
49
50
51 };
52
53 #endif // DBUSINTERFACEMANAGER_H