mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #199, cleaned up contexts a bit after rebasing to current master
* friend CRuntime on top * fixed some public constructors (made protected) * Also made registerWithDBus protected * Fixed some copy/paste issues in getIContextXXX * Reordered private/public sections
This commit is contained in:
@@ -18,18 +18,15 @@ namespace BlackCore
|
||||
class CContextApplicationProxy : public IContextApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class CRuntime;
|
||||
|
||||
public:
|
||||
//! Destructor
|
||||
virtual ~CContextApplicationProxy() {}
|
||||
|
||||
private:
|
||||
friend class CRuntime;
|
||||
BlackMisc::CGenericDBusInterface *m_dBusInterface;
|
||||
|
||||
//! Relay connection signals to local signals
|
||||
//! No idea why this has to be wired and is not done automatically
|
||||
void relaySignals(const QString &serviceName, QDBusConnection &connection);
|
||||
public slots:
|
||||
//! \copydoc IContextApplication::ping()
|
||||
virtual qint64 ping(qint64 token) const override;
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
@@ -38,11 +35,12 @@ namespace BlackCore
|
||||
//! DBus version constructor
|
||||
CContextApplicationProxy(const QString &serviceName, QDBusConnection &connection, CRuntimeConfig::ContextMode mode, CRuntime *runtime);
|
||||
|
||||
public slots:
|
||||
|
||||
//! \copydoc IContextApplication::ping()
|
||||
virtual qint64 ping(qint64 token) const override;
|
||||
private:
|
||||
BlackMisc::CGenericDBusInterface *m_dBusInterface;
|
||||
|
||||
//! Relay connection signals to local signals
|
||||
//! No idea why this has to be wired and is not done automatically
|
||||
void relaySignals(const QString &serviceName, QDBusConnection &connection);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user