X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..c76dfb1262bab08dfa91c7f4fbba0010b9e94ca0:/include/connection.h diff --git a/include/connection.h b/include/connection.h index 3ccaec19..a6fc4b54 100644 --- a/include/connection.h +++ b/include/connection.h @@ -4,13 +4,13 @@ #include #include -class eConnection: public virtual iObject, public Connection +class eConnection: public iObject, public Connection { - int ref; +DECLARE_REF(eConnection); +private: + 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(); } };