X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..81c086725b8f1da181a776f6fa383f991deca7d9:/include/connection.h diff --git a/include/connection.h b/include/connection.h index 3ccaec19..870fd85b 100644 --- a/include/connection.h +++ b/include/connection.h @@ -4,13 +4,12 @@ #include #include -class eConnection: public virtual iObject, public Connection +class eConnection: public iObject, public Connection { - int ref; + DECLARE_REF(eConnection); + ePtr m_owner; public: -DEFINE_REF(eConnection); -public: - eConnection(const Connection &conn): Connection(conn), ref(0) { }; + eConnection(iObject *owner, const Connection &conn): Connection(conn), m_owner(owner) { }; virtual ~eConnection() { disconnect(); } };