car_adaptor.cpp Example File
dbus/remotecontrolledcar/car/car_adaptor.cpp
#include "car_adaptor_p.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
CarAdaptor::CarAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
setAutoRelaySignals(true);
}
CarAdaptor::~CarAdaptor()
{
}
void CarAdaptor::accelerate()
{
QMetaObject::invokeMethod(parent(), "accelerate");
}
void CarAdaptor::decelerate()
{
QMetaObject::invokeMethod(parent(), "decelerate");
}
void CarAdaptor::turnLeft()
{
QMetaObject::invokeMethod(parent(), "turnLeft");
}
void CarAdaptor::turnRight()
{
QMetaObject::invokeMethod(parent(), "turnRight");
}
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) |
Trademarks |
Qt 4.5.1 |