make many constructors and destructors invisible for python
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 31 Dec 2005 00:23:01 +0000 (00:23 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 31 Dec 2005 00:23:01 +0000 (00:23 +0000)
13 files changed:
lib/actions/action.h
lib/driver/avswitch.h
lib/driver/rfmod.h
lib/dvb/dvbtime.h
lib/dvb/epgcache.h
lib/dvb/sec.h
lib/dvb/volume.h
lib/dvb_ci/dvbci_ui.h
lib/gdi/font.h
lib/gdi/lcd.h
lib/gui/ewindowstyle.h
lib/service/iservice.h
lib/service/service.h

index 63a2f349d6ee55e11c8d7c36476632d5a2a40b46..e43e48a74e64488fd5f12185791058555d86c0b1 100644 (file)
@@ -17,6 +17,10 @@ class eWidget;
 class eActionMap: public iObject
 {
 DECLARE_REF(eActionMap);
+#ifdef SWIG
+       eActionMap();
+       ~eActionMap();
+#endif
 public:
 #ifndef SWIG
        eActionMap();
index 9f6eccb7fd9569d65362456122cf3ad138699fc2..d765e02afe6758a41c975fa419af83422482fb5e 100644 (file)
@@ -4,12 +4,16 @@
 class eAVSwitch
 {
        static eAVSwitch *instance;
-       
+#ifdef SWIG
+       eAVSwitch();
+       ~eAVSwitch();
+#endif
 protected:     
 public:
+#ifndef SWIG
        eAVSwitch();
        ~eAVSwitch();
-
+#endif
        static eAVSwitch *getInstance();
        
        void setFastBlank(int val);
index c95c47a98d1437eae7c2bc5d4fe37c73408146d9..909a08de73bfc942168e1168a00621f089c0388d 100644 (file)
@@ -6,11 +6,15 @@ class eRFmod
        static eRFmod *instance;
        
        int fd;
-protected:     
+#ifdef SWIG
+       eRFmod();
+       ~eRFmod();
+#endif
 public:
+#ifndef SWIG
        eRFmod();
        ~eRFmod();
-
+#endif
        static eRFmod *getInstance();
 
        void setFunction(int val);                                              //0=Enable 1=Disable
index a0b570dda82d3b64ddcf4020ad167f247deb1bbd..ec47de4611d2bd6ffe0bcf7627cdf62aa3a6c291 100644 (file)
@@ -60,6 +60,10 @@ class eDVBLocalTimeHandler: public Object
        void writeTimeOffsetData(const char*);
        void updateTime(time_t tp_time, eDVBChannel*, int updateCount);
        static eDVBLocalTimeHandler *instance;
+#ifdef SWIG
+       eDVBLocalTimeHandler();
+       ~eDVBLocalTimeHandler();
+#endif
 public:
 #ifndef SWIG
        PSignal0<void> m_timeUpdated;
index 9429bf30481f56d1cf5e602981586a3db62ef047..cca66d657bf3ef1728c67c24ae5e455a473f01be 100644 (file)
@@ -218,6 +218,9 @@ private:
 
        timeMap::iterator m_timemap_cursor, m_timemap_end;
        int currentQueryTsidOnid; // needed for getNextTimeEntry.. only valid until next startTimeQuery call
+#else
+       eEPGCache();
+       ~eEPGCache();
 #endif // SWIG
 public:
        static eEPGCache *getInstance() { return instance; }
index aa9c02717a90d0bf2aa8064916db7af2ee517038..0720beeb07e0169077c0362930692f6217f0d0a7 100644 (file)
@@ -109,17 +109,21 @@ public:
                return secSequence.size();
        }
 };
+#endif
 
 class eDVBSatelliteDiseqcParameters
 {
+#ifdef SWIG
+       eDVBSatelliteDiseqcParameters();
+       ~eDVBSatelliteDiseqcParameters();
+#endif
 public:
        enum { AA=0, AB=1, BA=2, BB=3, SENDNO=4 /* and 0xF0 .. 0xFF*/  };       // DiSEqC Parameter
-       __u8 m_committed_cmd;
-
        enum t_diseqc_mode { NONE=0, V1_0=1, V1_1=2, V1_2=3, SMATV=4 }; // DiSEqC Mode
-       t_diseqc_mode m_diseqc_mode;
-
        enum t_toneburst_param { NO=0, A=1, B=2 };
+#ifndef SWIG
+       __u8 m_committed_cmd;
+       t_diseqc_mode m_diseqc_mode;
        t_toneburst_param m_toneburst_param;
 
        __u8 m_repeats; // for cascaded switches
@@ -135,23 +139,34 @@ public:
                        4) uncommitted, committed, toneburst
                        5) toneburst, uncommitted, committed */
        __u8 m_uncommitted_cmd; // state of the 4 uncommitted switches..
+#endif
 };
 
 class eDVBSatelliteSwitchParameters
 {
+#ifdef SWIG
+       eDVBSatelliteSwitchParameters();
+       ~eDVBSatelliteSwitchParameters();
+#endif
 public:
        enum t_22khz_signal {   HILO=0, ON=1, OFF=2     }; // 22 Khz
        enum t_voltage_mode     {       HV=0, _14V=1, _18V=2, _0V=3 }; // 14/18 V
+#ifndef SWIG
        t_voltage_mode m_voltage_mode;
        t_22khz_signal m_22khz_signal;
        __u8 m_rotorPosNum; // 0 is disable.. then use gotoxx
+#endif
 };
 
 class eDVBSatelliteRotorParameters
 {
+#ifdef SWIG
+       eDVBSatelliteRotorParameters();
+       ~eDVBSatelliteRotorParameters();
+#endif
 public:
        enum { NORTH, SOUTH, EAST, WEST };
-
+#ifndef SWIG
        eDVBSatelliteRotorParameters() { setDefaultOptions(); }
 
        struct eDVBSatelliteRotorInputpowerParameters
@@ -179,12 +194,18 @@ public:
                m_gotoxx_parameters.m_longitude = 0.0;
                m_gotoxx_parameters.m_latitude = 0.0;
        }
+#endif
 };
 
 class eDVBSatelliteLNBParameters
 {
+#ifdef SWIG
+       eDVBSatelliteLNBParameters();
+       ~eDVBSatelliteLNBParameters();
+#endif
 public:
        enum t_12V_relais_state { OFF=0, ON };
+#ifndef SWIG
        t_12V_relais_state m_12V_relais_state;  // 12V relais output on/off
 
        __u8 tuner_mask; // useable by tuner ( 1 | 2 | 4...)
@@ -198,8 +219,8 @@ public:
        std::map<int, eDVBSatelliteSwitchParameters> m_satellites;
        eDVBSatelliteDiseqcParameters m_diseqc_parameters;
        eDVBSatelliteRotorParameters m_rotor_parameters;
-};
 #endif
+};
 
 class eDVBRegisteredFrontend;
 
@@ -213,9 +234,13 @@ class eDVBSatelliteEquipmentControl: public iDVBSatelliteEquipmentControl
        eSmartPtrList<eDVBRegisteredFrontend> &m_avail_frontends;
        bool m_rotorMoving;
 #endif
+#ifdef SWIG
+       eDVBSatelliteEquipmentControl();
+       ~eDVBSatelliteEquipmentControl();
+#endif
 public:
-       eDVBSatelliteEquipmentControl(eSmartPtrList<eDVBRegisteredFrontend> &avail_frontends);
 #ifndef SWIG
+       eDVBSatelliteEquipmentControl(eSmartPtrList<eDVBRegisteredFrontend> &avail_frontends);
        DECLARE_REF(eDVBSatelliteEquipmentControl);
        RESULT prepare(iDVBFrontend &frontend, FRONTENDPARAMETERS &parm, eDVBFrontendParametersSatellite &sat, int frontend_id);
        int canTune(const eDVBFrontendParametersSatellite &feparm, iDVBFrontend *, int frontend_id);
index cee31406aba681cc0d2cc315c5f0168d24cc167b..084cb6e6404ee95d76607026ee55b1aa145dfdfb 100644 (file)
@@ -8,7 +8,9 @@ class eDVBVolumecontrol
 private:
        static eDVBVolumecontrol *instance;
        eDVBVolumecontrol();
-       
+#ifdef SWIG
+       ~eDVBVolumecontrol();
+#endif
        int openMixer();
        void closeMixer(int fd);
        
index 1974d6539fe4b513955ca25111a3b7228b66e559..3b606d603e103c037fe2373e111dbfae6c426778 100644 (file)
@@ -11,11 +11,15 @@ class eDVBCI_UI
        int state[MAX_SLOTS];
        static eDVBCI_UI *instance;
        std::string appName;
-protected:
+#ifdef SWIG
+       eDVBCI_UI();
+       ~eDVBCI_UI();
+#endif
 public:
+#ifndef SWIG
        eDVBCI_UI();
        ~eDVBCI_UI();
-
+#endif
        static eDVBCI_UI *getInstance();
        
        int getState(int slot);
index 0f3bf7145610c5582d52a5a02a53cdf54f43a046..7c8211b8581e275888add3e638ad950a57abc46d 100644 (file)
@@ -46,6 +46,9 @@ class fontRenderClass
        FTC_FaceID getFaceID(const std::string &face);
        FT_Error getGlyphBitmap(FTC_Image_Desc *font, FT_ULong glyph_index, FTC_SBit *sbit);
        static fontRenderClass *instance;
+#else
+       fontRenderClass();
+       ~fontRenderClass();
 #endif
 public:
        float getLineHeight(const gFont& font);
@@ -54,9 +57,9 @@ public:
        std::string AddFont(const std::string &filename, const std::string &name, int scale);
        FT_Error FTC_Face_Requester(FTC_FaceID  face_id, FT_Face* aface);
        int getFont(ePtr<Font> &font, const std::string &face, int size, int tabwidth=-1);
-#endif
        fontRenderClass();
        ~fontRenderClass();
+#endif
 };
 
 #ifndef SWIG
index f2e707f035b6801852f316a40da91b279f5e6e1f..11749c64a2ec99ce35770120c650e086c1f73aa5 100644 (file)
 
 class eLCD
 {
+#ifdef SWIG
+       eLCD(eSize size);
+       ~eLCD();
+#else
 protected:
        eSize res;
        unsigned char *_buffer;
        int lcdfd;
        int _stride;
        int locked;
+#endif
 public:
        int lock();
        void unlock();
        int islocked() { return locked; }
-
+#ifndef SWIG
        eLCD(eSize size);
        virtual ~eLCD();
-
        __u8 *buffer() { return (__u8*)_buffer; }
        int stride() { return _stride; }
        eSize size() { return res; }
        
        virtual void update()=0;
+#endif
 };
 
 class eDBoxLCD: public eLCD
 {
        static eDBoxLCD *instance;
        unsigned char inverted;
+#ifdef SWIG
+       eDBoxLCD();
+       ~eDBoxLCD();
+#endif
 public:
+#ifndef SWIG
+       eDBoxLCD();
+       ~eDBoxLCD();
+#endif
        static eDBoxLCD *getInstance();
        int eDBoxLCD::setLCDContrast(int contrast);
        int eDBoxLCD::setLCDBrightness(int brightness);
        void setInverted( unsigned char );
-       eDBoxLCD();
-       ~eDBoxLCD();
        void update();
 };
 
index 08ea0a4179105292471819c8a712a359268ffafe..04d9d44ae3c481d955de4110b98717107b4caa76 100644 (file)
@@ -41,9 +41,15 @@ public:
 class eWindowStyleManager: public iObject
 {
        DECLARE_REF(eWindowStyleManager);
+#ifdef SWIG
+       eWindowStyleManager();
+       ~eWindowStyleManager();
+#endif
 public:
+#ifndef SWIG
        eWindowStyleManager();
        ~eWindowStyleManager();
+#endif
        void getStyle(ePtr<eWindowStyle> &style);
        void setStyle(eWindowStyle *style);
        static int getInstance(ePtr<eWindowStyleManager> &mgr) { mgr = m_instance; if (!mgr) return -1; return 0; }
index 3c3248c41a2ef9a4fc1a2b31ff30a527a6c86279..d234b6afbf487318719c79b62bdbfc8a2ef2ba15 100644 (file)
@@ -191,12 +191,16 @@ typedef long long pts_t;
           
 class iStaticServiceInformation: public iObject
 {
+#ifdef SWIG
+       iStaticServiceInformation();
+       ~iStaticServiceInformation();
+#endif
 public:
        virtual SWIG_VOID(RESULT) getName(const eServiceReference &ref, std::string &SWIG_OUTPUT)=0;
        
                // doesn't need to be implemented, should return -1 then.
        virtual int getLength(const eServiceReference &ref);
-       virtual SWIG_VOID(RESULT) getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &SWIG_OUTPUT, time_t start_time=0);
+       virtual SWIG_VOID(RESULT) getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &SWIG_OUTPUT, time_t start_time=-1);
                // returns true when not implemented
        virtual bool isPlayable(const eServiceReference &ref, const eServiceReference &ignore);
 
@@ -210,6 +214,10 @@ TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
 
 class iServiceInformation: public iObject
 {
+#ifdef SWIG
+       iServiceInformation();
+       ~iServiceInformation();
+#endif
 public:
        virtual SWIG_VOID(RESULT) getName(std::string &SWIG_OUTPUT)=0;
        virtual SWIG_VOID(RESULT) getEvent(ePtr<eServiceEvent> &SWIG_OUTPUT, int nownext);
@@ -252,6 +260,10 @@ TEMPLATE_TYPEDEF(ePtr<iServiceInformation>, iServiceInformationPtr);
 
 class iFrontendStatusInformation: public iObject
 {
+#ifdef SWIG
+       iFrontendStatusInformation();
+       ~iFrontendStatusInformation();
+#endif
 public:
        enum {
                bitErrorRate,
@@ -265,6 +277,10 @@ TEMPLATE_TYPEDEF(ePtr<iFrontendStatusInformation>, iFrontendStatusInformationPtr
 
 class iPauseableService: public iObject
 {
+#ifdef SWIG
+       iPausableService();
+       ~iPausableService();
+#endif
 public:
        virtual RESULT pause()=0;
        virtual RESULT unpause()=0;
@@ -278,6 +294,10 @@ TEMPLATE_TYPEDEF(ePtr<iPauseableService>, iPauseableServicePtr);
 
 class iSeekableService: public iObject
 {
+#ifdef SWIG
+       iSeekableService();
+       ~iSeekableService();
+#endif
 public:
        virtual RESULT getLength(pts_t &SWIG_OUTPUT)=0;
        virtual RESULT seekTo(pts_t to)=0;
@@ -293,6 +313,12 @@ TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr);
 
 struct iAudioTrackInfo
 {
+#ifdef SWIG
+private:
+       iAudioTrackInfo();
+       ~iAudioTrackInfo();
+public:
+#endif
 #ifndef SWIG
        std::string m_description;
        std::string m_language; /* iso639 */
@@ -305,6 +331,10 @@ SWIG_ALLOW_OUTPUT_SIMPLE(iAudioTrackInfo);
 
 class iAudioTrackSelection: public iObject
 {
+#ifdef SWIG
+       iAudioTrackSelection();
+       ~iAudioTrackSelection();
+#endif
 public:
        virtual int getNumberOfTracks()=0;
        virtual RESULT selectTrack(unsigned int i)=0;
@@ -315,6 +345,10 @@ TEMPLATE_TYPEDEF(ePtr<iAudioTrackSelection>, iAudioTrackSelectionPtr);
 
 class iSubserviceList: public iObject
 {
+#ifdef SWIG
+       iSubserviceList();
+       ~iSubserviceList();
+#endif
 public:
        virtual int getNumberOfSubservices()=0;
        virtual SWIG_VOID(RESULT) getSubservice(eServiceReference &SWIG_OUTPUT, unsigned int n)=0;
@@ -324,6 +358,10 @@ TEMPLATE_TYPEDEF(ePtr<iSubserviceList>, iSubserviceListPtr);
 
 class iTimeshiftService: public iObject
 {
+#ifdef SWIG
+       iTimeshiftService();
+       ~iTimeshiftService();
+#endif
 public:
        virtual RESULT startTimeshift()=0;
        virtual RESULT stopTimeshift()=0;
@@ -333,6 +371,10 @@ TEMPLATE_TYPEDEF(ePtr<iTimeshiftService>, iTimeshiftServicePtr);
 
 class iPlayableService: public iObject
 {
+#ifdef SWIG
+       iPlayableService();
+       ~iPlaybleService();
+#endif
        friend class iServiceHandler;
 public:
        enum
@@ -361,6 +403,10 @@ TEMPLATE_TYPEDEF(ePtr<iPlayableService>, iPlayableServicePtr);
 
 class iRecordableService: public iObject
 {
+#ifdef SWIG
+       iRecordableService();
+       ~iRecordableService();
+#endif
 public:
        virtual RESULT prepare(const char *filename)=0;
        virtual RESULT start()=0;
@@ -373,6 +419,10 @@ TEMPLATE_TYPEDEF(ePtr<iRecordableService>, iRecordableServicePtr);
 
 class iMutableServiceList: public iObject
 {
+#ifdef SWIG
+       iMutableServiceList();
+       ~iMutableServiceList();
+#endif
 public:
                /* flush changes */
        virtual RESULT flushChanges()=0;
@@ -389,6 +439,10 @@ TEMPLATE_TYPEDEF(ePtr<iMutableServiceList>, iMutableServiceListPtr);
 
 class iListableService: public iObject
 {
+#ifdef SWIG
+       iListableService();
+       ~iListableService();
+#endif
 public:
                /* legacy interface: get a list */
        virtual RESULT getContent(std::list<eServiceReference> &list)=0;
@@ -408,6 +462,7 @@ public:
 
 TEMPLATE_TYPEDEF(ePtr<iListableService>, iListableServicePtr);
 
+#ifndef SWIG
        /* a helper class which can be used as argument to stl's sort(). */
 class iListableServiceCompare
 {
@@ -419,9 +474,14 @@ public:
                return m_list->compareLessEqual(a, b);
        }
 };
+#endif
 
 class iServiceOfflineOperations: public iObject
 {
+#ifdef SWIG
+       iServiceOfflineOperations();
+       ~iServiceOfflineOperations();
+#endif
 public:
                /* to delete a service, forever. */
        virtual RESULT deleteFromDisk(int simulate=1)=0;
@@ -436,6 +496,10 @@ TEMPLATE_TYPEDEF(ePtr<iServiceOfflineOperations>, iServiceOfflineOperationsPtr);
 
 class iServiceHandler: public iObject
 {
+#ifdef SWIG
+       iServiceHandler();
+       ~iServiceHandler();
+#endif
 public:
        virtual SWIG_VOID(RESULT) play(const eServiceReference &, ePtr<iPlayableService> &SWIG_OUTPUT)=0;
        virtual SWIG_VOID(RESULT) record(const eServiceReference &, ePtr<iRecordableService> &SWIG_OUTPUT)=0;
index 17614c2f87273bc7f20a84f9f066c1637bd64622..813da24c5ee967207cbca212e4e71be4c9d3e627 100644 (file)
@@ -15,10 +15,15 @@ DECLARE_REF(eServiceCenter);
 private:
        std::map<int,iServiceHandlerPtr> handler;
        static eServiceCenter *instance;
+#ifdef SWIG
+       eServiceCenter();
+       ~eServiceCenter();
+#endif
 public:
+#ifndef SWIG
        eServiceCenter();
        virtual ~eServiceCenter();
-
+#endif
                // iServiceHandler
        RESULT play(const eServiceReference &, iPlayableServicePtr &ptr);
        RESULT record(const eServiceReference &, iRecordableServicePtr &ptr);