ButeoSynchronizationFramework
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 {
47 
50 class USBModedProxy: public QDBusAbstractInterface
51 {
52  Q_OBJECT
53 public:
54 
56  static inline const char *staticInterfaceName()
57  {
58  return "com.meego.usb_moded";
59  }
60 
61 public:
66  USBModedProxy(QObject *parent = 0);
67 
72 
79  bool isUSBConnected();
80 
81 public Q_SLOTS: // METHODS
82 
88  void slotModeChanged(const QString &mode);
89 
94  inline QDBusPendingReply<QString> mode_request()
95  {
96  QList<QVariant> argumentList;
97  return asyncCallWithArgumentList(QLatin1String("mode_request"), argumentList);
98  }
99 
100 Q_SIGNALS: // SIGNALS
101 
106  void sig_usb_state_ind(const QString &mode);
107 
113  void usbConnection(bool bConnected);
114 };
115 }
116 
117 namespace com {
118  namespace meego {
119  typedef Buteo::USBModedProxy usb_moded;
120  }
121 }
122 #endif
123 
void sig_usb_state_ind(const QString &mode)
overridden signal from usb moded proxy.
~USBModedProxy()
Destructor
Definition: USBModedProxy.cpp:56
Definition: USBModedProxy.h:117
Definition: AccountsHelper.h:31
static const char * staticInterfaceName()
returns the static interface name
Definition: USBModedProxy.h:56
void usbConnection(bool bConnected)
this is emitted on receiving sig_usb_state_ind from usb moded daemon
void slotModeChanged(const QString &mode)
connected to usbmoded proxy's sig_usb_state_ind signal
Definition: USBModedProxy.cpp:60
Proxy class for interface com.meego.usb_moded
Definition: USBModedProxy.h:50
QDBusPendingReply< QString > mode_request()
method to make a DBUS call to USB moded daemon
Definition: USBModedProxy.h:94
bool isUSBConnected()
function to check if usb is connected or not
Definition: USBModedProxy.cpp:72
USBModedProxy(QObject *parent=0)
Constructor
Definition: USBModedProxy.cpp:46
Definition: SyncBackupAdaptor.h:40