source: trunk/qt/DBusAdaptor.cc @ 14537

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

Use PascalCase? for Qt client filenames

Split FileTree?.{h,cc} and FilterBar?.{h,cc} files so that each class
is in its own file.

This breaks translations (some classes got renamed => context changed),
to be fixed by next commit (along with Tx sync).

  • Property svn:keywords set to Date Rev Author Id
File size: 575 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: DBusAdaptor.cc 14537 2015-06-10 21:27:11Z mikedld $
8 */
9
10#include "AddData.h"
11#include "Application.h"
12#include "DBusAdaptor.h"
13
14DBusAdaptor::DBusAdaptor (Application* app):
15  QDBusAbstractAdaptor (app),
16  myApp (app)
17{
18}
19
20bool
21DBusAdaptor::PresentWindow ()
22{
23  myApp->raise ();
24  return true;
25}
26
27bool
28DBusAdaptor::AddMetainfo (const QString& key)
29{
30  AddData addme (key);
31
32  if (addme.type != addme.NONE)
33    myApp->addTorrent (addme);
34
35  return true;
36}
Note: See TracBrowser for help on using the repository browser.