mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
39 lines
736 B
C++
39 lines
736 B
C++
/*
|
|
* This file Copyright (C) Mnemosyne LLC
|
|
*
|
|
* 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
|
|
*
|
|
* $Id:$
|
|
*/
|
|
|
|
#include "add-data.h"
|
|
#include "app.h"
|
|
#include "dbus-adaptor.h"
|
|
|
|
TrDBusAdaptor :: TrDBusAdaptor( MyApp* app ):
|
|
QDBusAbstractAdaptor( app ),
|
|
myApp( app )
|
|
{
|
|
}
|
|
|
|
bool
|
|
TrDBusAdaptor :: PresentWindow( )
|
|
{
|
|
myApp->raise( );
|
|
return true;
|
|
}
|
|
|
|
bool
|
|
TrDBusAdaptor :: AddMetainfo( const QString& key )
|
|
{
|
|
AddData addme( key );
|
|
|
|
if( addme.type != addme.NONE )
|
|
myApp->addTorrent( addme );
|
|
|
|
return true;
|
|
}
|