source: trunk/qt/InteropObject.cc @ 14621

Last change on this file since 14621 was 14621, checked in by mikedld, 7 years ago

Refactor DBus IPC to allow for further extensibility

  • Property svn:keywords set to Date Rev Author Id
File size: 568 bytes
Line 
1/*
2 * This file Copyright (C) 2012-2015 Mnemosyne LLC
3 *
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: InteropObject.cc 14621 2015-12-16 17:57:05Z mikedld $
8 */
9
10#include "AddData.h"
11#include "Application.h"
12#include "InteropObject.h"
13
14InteropObject::InteropObject (QObject * parent):
15  QObject (parent)
16{
17}
18
19bool
20InteropObject::PresentWindow ()
21{
22  qApp->raise ();
23  return true;
24}
25
26bool
27InteropObject::AddMetainfo (const QString& metainfo)
28{
29  AddData addme (metainfo);
30
31  if (addme.type != addme.NONE)
32    qApp->addTorrent (addme);
33
34  return true;
35}
Note: See TracBrowser for help on using the repository browser.