35 lines
646 B
C++
35 lines
646 B
C++
/*
|
|
* This file Copyright (C) 2012-2015 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef QTR_DBUS_ADAPTOR_H
|
|
#define QTR_DBUS_ADAPTOR_H
|
|
|
|
#include <QDBusAbstractAdaptor>
|
|
|
|
class Application;
|
|
|
|
class DBusAdaptor: public QDBusAbstractAdaptor
|
|
{
|
|
Q_OBJECT
|
|
Q_CLASSINFO( "D-Bus Interface", "com.transmissionbt.Transmission" )
|
|
|
|
private:
|
|
Application * myApp;
|
|
|
|
public:
|
|
DBusAdaptor( Application* );
|
|
virtual ~DBusAdaptor() {}
|
|
|
|
public slots:
|
|
bool PresentWindow();
|
|
bool AddMetainfo( const QString& );
|
|
};
|
|
|
|
#endif // QTR_DBUS_ADAPTOR_H
|