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
|
2015-06-12 22:12:12 +00:00
|
|
|
Q_CLASSINFO ("D-Bus Interface", "com.transmissionbt.Transmission")
|
2010-04-27 03:10:32 +00:00
|
|
|
|
|
|
|
public:
|
2015-06-12 22:12:12 +00:00
|
|
|
DBusAdaptor (Application *);
|
|
|
|
virtual ~DBusAdaptor () {}
|
2010-04-27 03:10:32 +00:00
|
|
|
|
|
|
|
public slots:
|
2015-06-12 22:12:12 +00:00
|
|
|
bool PresentWindow ();
|
|
|
|
bool AddMetainfo (const QString&);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Application * myApp;
|
2010-04-27 03:10:32 +00:00
|
|
|
};
|
|
|
|
|
2015-06-10 21:27:11 +00:00
|
|
|
#endif // QTR_DBUS_ADAPTOR_H
|