car_adaptor_p.h Example File
dbus/remotecontrolledcar/car/car_adaptor_p.h
#ifndef CAR_ADAPTOR_P_H_1157030132
#define CAR_ADAPTOR_P_H_1157030132
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
class CarAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "com.trolltech.Examples.CarInterface")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"com.trolltech.Examples.CarInterface\" >\n"
" <method name=\"accelerate\" />\n"
" <method name=\"decelerate\" />\n"
" <method name=\"turnLeft\" />\n"
" <method name=\"turnRight\" />\n"
" <signal name=\"crashed\" />\n"
" </interface>\n"
"")
public:
CarAdaptor(QObject *parent);
virtual ~CarAdaptor();
public:
public Q_SLOTS:
void accelerate();
void decelerate();
void turnLeft();
void turnRight();
Q_SIGNALS:
void crashed();
};
#endif
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) |
Trademarks |
Qt 4.5.1 |