dbus-cplusplus/test/functional/Test1/TestAppIntro.h
Andreas Volz 1c8e43e6d6 - NO FUNCTIONAL CODE CHANGES!!!!
- changed code formating from tabs to spaces and others
- used astyle with this option:
  --style=ansi --indent=spaces=2 -M --pad-oper --unpad-paren --pad-header --align-pointer=name --lineend=linux
2011-11-28 12:44:11 +01:00

43 lines
941 B
C++

#ifndef TEST_APP_INTRO_H
#define TEST_APP_INTRO_H
#include "TestAppIntroPrivate.h"
#include "../../../tools/generator_utils.h"
#include <iostream>
#include <cstdio>
using namespace std;
class TestAppIntro :
public DBusCpp::Test::Com::Intro_proxy,
public DBus::IntrospectableProxy,
public DBus::ObjectProxy
{
public:
TestAppIntro(DBus::Connection &connection, pthread_cond_t &condition, bool &testResult) :
DBus::ObjectProxy(connection, "/DBusCpp/Test/Com/Intro", "DBusCpp.Test.Com.Intro"),
mCondition(condition),
mTestResult(testResult)
{}
void test1Result()
{
cout << "Test1Result" << endl;
mTestResult = true;
pthread_cond_signal(&mCondition);
}
void testByteResult(const uint8_t &Byte)
{
printf("TestByteResult: %d\n", Byte);
mTestResult = true;
pthread_cond_signal(&mCondition);
}
private:
pthread_cond_t &mCondition;
bool &mTestResult;
};
#endif // TEST_COM_INTRO_H