mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
9d313a8816
* 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
33 lines
545 B
C++
33 lines
545 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
|
|
|
|
#include <memory>
|
|
|
|
#include <QAxObject>
|
|
|
|
class QObject;
|
|
class QString;
|
|
class QVariant;
|
|
|
|
class ComInteropHelper
|
|
{
|
|
public:
|
|
ComInteropHelper();
|
|
|
|
bool isConnected() const;
|
|
|
|
QVariant addMetainfo(QString const& metainfo) const;
|
|
|
|
static void initialize();
|
|
static void registerObject(QObject* parent);
|
|
|
|
private:
|
|
std::unique_ptr<QAxObject> client_;
|
|
};
|