X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=include%2Fconnection.h;h=870fd85b73682a72c90f19137ea89c8c581c82a5;hp=3ccaec19c4608035dae4fa150af7735d8d761d9c;hb=3811e5e3780b79b1ddc459c971c2ddce5f021470;hpb=d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5 diff --git a/include/connection.h b/include/connection.h index 3ccaec1..870fd85 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(); } };