X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.h;h=867ffdbdbee719e3c7333cec655e283cb50ff14a;hp=357c29bb73091885e08046ed0f68208260750645;hb=3456106b07bfc3000e50df9322ddefd4f872e0fb;hpb=27de4d2719454c4deb5f6e24b82bdd8991e45260 diff --git a/src/common/signalproxy.h b/src/common/signalproxy.h index 357c29bb..867ffdbd 100644 --- a/src/common/signalproxy.h +++ b/src/common/signalproxy.h @@ -76,6 +76,11 @@ public: void setProxyMode(ProxyMode mode); inline ProxyMode proxyMode() const { return _proxyMode; } + void setHeartBeatInterval(int secs); + inline int heartBeatInterval() const { return _heartBeatInterval; } + void setMaxHeartBeatCount(int max); + inline int maxHeartBeatCount() const { return _maxHeartBeatCount; } + bool addPeer(QIODevice *iodev); bool addPeer(SignalProxy *proxy); void removePeer(QObject *peer); @@ -195,6 +200,8 @@ private: ProxyMode _proxyMode; QTimer _heartBeatTimer; + int _heartBeatInterval; + int _maxHeartBeatCount; bool _secure; // determines if all connections are in a secured state (using ssl or internal connections) @@ -238,14 +245,14 @@ public: inline int methodId(const QByteArray &methodName) { return _methodIds.contains(methodName) ? _methodIds[methodName] : -1; } inline int updatedRemotelyId() { return _updatedRemotelyId; } - + inline const QHash &slotMap() { return _methodIds; } const QHash &receiveMap(); const QMetaObject *metaObject() const { return _meta; } static QByteArray methodName(const QMetaMethod &method); - static QString ExtendedMetaObject::methodBaseName(const QMetaMethod &method); + static QString methodBaseName(const QMetaMethod &method); private: const MethodDescriptor &methodDescriptor(int methodId);