2010-04-27 03:10:32 +00:00
|
|
|
/*
|
2015-06-10 21:27:11 +00:00
|
|
|
* This file Copyright (C) 2012-2015 Mnemosyne LLC
|
2010-04-27 03:10:32 +00:00
|
|
|
*
|
2014-01-21 03:10:30 +00:00
|
|
|
* It may be used under the GNU GPL versions 2 or 3
|
2014-01-19 01:09:44 +00:00
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
2010-04-27 03:10:32 +00:00
|
|
|
*
|
2010-10-01 13:33:39 +00:00
|
|
|
* $Id$
|
2010-04-27 03:10:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTR_DBUS_ADAPTOR_H
|
|
|
|
#define QTR_DBUS_ADAPTOR_H
|
|
|
|
|
|
|
|
#include <QDBusAbstractAdaptor>
|
|
|
|
|
2015-06-10 21:27:11 +00:00
|
|
|
class Application;
|
|
|
|
|
|
|
|
class DBusAdaptor: public QDBusAbstractAdaptor
|
2010-04-27 03:10:32 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_CLASSINFO( "D-Bus Interface", "com.transmissionbt.Transmission" )
|
|
|
|
|
|
|
|
private:
|
2015-06-10 21:27:11 +00:00
|
|
|
Application * myApp;
|
2010-04-27 03:10:32 +00:00
|
|
|
|
|
|
|
public:
|
2015-06-10 21:27:11 +00:00
|
|
|
DBusAdaptor( Application* );
|
|
|
|
virtual ~DBusAdaptor() {}
|
2010-04-27 03:10:32 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
bool PresentWindow();
|
2010-08-01 18:55:04 +00:00
|
|
|
bool AddMetainfo( const QString& );
|
2010-04-27 03:10:32 +00:00
|
|
|
};
|
|
|
|
|
2015-06-10 21:27:11 +00:00
|
|
|
#endif // QTR_DBUS_ADAPTOR_H
|