summaryrefslogtreecommitdiff
path: root/test/functional/Test1/TestAppIntroProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/Test1/TestAppIntroProvider.h')
-rw-r--r--test/functional/Test1/TestAppIntroProvider.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/functional/Test1/TestAppIntroProvider.h b/test/functional/Test1/TestAppIntroProvider.h
new file mode 100644
index 0000000..28a09a8
--- /dev/null
+++ b/test/functional/Test1/TestAppIntroProvider.h
@@ -0,0 +1,32 @@
+#ifndef TEST_APP_INTRO_PROVIDER_H
+#define TEST_APP_INTRO_PROVIDER_H
+
+#include "TestAppIntroProviderPrivate.h"
+
+#include "TestAppIntro.h"
+
+#include <iostream>
+
+class TestAppIntroProvider :
+ public DBusCpp::Test::Com::Intro_adaptor,
+ public DBus::IntrospectableAdaptor,
+ public DBus::ObjectAdaptor
+{
+public:
+ TestAppIntroProvider (DBus::Connection& connection, TestAppIntro *testComIntro) :
+ DBus::ObjectAdaptor(connection, "/DBusCpp/Test/Com/Intro"),
+ mTestAppIntro (testComIntro)
+ {}
+
+ void test1 ()
+ {
+ std::cout << "Test1" << std::endl;
+ mTestAppIntro->test1Result ();
+ }
+
+private:
+ TestAppIntro *mTestAppIntro;
+};
+
+#endif // TEST_COM_INTRO_PROVIDER_H
+