2010-04-27 03:10:32 +00:00
|
|
|
/*
|
2015-06-10 21:27:11 +00:00
|
|
|
* This file Copyright (C) 2012-2015 Mnemosyne LLC
|
2010-04-27 03:10:32 +00:00
|
|
|
*
|
2014-12-21 23:49:39 +00:00
|
|
|
* It may be used under the GNU GPL versions 2 or 3
|
2014-01-19 01:09:44 +00:00
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
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
|
|
|
*/
|
|
|
|
|
2015-06-10 21:27:11 +00:00
|
|
|
#include "AddData.h"
|
|
|
|
#include "Application.h"
|
2015-12-16 17:57:05 +00:00
|
|
|
#include "InteropObject.h"
|
2010-04-27 03:10:32 +00:00
|
|
|
|
2015-12-16 17:57:05 +00:00
|
|
|
InteropObject::InteropObject (QObject * parent):
|
|
|
|
QObject (parent)
|
2010-04-27 03:10:32 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2015-12-16 17:57:05 +00:00
|
|
|
InteropObject::PresentWindow ()
|
2010-04-27 03:10:32 +00:00
|
|
|
{
|
2015-12-16 17:57:05 +00:00
|
|
|
qApp->raise ();
|
2013-09-14 22:45:04 +00:00
|
|
|
return true;
|
2010-04-27 03:10:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
2015-12-16 17:57:05 +00:00
|
|
|
InteropObject::AddMetainfo (const QString& metainfo)
|
2010-04-27 03:10:32 +00:00
|
|
|
{
|
2015-12-16 17:57:05 +00:00
|
|
|
AddData addme (metainfo);
|
2010-08-01 18:55:04 +00:00
|
|
|
|
2013-09-14 22:45:04 +00:00
|
|
|
if (addme.type != addme.NONE)
|
2015-12-16 17:57:05 +00:00
|
|
|
qApp->addTorrent (addme);
|
2010-08-01 18:55:04 +00:00
|
|
|
|
2013-09-14 22:45:04 +00:00
|
|
|
return true;
|
2010-04-27 03:10:32 +00:00
|
|
|
}
|