1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/qt/InteropHelper.h
Charles Kerr 9d313a8816
sonarcloud warnings 9 (#1511)
* refactor: const correctness 

* refactor: fix some implicit conversions

* refactor: make local pointers const if their objects are not modified

* refactor: do not cast away const in torrent-cell-renderer

* refactor: remove call to deprecated gtk_icon_size_lookup_for_settings

* refactor: member functions that do not mutate their objects should be declared const

* chore: do not end comments with a semicolon
2020-11-08 21:31:02 -06:00

37 lines
677 B
C++

/*
* This file Copyright (C) 2015 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
*/
#pragma once
#ifdef ENABLE_COM_INTEROP
#include "ComInteropHelper.h"
#endif
#ifdef ENABLE_DBUS_INTEROP
#include "DBusInteropHelper.h"
#endif
class QString;
class InteropHelper
{
public:
bool isConnected() const;
bool addMetainfo(QString const& metainfo) const;
static void initialize();
static void registerObject(QObject* parent);
private:
#ifdef ENABLE_DBUS_INTEROP
DBusInteropHelper dbus_client_ = {};
#endif
#ifdef ENABLE_COM_INTEROP
ComInteropHelper com_client_ = {};
#endif
};