Buteo Synchronization Framework: USBModedProxy.h Source File

Buteo Synchronization Framework

USBModedProxy.h
1 /*
2 * This file is part of buteo-syncfw package
3 *
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 *
6 * Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1 as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23 /*
24 * This file was generated by qdbusxml2cpp version 0.7
25 * Command line was: qdbusxml2cpp -v -p USBModedProxy -c USBModedProxy usb_moded.xml
26 *
27 * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
28 *
29 * This is an auto-generated file, with several edits.
30 * If this file is to be regenerated, the changes must be backed up and merged
31 */
32
33 #ifndef USBMODEDPROXY_H_1272105195
34 #define USBMODEDPROXY_H_1272105195
35
36 #include <QtCore/QObject>
37 #include <QtCore/QByteArray>
38 #include <QtCore/QList>
39 #include <QtCore/QMap>
40 #include <QtCore/QString>
41 #include <QtCore/QStringList>
42 #include <QtCore/QVariant>
43 #include <QtDBus/QtDBus>
44
45 namespace Buteo {
46
49 class USBModedProxy: public QDBusAbstractInterface
50 {
51 Q_OBJECT
52 public:
53
55 static inline const char *staticInterfaceName()
56 {
57 return "com.meego.usb_moded";
58 }
59
60 public:
65 USBModedProxy(QObject *parent = 0);
66
70 ~USBModedProxy();
71
78 bool isUSBConnected();
79
80 public Q_SLOTS: // METHODS
81
87 void slotModeChanged(const QString &mode);
88
93 inline QDBusPendingReply<QString> mode_request()
94 {
95 QList<QVariant> argumentList;
96 return asyncCallWithArgumentList(QLatin1String("mode_request"), argumentList);
97 }
98
99 Q_SIGNALS: // SIGNALS
100
105 void sig_usb_state_ind(const QString &mode);
106
112 void usbConnection(bool bConnected);
113
114 private:
116 void handleUsbModeReply(QDBusPendingCallWatcher *call);
117
119 void initUsbModeTracking();
120
122 bool m_isConnected;
123 };
124 }
125
126 namespace com {
127 namespace meego {
128 typedef Buteo::USBModedProxy usb_moded;
129 }
130 }
131 #endif
132
Buteo::USBModedProxy
Proxy class for interface com.meego.usb_moded
Definition: USBModedProxy.h:50
Buteo::USBModedProxy::usbConnection
void usbConnection(bool bConnected)
this is emitted on receiving sig_usb_state_ind from usb moded daemon
Definition: moc_USBModedProxy.cpp:165
Buteo::USBModedProxy::staticInterfaceName
static const char * staticInterfaceName()
returns the static interface name
Definition: USBModedProxy.h:55
Buteo::USBModedProxy::~USBModedProxy
~USBModedProxy()
Destructor
Definition: USBModedProxy.cpp:56
Buteo::USBModedProxy::sig_usb_state_ind
void sig_usb_state_ind(const QString &mode)
overridden signal from usb moded proxy.
Definition: moc_USBModedProxy.cpp:158
Buteo::USBModedProxy::mode_request
QDBusPendingReply< QString > mode_request()
method to make a DBUS call to USB moded daemon
Definition: USBModedProxy.h:93
Buteo::USBModedProxy::isUSBConnected
bool isUSBConnected()
function to check if usb is connected or not
Definition: USBModedProxy.cpp:98
Buteo::USBModedProxy::USBModedProxy
USBModedProxy(QObject *parent=0)
Constructor
Definition: USBModedProxy.cpp:47
Buteo::USBModedProxy::slotModeChanged
void slotModeChanged(const QString &mode)
connected to usbmoded proxy's sig_usb_state_ind signal
Definition: USBModedProxy.cpp:86
QList
Definition: SyncBackupAdaptor.h:40