Initial import to Git
[profile/ivi/common-api-dbus-runtime.git] / CommonAPI-DBus / src / test / commonapi / tests / TestInterface.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 #ifndef COMMONAPI_TESTS_TEST_INTERFACE_H_
5 #define COMMONAPI_TESTS_TEST_INTERFACE_H_
6
7 #include <CommonAPI/types.h>
8
9 namespace commonapi {
10 namespace tests {
11
12 class TestInterface {
13  public:
14     virtual ~TestInterface() { }
15
16     static inline const char* getInterfaceName();
17     static inline CommonAPI::Version getInterfaceVersion();
18 };
19
20 const char* TestInterface::getInterfaceName() {
21     return "commonapi.tests.TestInterface";
22 }
23
24 CommonAPI::Version TestInterface::getInterfaceVersion() {
25     return CommonAPI::Version(1, 0);
26 }
27
28
29 } // namespace tests
30 } // namespace commonapi
31
32 #endif // COMMONAPI_TESTS_TEST_INTERFACE_H_