after DECLARE_REF now all is private.. not public
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 13 Jun 2008 09:57:56 +0000 (09:57 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 13 Jun 2008 09:57:56 +0000 (09:57 +0000)
dont export AddRef, Release, ptrref and grabRef to python
some cleanups

35 files changed:
include/connection.h
lib/actions/action.h
lib/base/object.h
lib/base/smartptr.h
lib/components/scan.h
lib/dvb/db.h
lib/dvb/decoder.h
lib/dvb/demux.h
lib/dvb/dvb.cpp
lib/dvb/dvb.h
lib/dvb/dvbtime.h
lib/dvb/esection.h
lib/dvb/frontend.h
lib/dvb/list.h
lib/dvb/radiotext.h
lib/dvb/scan.h
lib/dvb/sec.h
lib/dvb_ci/dvbci.h
lib/dvb_ci/dvbci_session.h
lib/gdi/font.h
lib/gdi/gfont.h
lib/gdi/grc.h
lib/gui/ewindowstyle.h
lib/nav/core.h
lib/nav/pcore.h
lib/network/http_dyn.h
lib/network/httpd.h
lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.h
lib/service/event.h
lib/service/service.h
lib/service/servicedvb.h
lib/service/servicedvbrecord.h
lib/service/servicefs.h
lib/service/servicemp3.h
lib/service/servicexine.h

index a6fc4b54954bdb62a467ec2bbbae7fc7bb7f1c28..870fd85b73682a72c90f19137ea89c8c581c82a5 100644 (file)
@@ -6,8 +6,7 @@
 
 class eConnection: public iObject, public Connection
 {
-DECLARE_REF(eConnection);
-private:
+       DECLARE_REF(eConnection);
        ePtr<iObject> m_owner;
 public:
        eConnection(iObject *owner, const Connection &conn): Connection(conn), m_owner(owner) { };
index 9628a69a32ad5f1d0dcc0c7efbec4dd91908c7ff..cbf5370a4ead2e6b40c75ea6a9e942f4cf21aa6f 100644 (file)
@@ -16,7 +16,7 @@ class eWidget;
 SWIG_IGNORE(eActionMap);
 class eActionMap: public iObject
 {
-DECLARE_REF(eActionMap);
+       DECLARE_REF(eActionMap);
 #ifdef SWIG
        eActionMap();
        ~eActionMap();
index 1723a885d994c9188815a58d2207590b7af38daf..f0e0e9a5aba78c116f0cc112581db27171d7ac3a 100644 (file)
@@ -18,9 +18,15 @@ private:
        void operator=(const iObject &);
 protected:
        virtual ~iObject() { }
+#ifdef SWIG
+       virtual void AddRef()=0;
+       virtual void Release()=0;
+#endif
 public:
+#ifndef SWIG
        virtual void AddRef()=0;
        virtual void Release()=0;
+#endif
 };
 
 #ifndef SWIG
@@ -43,10 +49,10 @@ public:
        #if defined(OBJECT_DEBUG)
                extern int object_total_remaining;
                #define DECLARE_REF(x)                  \
-                       private:oRefCount ref;  \
-                                       eSingleLock ref_lock; \
                        public: void AddRef();          \
-                                       void Release();
+                                       void Release();         \
+                       private:oRefCount ref;          \
+                                       eSingleLock ref_lock;
                #define DEFINE_REF(c) \
                        void c::AddRef() \
                        { \
@@ -68,9 +74,9 @@ public:
                        }
        #elif defined(__mips__)
                #define DECLARE_REF(x)                  \
-                       private: oRefCount ref;         \
                        public: void AddRef();          \
-                                       void Release();
+                                       void Release();         \
+                       private: oRefCount ref; 
                #define DEFINE_REF(c) \
                        void c::AddRef() \
                        { \
@@ -108,9 +114,9 @@ public:
                        }
        #elif defined(__ppc__) || defined(__powerpc__)
                #define DECLARE_REF(x)                  \
-                       private: oRefCount ref;         \
                        public: void AddRef();          \
-                                       void Release();
+                                       void Release();         \
+                       private: oRefCount ref;
                #define DEFINE_REF(c) \
                        void c::AddRef() \
                        { \
@@ -142,9 +148,9 @@ public:
                        }
        #elif defined(__i386__) || defined(__x86_64__)
                #define DECLARE_REF(x)                  \
-                       private: oRefCount ref;         \
                        public: void AddRef();          \
-                                       void Release();
+                                       void Release();         \
+                       private: oRefCount ref;
                #define DEFINE_REF(c) \
                        void c::AddRef() \
                        { \
@@ -165,10 +171,10 @@ public:
        #else
                #warning use non optimized implementation of refcounting.
                #define DECLARE_REF(x)                  \
-                       private:oRefCount ref;  \
-                                       eSingleLock ref_lock; \
                        public: void AddRef();          \
-                                       void Release();
+                                       void Release();         \
+                       private:oRefCount ref;  \
+                                       eSingleLock ref_lock;
                #define DEFINE_REF(c) \
                        void c::AddRef() \
                        { \
@@ -190,9 +196,6 @@ public:
                private: \
                        void AddRef(); \
                        void Release();
-       class Object
-       {
-       };
 #endif  // SWIG
 
 #endif  // __base_object_h
index 6c3dbc2f0f9c6502a8df06e3f13c8caa311fb601..782ff48e913049fb8e00cb528843917275399641 100644 (file)
@@ -54,8 +54,10 @@ public:
                        ptr->Release();
        }
        
+#ifndef SWIG
        T* grabRef() { if (!ptr) return 0; ptr->AddRef(); return ptr; }
        T* &ptrref() { assert(!ptr); return ptr; }
+#endif
        T* operator->() const { ptrAssert(ptr); return ptr; }
        operator T*() const { return this->ptr; }
        
@@ -131,8 +133,10 @@ public:
                }
        }
        
+#ifndef SWIG
        T* grabRef() { if (!ptr) return 0; ptr->AddRef(); ptr->AddUse(); return ptr; }
        T* &ptrref() { assert(!ptr); return ptr; }
+#endif
        T* operator->() const { ptrAssert(ptr); return ptr; }
        operator T*() const { return this->ptr; }
 };
index b5acf91a85360cc3d30ddd4f7550a35af6930998..3d8984e16c04031bee68399b1ad6a731d1038bf2 100644 (file)
@@ -8,8 +8,7 @@ class eDVBScan;
 
 class eComponentScan: public Object, public iObject
 {
-DECLARE_REF(eComponentScan);
-private:
+       DECLARE_REF(eComponentScan);
 #ifndef SWIG
        void scanEvent(int event);
        ePtr<eConnection> m_scan_event_connection;
index 0947b34560894244a6512618cdcdd27e7f656cab..512f81e474261da0923d66712503c31ae20233ae 100644 (file)
@@ -10,8 +10,8 @@ class ServiceDescriptionSection;
 
 class eDVBDB: public iDVBChannelList
 {
+       DECLARE_REF(eDVBDB);
        static eDVBDB *instance;
-DECLARE_REF(eDVBDB);
        friend class eDVBDBQuery;
        friend class eDVBDBBouquetQuery;
        friend class eDVBDBSatellitesQuery;
@@ -75,7 +75,7 @@ public:
        // we have to add a possibility to invalidate here.
 class eDVBDBQueryBase: public iDVBChannelListQuery
 {
-DECLARE_REF(eDVBDBQueryBase);
+       DECLARE_REF(eDVBDBQueryBase);
 protected:
        ePtr<eDVBDB> m_db;
        ePtr<eDVBChannelQuery> m_query;
index 409a4421fee330c722f2fdc511e0af5b789db418..7dfe38343a5868e605f0f5afaf1b1cf5dbeb111f 100644 (file)
@@ -8,7 +8,7 @@ class eSocketNotifier;
 
 class eDVBAudio: public iObject
 {
-DECLARE_REF(eDVBAudio);
+       DECLARE_REF(eDVBAudio);
 private:
        ePtr<eDVBDemux> m_demux;
        int m_fd, m_fd_demux, m_dev, m_is_freezed;
@@ -36,7 +36,7 @@ public:
 
 class eDVBVideo: public iObject, public Object
 {
-DECLARE_REF(eDVBVideo);
+       DECLARE_REF(eDVBVideo);
 private:
        ePtr<eDVBDemux> m_demux;
        int m_fd, m_fd_demux, m_dev;
@@ -71,7 +71,7 @@ public:
 
 class eDVBPCR: public iObject
 {
-DECLARE_REF(eDVBPCR);
+       DECLARE_REF(eDVBPCR);
 private:
        ePtr<eDVBDemux> m_demux;
        int m_fd_demux;
@@ -89,7 +89,7 @@ public:
 
 class eDVBTText: public iObject
 {
-DECLARE_REF(eDVBTText);
+       DECLARE_REF(eDVBTText);
 private:
        ePtr<eDVBDemux> m_demux;
        int m_fd_demux;
@@ -102,10 +102,11 @@ public:
 
 class eTSMPEGDecoder: public Object, public iTSMPEGDecoder
 {
+       DECLARE_REF(eTSMPEGDecoder);
+private:
        static int m_pcm_delay;
        static int m_ac3_delay;
        static int m_audio_channel;
-DECLARE_REF(eTSMPEGDecoder);
        std::string m_radio_pic;
        ePtr<eDVBDemux> m_demux;
        ePtr<eDVBAudio> m_audio;
index e3759331c2278e15c317731a92be930bde401795..3541974e9a39df7666f9b694c6f68a8e5ffa4738 100644 (file)
@@ -47,7 +47,6 @@ private:
 class eDVBSectionReader: public iDVBSectionReader, public Object
 {
        DECLARE_REF(eDVBSectionReader);
-private:
        int fd;
        Signal1<void, const __u8*> read;
        ePtr<eDVBDemux> demux;
@@ -67,7 +66,6 @@ public:
 class eDVBPESReader: public iDVBPESReader, public Object
 {
        DECLARE_REF(eDVBPESReader);
-private:
        int m_fd;
        Signal2<void, const __u8*, int> m_read;
        ePtr<eDVBDemux> m_demux;
index f5ca483e70d01357436efa55ef65fb7f938928ae..23a9d5a9c268518e810519ff975023f7183e8eb0 100644 (file)
@@ -320,10 +320,11 @@ RESULT eDVBResourceManager::allocateFrontendByIndex(ePtr<eDVBAllocatedFrontend>
                if (!i->m_inuse && i->m_frontend->getSlotID() == slot_index)
                {
                        // check if another slot linked to this is in use
-                       eDVBRegisteredFrontend *satpos_depends_to_fe =
-                               (eDVBRegisteredFrontend*) i->m_frontend->m_data[eDVBFrontend::SATPOS_DEPENDS_PTR];
-                       if ( (long)satpos_depends_to_fe != -1 )
+                       long tmp;
+                       i->m_frontend->getData(eDVBFrontend::SATPOS_DEPENDS_PTR, tmp);
+                       if ( tmp != -1 )
                        {
+                               eDVBRegisteredFrontend *satpos_depends_to_fe = (eDVBRegisteredFrontend *)tmp;
                                if (satpos_depends_to_fe->m_inuse)
                                {
                                        eDebug("another satpos depending frontend is in use.. so allocateFrontendByIndex not possible!");
@@ -333,29 +334,29 @@ RESULT eDVBResourceManager::allocateFrontendByIndex(ePtr<eDVBAllocatedFrontend>
                        }
                        else // check linked tuners
                        {
-                               eDVBRegisteredFrontend *next =
-                                       (eDVBRegisteredFrontend *) i->m_frontend->m_data[eDVBFrontend::LINKED_NEXT_PTR];
-                               while ( (long)next != -1 )
+                               i->m_frontend->getData(eDVBFrontend::LINKED_NEXT_PTR, tmp);
+                               while ( tmp != -1 )
                                {
+                                       eDVBRegisteredFrontend *next = (eDVBRegisteredFrontend *) tmp;
                                        if (next->m_inuse)
                                        {
                                                eDebug("another linked frontend is in use.. so allocateFrontendByIndex not possible!");
                                                err = errAllSourcesBusy;
                                                goto alloc_fe_by_id_not_possible;
                                        }
-                                       next = (eDVBRegisteredFrontend *)next->m_frontend->m_data[eDVBFrontend::LINKED_NEXT_PTR];
+                                       next->m_frontend->getData(eDVBFrontend::LINKED_NEXT_PTR, tmp);
                                }
-                               eDVBRegisteredFrontend *prev = (eDVBRegisteredFrontend *)
-                                       i->m_frontend->m_data[eDVBFrontend::LINKED_PREV_PTR];
-                               while ( (long)prev != -1 )
+                               i->m_frontend->getData(eDVBFrontend::LINKED_PREV_PTR, tmp);
+                               while ( tmp != -1 )
                                {
+                                       eDVBRegisteredFrontend *prev = (eDVBRegisteredFrontend *) tmp;
                                        if (prev->m_inuse)
                                        {
                                                eDebug("another linked frontend is in use.. so allocateFrontendByIndex not possible!");
                                                err = errAllSourcesBusy;
                                                goto alloc_fe_by_id_not_possible;
                                        }
-                                       prev = (eDVBRegisteredFrontend *)prev->m_frontend->m_data[eDVBFrontend::LINKED_PREV_PTR];
+                                       prev->m_frontend->getData(eDVBFrontend::LINKED_PREV_PTR, tmp);
                                }
                        }
                        fe = new eDVBAllocatedFrontend(i);
index d2148bc903784e2870060eef2a59a27316ae06fe..2fca347d3f6d1771e8bfb520fd1905c025e557ce 100644 (file)
@@ -23,13 +23,13 @@ class eDVBRegisteredFrontend: public iObject, public Object
 {
        DECLARE_REF(eDVBRegisteredFrontend);
        eTimer *disable;
-       Signal0<void> stateChanged;
        void closeFrontend()
        {
                if (!m_inuse && m_frontend->closeFrontend()) // frontend busy
                        disable->start(60000, true);  // retry close in 60secs
        }
 public:
+       Signal0<void> stateChanged;
        eDVBRegisteredFrontend(eDVBFrontend *fe, iDVBAdapter *adap)
                :disable(new eTimer(eApp)), m_adapter(adap), m_frontend(fe), m_inuse(0)
        {
@@ -62,7 +62,7 @@ public:
 
 struct eDVBRegisteredDemux
 {
-DECLARE_REF(eDVBRegisteredDemux);
+       DECLARE_REF(eDVBRegisteredDemux);
 public:
        iDVBAdapter *m_adapter;
        ePtr<eDVBDemux> m_demux;
@@ -72,7 +72,7 @@ public:
 
 class eDVBAllocatedFrontend
 {
-DECLARE_REF(eDVBAllocatedFrontend);
+       DECLARE_REF(eDVBAllocatedFrontend);
 public:
        
        eDVBAllocatedFrontend(eDVBRegisteredFrontend *fe);
@@ -87,7 +87,7 @@ private:
 
 class eDVBAllocatedDemux
 {
-DECLARE_REF(eDVBAllocatedDemux);
+       DECLARE_REF(eDVBAllocatedDemux);
 public:
        
        eDVBAllocatedDemux(eDVBRegisteredDemux *demux);
@@ -112,7 +112,7 @@ public:
 
 class eDVBAdapterLinux: public iDVBAdapter
 {
-DECLARE_REF(eDVBAdapterLinux);
+       DECLARE_REF(eDVBAdapterLinux);
 public:
        eDVBAdapterLinux(int nr);
 
index debbbff9cdc3a5bf2ce33937c5329da9e8f1047e..ffcfaa4168969fdd13c457fd5aee54f349eecfba 100644 (file)
@@ -46,6 +46,7 @@ public:
 
 class eDVBLocalTimeHandler: public Object
 {
+       DECLARE_REF(eDVBLocalTimeHandler);
        struct channel_data
        {
                TDT *tdt;
@@ -54,7 +55,6 @@ class eDVBLocalTimeHandler: public Object
                int m_prevChannelState;
        };
        friend class TDT;
-       DECLARE_REF(eDVBLocalTimeHandler)
        std::map<iDVBChannel*, channel_data> m_knownChannels;
        std::map<eDVBChannelID,int> m_timeOffsetMap;
        ePtr<eConnection> m_chanAddedConn;
index 98d53b48f62e08d0b33ee2c7e35f4fbeb66a7c89..5dc84ec6019dba8c823087677d65ce29e1396870 100644 (file)
@@ -6,8 +6,7 @@
 
 class eGTable: public iObject, public Object
 {
-DECLARE_REF(eGTable);
-private:
+       DECLARE_REF(eGTable);
        ePtr<iDVBSectionReader> m_reader;
        eDVBTableSpec m_table;
        
index ac681bbe06ef8bc1c8edacf1b153f17329bce7dc..bbfd174d53d340f8f5289fcdb2edc3dd4fb81b49 100644 (file)
@@ -41,6 +41,25 @@ class eSecCommandList;
 
 class eDVBFrontend: public iDVBFrontend, public Object
 {
+public:
+       enum {
+               CSW,                  // state of the committed switch
+               UCSW,                 // state of the uncommitted switch
+               TONEBURST,            // current state of toneburst switch
+               NEW_ROTOR_CMD,        // prev sent rotor cmd
+               NEW_ROTOR_POS,        // new rotor position (not validated)
+               ROTOR_CMD,            // completed rotor cmd (finalized)
+               ROTOR_POS,            // current rotor position
+               LINKED_PREV_PTR,      // prev double linked list (for linked FEs)
+               LINKED_NEXT_PTR,      // next double linked list (for linked FEs)
+               SATPOS_DEPENDS_PTR,   // pointer to FE with configured rotor (with twin/quattro lnb)
+               FREQ_OFFSET,          // current frequency offset
+               CUR_VOLTAGE,          // current voltage
+               CUR_TONE,             // current continuous tone
+               NUM_DATA_ENTRIES
+       };
+       Signal1<void,iDVBFrontend*> m_stateChanged;
+private:
        DECLARE_REF(eDVBFrontend);
        bool m_enabled;
        int m_type;
@@ -54,10 +73,8 @@ class eDVBFrontend: public iDVBFrontend, public Object
        int m_secfd;
        char m_sec_filename[128];
 #endif
-
        FRONTENDPARAMETERS parm;
        int m_state;
-       Signal1<void,iDVBFrontend*> m_stateChanged;
        ePtr<iDVBSatelliteEquipmentControl> m_sec;
        eSocketNotifier *m_sn;
        int m_tuning;
@@ -66,23 +83,6 @@ class eDVBFrontend: public iDVBFrontend, public Object
 
        eSecCommandList m_sec_sequence;
 
-       enum {
-               CSW,                  // state of the committed switch
-               UCSW,                 // state of the uncommitted switch
-               TONEBURST,            // current state of toneburst switch
-               NEW_ROTOR_CMD,        // prev sent rotor cmd
-               NEW_ROTOR_POS,        // new rotor position (not validated)
-               ROTOR_CMD,            // completed rotor cmd (finalized)
-               ROTOR_POS,            // current rotor position
-               LINKED_PREV_PTR,      // prev double linked list (for linked FEs)
-               LINKED_NEXT_PTR,      // next double linked list (for linked FEs)
-               SATPOS_DEPENDS_PTR,   // pointer to FE with configured rotor (with twin/quattro lnb)
-               FREQ_OFFSET,          // current frequency offset
-               CUR_VOLTAGE,          // current voltage
-               CUR_TONE,             // current continuous tone
-               NUM_DATA_ENTRIES
-       };
-
        long m_data[NUM_DATA_ENTRIES];
 
        int m_idleInputpower[2];  // 13V .. 18V
@@ -95,7 +95,6 @@ class eDVBFrontend: public iDVBFrontend, public Object
        void timeout();
        void tuneLoop();  // called by m_tuneTimer
        void setFrontend();
-       int readInputpower();
        bool setSecSequencePos(int steps);
        void setRotorData(int pos, int cmd);
        static int PriorityOrder;
@@ -103,6 +102,7 @@ public:
        eDVBFrontend(int adap, int fe, int &ok);        
        virtual ~eDVBFrontend();
 
+       int readInputpower();
        RESULT getFrontendType(int &type);
        RESULT tune(const iDVBFrontendParameters &where);
        RESULT prepare_sat(const eDVBFrontendParametersSatellite &, unsigned int timeout);
index 80ad20e806dc317a48809a0c174b77576ceecc3a..80faca1f8f68c10e95ac49420021708f53c5dc92 100644 (file)
@@ -4,7 +4,6 @@
 class eDVBTransponderList: iDVBChannelList
 {
        DECLARE_REF(eDVBTransponderList);
-private:
        std::map<eDVBChannelID, ePtr<iDVBFrontendParameters> > channels;
 public:
        virtual RESULT getChannelFrontendData(const eDVBChannelID &id, ePtr<iDVBFrontendParameters> &parm)=0;
index 8c354ff15435dcb5fe8b41e09b259f3cc62fced6..634352f73d569ac930c7969c0fc6ca8cbd46b728 100644 (file)
@@ -15,11 +15,11 @@ class eDVBRdsDecoder: public iObject, public ePESParser, public Object
        unsigned char qdar[60*1024]; //60 kB for holding Rass qdar archive
        unsigned short crc16, crc;
        long part, parts, partcnt;
-       enum { RadioTextChanged, RtpTextChanged, RassInteractivePicMaskChanged, RecvRassSlidePic };
        unsigned char rass_picture_mask[5];  // 40 bits... (10 * 4 pictures)
        void addToPictureMask(int id);
        void removeFromPictureMask(int id);
 public:
+       enum { RadioTextChanged, RtpTextChanged, RassInteractivePicMaskChanged, RecvRassSlidePic };
        eDVBRdsDecoder(iDVBDemux *demux);
        ~eDVBRdsDecoder();
        int start(int pid);
index 6dcbe70723eb9f6e0d6ba0fef0924b4480a943ee..68e21a5dfcbec160974f31b999e69926093bf277 100644 (file)
@@ -11,8 +11,7 @@
 
 class eDVBScan: public Object, public iObject
 {
-DECLARE_REF(eDVBScan);
-private:
+       DECLARE_REF(eDVBScan);
                /* chid helper functions: */
                
                /* heuristically determine if onid/tsid is valid */
index 2241e00ecfc7e04fd0adb4827488d470290c8fb9..18935b97d3da41944b35cd9038e591e1a48c4b8b 100644 (file)
@@ -243,6 +243,7 @@ class eDVBRegisteredFrontend;
 
 class eDVBSatelliteEquipmentControl: public iDVBSatelliteEquipmentControl
 {
+       DECLARE_REF(eDVBSatelliteEquipmentControl);
 public:
        enum {
                DELAY_AFTER_CONT_TONE=0,  // delay after continuous tone change
@@ -280,7 +281,6 @@ private:
 public:
 #ifndef SWIG
        eDVBSatelliteEquipmentControl(eSmartPtrList<eDVBRegisteredFrontend> &avail_frontends);
-       DECLARE_REF(eDVBSatelliteEquipmentControl);
        RESULT prepare(iDVBFrontend &frontend, FRONTENDPARAMETERS &parm, const eDVBFrontendParametersSatellite &sat, int frontend_id, unsigned int tunetimeout);
        int canTune(const eDVBFrontendParametersSatellite &feparm, iDVBFrontend *, int frontend_id);
        bool currentLNBValid() { return m_lnbidx > -1 && m_lnbidx < (int)(sizeof(m_lnbs) / sizeof(eDVBSatelliteLNBParameters)); }
index 603fadfdac5cf475cd21f7046ddd17b3e71b9f9f..8fa313e2709c8cfaa4d2e153a8b603e60c12fd62 100644 (file)
@@ -41,8 +41,7 @@ enum data_source
 class eDVBCISlot: public iObject, public Object
 {
        friend class eDVBCIInterfaces;
-DECLARE_REF(eDVBCISlot);
-private:
+       DECLARE_REF(eDVBCISlot);
        int slotid;
        int fd;
        eSocketNotifier *notifier;
@@ -112,9 +111,8 @@ typedef std::list<CIPmtHandler> PMTHandlerList;
 
 class eDVBCIInterfaces
 {
-DECLARE_REF(eDVBCIInterfaces);
+       DECLARE_REF(eDVBCIInterfaces);
        static eDVBCIInterfaces *instance;
-private:
        eSmartPtrList<eDVBCISlot> m_slots;
        eDVBCISlot *getSlot(int slotid);
        PMTHandlerList m_pmt_handlers; 
index ae0d340db840412207995b554fd87732137b25db..89a58f3b504351248185b2948d4cddffb2ac8a9e 100644 (file)
@@ -11,7 +11,6 @@ class eDVBCISession
 {
        DECLARE_REF(eDVBCISession);
        static ePtr<eDVBCISession> sessions[SLMS];
-       static void deleteSessions(const eDVBCISlot *slot);
        static void createSession(eDVBCISlot *slot, const unsigned char *resource_identifier, unsigned char &status, ePtr<eDVBCISession> &ptr);
        static void sendSPDU(eDVBCISlot *slot, unsigned char tag,const void *data, int len, unsigned short session_nb, const void *apdu=0,int alen=0);
        static void sendOpenSessionResponse(eDVBCISlot *slot,unsigned char session_status, const unsigned char *resource_identifier,unsigned short session_nb);
@@ -31,6 +30,7 @@ protected:
 public:
        virtual ~eDVBCISession();
 
+       static void deleteSessions(const eDVBCISlot *slot);
 
        int poll() { if (action) { action=doAction(); return 1; } return 0; }
        enum { stateInCreation, stateBusy, stateInDeletion, stateStarted, statePrivate};
index 3cdfc299c0d64f6b853970e6c235bbd3f4e0669e..41d51ddc0ec2df9b273cb326f701af01132a47c4 100644 (file)
@@ -100,9 +100,8 @@ class eLCD;
 
 class eTextPara: public iObject
 {
-DECLARE_REF(eTextPara);
-private:
-       ePtr<Font> current_font, replacement_font;
+       DECLARE_REF(eTextPara);
+       ePtr<Font> current_font, replacement_font;
        FT_Face current_face, replacement_face;
        int use_kerning;
        int previous;
@@ -183,7 +182,7 @@ public:
 
 class Font: public iObject
 {
-DECLARE_REF(Font);
+       DECLARE_REF(Font);
 public:
 #ifdef HAVE_FREETYPE2
        FTC_ScalerRec scaler;
index d6697ce00f54b008a4e08352d2386658e193544b..8816f018a90bdf27741b15461335398f9f1769d8 100644 (file)
@@ -12,7 +12,7 @@
  */
 class gFont: public iObject
 {
-DECLARE_REF(gFont);
+       DECLARE_REF(gFont);
 public:
 
        std::string family;
index 478ca46c54ae2448f99b93d9471079b3a6263319..7071425ef6ce7e968b96e239c35b4db5cc365e1f 100644 (file)
@@ -145,8 +145,7 @@ struct gOpcode
                /* gRC is the singleton which controls the fifo and dispatches commands */
 class gRC: public iObject, public Object
 {
-DECLARE_REF(gRC);
-private:
+       DECLARE_REF(gRC);
        friend class gPainter;
        static gRC *instance;
 
@@ -257,7 +256,7 @@ public:
 
 class gDC: public iObject
 {
-DECLARE_REF(gDC);
+       DECLARE_REF(gDC);
 protected:
        ePtr<gPixmap> m_pixmap;
 
index c204a0344273ad0f1c8788428fa247c4e4e72d00..5008cd6e1d73a6f76f759b8dff391318e23cafad 100644 (file)
@@ -86,7 +86,6 @@ SWIG_EXTEND(ePtr<eWindowStyleManager>,
 class eWindowStyleSimple: public eWindowStyle
 {
        DECLARE_REF(eWindowStyleSimple);
-private:
        ePtr<gFont> m_fnt;
        gColor m_border_color_tl, m_border_color_br, m_title_color_back, m_title_color, m_background_color;
        
index b82d2fbd4e00c8b3076c917c885cc1311487ca4a..01efe9af284f62a4d97e52e169c51e0f46b408dd 100644 (file)
@@ -9,7 +9,6 @@
 class eNavigation: public iObject, public Object
 {
        DECLARE_REF(eNavigation);
-private:
        ePtr<iServiceHandler> m_servicehandler;
 
        ePtr<iPlayableService> m_runningService;
index c485f7d01460d7eacf1fad26f914a32f789e49c4..1d314b19848fc22af84db3a2b9cf96964f1517a3 100644 (file)
@@ -8,7 +8,7 @@
 
 class pNavigation: public iObject, public Object
 {
-DECLARE_REF(pNavigation);
+       DECLARE_REF(pNavigation);
 public:
        PSignal1<void, int> m_event;
        PSignal2<void, ePtr<iRecordableService>&, int> m_record_event;
index 24e4dba18b7ce0ba6fff2b5794704ca50f05d14f..26fca877b88fa44eeb1c8e5b7d1882fca807cd32 100644 (file)
@@ -6,7 +6,6 @@
 class eHTTPDyn: public eHTTPDataSource
 {
        DECLARE_REF(eHTTPDyn);
-private:
        std::string result;
        int wptr, size;
 public:
@@ -18,7 +17,6 @@ public:
 class eHTTPDynPathResolver: public iHTTPPathResolver
 {
        DECLARE_REF(eHTTPDynPathResolver);
-private:
        struct eHTTPDynEntry: public iObject
        {
                DECLARE_REF(eHTTPDynEntry);
index aa8c5288400c57bdcbe7fe788f80b7fac69ae899..1c6678b009313b9f0c253d10e9762eaf49651474 100644 (file)
@@ -42,7 +42,6 @@ typedef ePtr<eHTTPDataSource> eHTTPDataSourcePtr;
 class eHTTPError: public eHTTPDataSource
 {
        DECLARE_REF(eHTTPError);
-private:
        int errcode;
 public:
        eHTTPError(eHTTPConnection *c, int errcode);
index bc92b37ed5dc3eca12ef3e79a3bb3a9fa8eaf508..d0a6bb359cc20cb0466f978c79333eddf538a1af 100644 (file)
@@ -12,7 +12,7 @@ class eStaticServiceDVDInfo;
 
 class eServiceFactoryDVD: public iServiceHandler
 {
-DECLARE_REF(eServiceFactoryDVD);
+       DECLARE_REF(eServiceFactoryDVD);
 public:
        eServiceFactoryDVD();
        virtual ~eServiceFactoryDVD();
@@ -30,7 +30,7 @@ class eServiceDVD: public iPlayableService, public iPauseableService, public iSe
        public iServiceInformation, public iSubtitleOutput, public iServiceKeys, public iCueSheet, public eThread, public Object
 {
        friend class eServiceFactoryDVD;
-DECLARE_REF(eServiceDVD);
+       DECLARE_REF(eServiceDVD);
 public:
        virtual ~eServiceDVD();
                // not implemented (yet)
index 8c214af6762d5b0fc67f610b0617597516ebacbc..4c354079b772880c6ed99213d8673693c1237b75 100644 (file)
@@ -14,14 +14,14 @@ class Event;
 SWIG_IGNORE(eComponentData);
 struct eComponentData
 {
-DECLARE_REF(eComponentData);
-#ifndef SWIG
+       friend class eServiceEvent;
+       DECLARE_REF(eComponentData);
        uint8_t m_streamContent;
        uint8_t m_componentType;
        uint8_t m_componentTag;
        std::string m_iso639LanguageCode;
        std::string m_text;
-#endif
+public:
        eComponentData(const eComponentData& d) { *this = d; } 
        eComponentData() { m_streamContent = m_componentType = m_componentTag = 0; }
        int getStreamContent(void) const { return m_streamContent; }
index 3929f7525e02ddf3b54b8cd5308e6d4d2decbac7..6f6ab98088a815189838b21edc5693650a6bdbed 100644 (file)
@@ -13,8 +13,7 @@ typedef ePtr<eServiceCenter> eServiceCenterPtr;
 
 class eServiceCenter: public iServiceHandler
 {
-DECLARE_REF(eServiceCenter);
-private:
+       DECLARE_REF(eServiceCenter);
        std::map<int,ePtr<iServiceHandler> > handler;
        std::map<int,std::list<std::string> > extensions;
        static eServiceCenter *instance;
index 0c5710d8f19d2c20e442ad43dbae0db011eac566..0bd12bd8a09fb1d09451ccf080c80e8a7d58be9a 100644 (file)
@@ -38,7 +38,7 @@ class eBouquet;
 
 class eDVBServiceList: public iListableService, public iMutableServiceList
 {
-DECLARE_REF(eDVBServiceList);
+       DECLARE_REF(eDVBServiceList);
 public:
        virtual ~eDVBServiceList();
        PyObject *getContent(const char* formatstr, bool sorted=false);
@@ -91,7 +91,7 @@ class eDVBServicePlay: public eDVBServiceBase,
                public iCueSheet, public iSubtitleOutput, public iAudioDelay,
                public iRdsDecoder, public iStreamableService
 {
-DECLARE_REF(eDVBServicePlay);
+       DECLARE_REF(eDVBServicePlay);
 public:
        virtual ~eDVBServicePlay();
 
index dcce33885ce400c877ffa3782455138e43bfba1b..b46a73ead40125342c52c1221389fcc78ced1f80 100644 (file)
@@ -15,7 +15,7 @@ class eDVBServiceRecord: public eDVBServiceBase,
        public iStreamableService,
        public Object
 {
-DECLARE_REF(eDVBServiceRecord);
+       DECLARE_REF(eDVBServiceRecord);
 public:
        RESULT connectEvent(const Slot2<void,iRecordableService*,int> &event, ePtr<eConnection> &connection);
        RESULT prepare(const char *filename, time_t begTime, time_t endTime, int eit_event_id);
index d05eef19c70475a541d3ecf30478e2f9f7dbe7a6..eabdd3c711e099fdb02dad671e8f35ddd4e11d81 100644 (file)
@@ -5,7 +5,7 @@
 
 class eServiceFactoryFS: public iServiceHandler
 {
-DECLARE_REF(eServiceFactoryFS);
+       DECLARE_REF(eServiceFactoryFS);
 public:
        eServiceFactoryFS();
        virtual ~eServiceFactoryFS();
@@ -23,8 +23,7 @@ private:
 
 class eServiceFS: public iListableService
 {
-DECLARE_REF(eServiceFS);
-private:
+       DECLARE_REF(eServiceFS);
        std::string path;
        friend class eServiceFactoryFS;
        eServiceFS(const char *path, const char *additional_extensions=0);
index 71291af969a7648fa634ce5b3857bf499f91893b..08b712c334f12b656d3eea922813f4a5bbec456c 100644 (file)
@@ -10,7 +10,7 @@ class eStaticServiceMP3Info;
 
 class eServiceFactoryMP3: public iServiceHandler
 {
-DECLARE_REF(eServiceFactoryMP3);
+       DECLARE_REF(eServiceFactoryMP3);
 public:
        eServiceFactoryMP3();
        virtual ~eServiceFactoryMP3();
@@ -41,7 +41,7 @@ typedef struct _GstElement GstElement;
 class eServiceMP3: public iPlayableService, public iPauseableService, 
        public iServiceInformation, public iSeekableService, public Object
 {
-DECLARE_REF(eServiceMP3);
+       DECLARE_REF(eServiceMP3);
 public:
        virtual ~eServiceMP3();
 
index 4bf7e3ebe04bb74365af6435d789d21576b2310b..b18f678515e74f13f51955a20de011b345f56850 100644 (file)
@@ -13,7 +13,7 @@ class eStaticServiceXineInfo;
 
 class eServiceFactoryXine: public iServiceHandler
 {
-DECLARE_REF(eServiceFactoryXine);
+       DECLARE_REF(eServiceFactoryXine);
 public:
        eServiceFactoryXine();
        virtual ~eServiceFactoryXine();
@@ -44,7 +44,7 @@ typedef struct _GstElement GstElement;
 class eServiceXine: public iPlayableService, public iPauseableService, 
        public iServiceInformation, public iSeekableService, public Object
 {
-DECLARE_REF(eServiceXine);
+       DECLARE_REF(eServiceXine);
 public:
        virtual ~eServiceXine();