Ignore:
Timestamp:
Dec 16, 2015, 5:57:05 PM (7 years ago)
Author:
mikedld
Message:

Refactor DBus IPC to allow for further extensibility

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/qt/InteropObject.cc

    r14620 r14621  
    1010#include "AddData.h"
    1111#include "Application.h"
    12 #include "DBusAdaptor.h"
     12#include "InteropObject.h"
    1313
    14 DBusAdaptor::DBusAdaptor (Application* app):
    15   QDBusAbstractAdaptor (app),
    16   myApp (app)
     14InteropObject::InteropObject (QObject * parent):
     15  QObject (parent)
    1716{
    1817}
    1918
    2019bool
    21 DBusAdaptor::PresentWindow ()
     20InteropObject::PresentWindow ()
    2221{
    23   myApp->raise ();
     22  qApp->raise ();
    2423  return true;
    2524}
    2625
    2726bool
    28 DBusAdaptor::AddMetainfo (const QString& key)
     27InteropObject::AddMetainfo (const QString& metainfo)
    2928{
    30   AddData addme (key);
     29  AddData addme (metainfo);
    3130
    3231  if (addme.type != addme.NONE)
    33     myApp->addTorrent (addme);
     32    qApp->addTorrent (addme);
    3433
    3534  return true;
Note: See TracChangeset for help on using the changeset viewer.