blob: eb18eb21dccd361486bcb78ab70ae6d04fcfee92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbusxml2cpp -c FmRxProxy -p fmrxproxy.cpp -a fmrxproxyadaptor.cpp /home/javier/maemo/fm/h/fmrxd-0.1/fmrxd.xml
*
* qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef FMRXPROXYADAPTOR_CPP_1325275015
#define FMRXPROXYADAPTOR_CPP_1325275015
#include <QtCore/QObject>
#include <QtCore/QMetaObject>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Adaptor class for interface com.javispedro.fmrxd
*/
class FmRxProxy: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "com.javispedro.fmrxd")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"com.javispedro.fmrxd\">\n"
" <method name=\"Connect\">\n"
" <arg direction=\"out\" type=\"i\" name=\"pipe\"/>\n"
" </method>\n"
" <method name=\"Tune\">\n"
" <arg direction=\"in\" type=\"d\" name=\"frequency\"/>\n"
" </method>\n"
" <method name=\"SearchForward\"/>\n"
" <method name=\"SearchBackward\"/>\n"
" <signal name=\"Tuned\">\n"
" <arg type=\"d\" name=\"frequency\"/>\n"
" </signal>\n"
" <signal name=\"Stopped\"/>\n"
" <signal name=\"PiReceived\">\n"
" <arg type=\"q\" name=\"pi\"/>\n"
" </signal>\n"
" <signal name=\"PsReceived\">\n"
" <arg type=\"s\" name=\"ps\"/>\n"
" </signal>\n"
" <signal name=\"RtReceived\">\n"
" <arg type=\"s\" name=\"rt\"/>\n"
" </signal>\n"
" </interface>\n"
"")
public:
FmRxProxy(QObject *parent);
virtual ~FmRxProxy();
public: // PROPERTIES
public Q_SLOTS: // METHODS
int Connect();
void SearchBackward();
void SearchForward();
void Tune(double frequency);
Q_SIGNALS: // SIGNALS
void PiReceived(ushort pi);
void PsReceived(const QString &ps);
void RtReceived(const QString &rt);
void Stopped();
void Tuned(double frequency);
};
#endif
/*
* Implementation of adaptor class FmRxProxy
*/
FmRxProxy::FmRxProxy(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
FmRxProxy::~FmRxProxy()
{
// destructor
}
int FmRxProxy::Connect()
{
// handle method call com.javispedro.fmrxd.Connect
int pipe;
QMetaObject::invokeMethod(parent(), "Connect", Q_RETURN_ARG(int, pipe));
return pipe;
}
void FmRxProxy::SearchBackward()
{
// handle method call com.javispedro.fmrxd.SearchBackward
QMetaObject::invokeMethod(parent(), "SearchBackward");
}
void FmRxProxy::SearchForward()
{
// handle method call com.javispedro.fmrxd.SearchForward
QMetaObject::invokeMethod(parent(), "SearchForward");
}
void FmRxProxy::Tune(double frequency)
{
// handle method call com.javispedro.fmrxd.Tune
QMetaObject::invokeMethod(parent(), "Tune", Q_ARG(double, frequency));
}
|