transmission/qt/DBusAdaptor.h

35 lines
646 B
C
Raw Normal View History

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