2010-04-27 03:10:32 +00:00
|
|
|
/*
|
2010-08-01 20:36:13 +00:00
|
|
|
* This file Copyright (C) Mnemosyne LLC
|
2010-04-27 03:10:32 +00:00
|
|
|
*
|
2010-08-01 20:36:13 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
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
|
|
|
|
|
|
|
|
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();
|
2010-08-01 18:55:04 +00:00
|
|
|
bool AddMetainfo( const QString& );
|
2010-04-27 03:10:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|