summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4e452ee)
InternalPeer may be closed legitimately like any other peer type.
Although for InternalPeer this just sets a flag, it should not
produce a warning claiming that the method is not implemented.
Also actually report the open status for InternalPeer. Ensure that
it is constructed in open state, otherwise a signalproxy cannot
be set.
bool InternalPeer::isOpen() const
{
bool InternalPeer::isOpen() const
{
void InternalPeer::close(const QString &reason)
{
void InternalPeer::close(const QString &reason)
{
- // FIXME
- Q_UNUSED(reason)
- qWarning() << "closing not implemented!";
+ Q_UNUSED(reason);
+ _isOpen = false;
if (proxy && !_proxy) {
_proxy = proxy;
if (proxy && !_proxy) {
_proxy = proxy;
private:
SignalProxy *_proxy{nullptr};
private:
SignalProxy *_proxy{nullptr};
};
Q_DECLARE_METATYPE(QPointer<InternalPeer>)
};
Q_DECLARE_METATYPE(QPointer<InternalPeer>)