source: trunk/examples/dbus/remotecontrolledcar/car/car_adaptor.cpp@ 526

Last change on this file since 526 was 2, checked in by Dmitry A. Kuminov, 17 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 1.4 KB
Line 
1/*
2 * This file was generated by dbusxml2cpp version 0.6
3 * Command line was: dbusxml2cpp -c CarAdaptor -a car_adaptor_p.h:car_adaptor.cpp car.xml
4 *
5 * dbusxml2cpp is Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
6 *
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
9 */
10
11#include "car_adaptor_p.h"
12#include <QtCore/QMetaObject>
13#include <QtCore/QByteArray>
14#include <QtCore/QList>
15#include <QtCore/QMap>
16#include <QtCore/QString>
17#include <QtCore/QStringList>
18#include <QtCore/QVariant>
19
20/*
21 * Implementation of adaptor class CarAdaptor
22 */
23
24CarAdaptor::CarAdaptor(QObject *parent)
25 : QDBusAbstractAdaptor(parent)
26{
27 // constructor
28 setAutoRelaySignals(true);
29}
30
31CarAdaptor::~CarAdaptor()
32{
33 // destructor
34}
35
36void CarAdaptor::accelerate()
37{
38 // handle method call com.trolltech.Examples.CarInterface.accelerate
39 QMetaObject::invokeMethod(parent(), "accelerate");
40}
41
42void CarAdaptor::decelerate()
43{
44 // handle method call com.trolltech.Examples.CarInterface.decelerate
45 QMetaObject::invokeMethod(parent(), "decelerate");
46}
47
48void CarAdaptor::turnLeft()
49{
50 // handle method call com.trolltech.Examples.CarInterface.turnLeft
51 QMetaObject::invokeMethod(parent(), "turnLeft");
52}
53
54void CarAdaptor::turnRight()
55{
56 // handle method call com.trolltech.Examples.CarInterface.turnRight
57 QMetaObject::invokeMethod(parent(), "turnRight");
58}
59
Note: See TracBrowser for help on using the repository browser.