USBModedProxy.h
/*
* This file is part of buteo-syncfw package
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbusxml2cpp -v -p USBModedProxy -c USBModedProxy usb_moded.xml
*
* qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* This is an auto-generated file, with several edits.
* If this file is to be regenerated, the changes must be backed up and merged
*/
#ifndef USBMODEDPROXY_H_1272105195
#define USBMODEDPROXY_H_1272105195
#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>
namespace Buteo {
class USBModedProxy: public QDBusAbstractInterface
{
Q_OBJECT
public:
static inline const char *staticInterfaceName()
{
return "com.meego.usb_moded";
}
public:
USBModedProxy(QObject *parent = 0);
~USBModedProxy();
bool isUSBConnected();
public Q_SLOTS: // METHODS
void slotModeChanged(const QString &mode);
inline QDBusPendingReply<QString> mode_request()
{
QList<QVariant> argumentList;
return asyncCallWithArgumentList(QLatin1String("mode_request"), argumentList);
}
Q_SIGNALS: // SIGNALS
void sig_usb_state_ind(const QString &mode);
void usbConnection(bool bConnected);
private:
void handleUsbModeReply(QDBusPendingCallWatcher *call);
void initUsbModeTracking();
bool m_isConnected;
};
}
namespace com {
namespace meego {
typedef Buteo::USBModedProxy usb_moded;
}
}
#endif
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
Buteo::USBModedProxy::mode_request
QDBusPendingReply< QString > mode_request()
method to make a DBUS call to USB moded daemon
Definition USBModedProxy.h:93
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.
Buteo::USBModedProxy::isUSBConnected
bool isUSBConnected()
function to check if usb is connected or not
Definition USBModedProxy.cpp:98
Buteo::USBModedProxy::staticInterfaceName
static const char * staticInterfaceName()
returns the static interface name
Definition USBModedProxy.h:55
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