Initial import to Git
[profile/ivi/common-api-dbus-runtime.git] / CommonAPI-DBus / src / CommonAPI / DBus / DBusRuntime.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public\r
2  * License, v. 2.0. If a copy of the MPL was not distributed with this\r
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\r
4 #ifndef COMMONAPI_DBUS_DBUS_RUNTIME_H_\r
5 #define COMMONAPI_DBUS_DBUS_RUNTIME_H_\r
6 \r
7 #include "CommonAPI/Runtime.h"\r
8 \r
9 #include "DBusFactory.h"\r
10 \r
11 namespace CommonAPI {\r
12 namespace DBus {\r
13 \r
14 class DBusRuntime: public Runtime, public std::enable_shared_from_this<DBusRuntime> {\r
15  public:\r
16     static std::shared_ptr<Runtime> getInstance();\r
17 \r
18     std::shared_ptr<Factory> createFactory();\r
19 \r
20     static const MiddlewareInfo middlewareInfo_;\r
21 };\r
22 \r
23 } // namespace DBus\r
24 } // namespace CommonAPI\r
25 \r
26 \r
27 extern "C" {\r
28 \r
29 CommonAPI::MiddlewareInfo middlewareInfo = CommonAPI::DBus::DBusRuntime::middlewareInfo_;\r
30 \r
31 }\r
32 \r
33 #endif // COMMONAPI_DBUS_DBUS_RUNTIME_H_\r