mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
34 lines
612 B
C++
34 lines
612 B
C++
/*
|
|
* This file Copyright (C) 2012-2014 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
|
|
|
|
class MyApp;
|
|
|
|
#include <QDBusAbstractAdaptor>
|
|
|
|
class TrDBusAdaptor: public QDBusAbstractAdaptor
|
|
{
|
|
Q_OBJECT
|
|
Q_CLASSINFO( "D-Bus Interface", "com.transmissionbt.Transmission" )
|
|
|
|
private:
|
|
MyApp * myApp;
|
|
|
|
public:
|
|
TrDBusAdaptor( MyApp* );
|
|
virtual ~TrDBusAdaptor() {}
|
|
|
|
public slots:
|
|
bool PresentWindow();
|
|
bool AddMetainfo( const QString& );
|
|
};
|
|
|
|
#endif
|