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
|
|
|
*
|
|
|
|
* $Id:$
|
|
|
|
*/
|
|
|
|
|
2010-08-01 18:55:04 +00:00
|
|
|
#include "add-data.h"
|
2010-04-27 03:10:32 +00:00
|
|
|
#include "app.h"
|
|
|
|
#include "dbus-adaptor.h"
|
|
|
|
|
|
|
|
TrDBusAdaptor :: TrDBusAdaptor( MyApp* app ):
|
|
|
|
QDBusAbstractAdaptor( app ),
|
|
|
|
myApp( app )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
TrDBusAdaptor :: PresentWindow( )
|
|
|
|
{
|
|
|
|
myApp->raise( );
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2010-08-01 18:55:04 +00:00
|
|
|
TrDBusAdaptor :: AddMetainfo( const QString& key )
|
2010-04-27 03:10:32 +00:00
|
|
|
{
|
2010-08-01 18:55:04 +00:00
|
|
|
AddData addme( key );
|
|
|
|
|
|
|
|
if( addme.type != addme.NONE )
|
|
|
|
myApp->addTorrent( addme );
|
|
|
|
|
2010-04-27 03:10:32 +00:00
|
|
|
return true;
|
|
|
|
}
|