add epgcache
[enigma2.git] / main / enigma.cpp
index 258c5ad..9647dea 100644 (file)
@@ -90,6 +90,8 @@ void keyEvent(const eRCKey &key)
 #include <lib/dvb/idvb.h>
 #include <lib/dvb/dvb.h>
 #include <lib/dvb/db.h>
+#include <lib/dvb/dvbtime.h>
+#include <lib/dvb/epgcache.h>
 
 class eMain: public eApplication, public Object
 {
@@ -97,9 +99,10 @@ class eMain: public eApplication, public Object
        
        ePtr<eDVBResourceManager> m_mgr;
        ePtr<eDVBDB> m_dvbdb;
-
+       ePtr<eDVBLocalTimeHandler> m_locale_time_handler;
        ePtr<eComponentScan> m_scan;
-       
+       ePtr<eEPGCache> m_epgcache;
+
 public:
        eMain()
        {
@@ -108,7 +111,8 @@ public:
                                /* TODO: put into init */
                m_dvbdb = new eDVBDB();
                m_mgr = new eDVBResourceManager();
-               
+               m_locale_time_handler = new eDVBLocalTimeHandler();
+               m_epgcache = new eEPGCache();
                m_mgr->setChannelList(m_dvbdb);
                
 //             m_scan = new eComponentScan();
@@ -154,14 +158,14 @@ int main(int argc, char **argv)
        dsk.setDC(my_dc);
 
        ePtr<gPixmap> m_pm;
-       loadPNG(m_pm, "data/info-bg.png");
+       loadPNG(m_pm, "data/pal.png");
        if (!m_pm)
        {
-               eDebug("can't load info-bg :)");
+               eFatal("hi ghost, please copy pal.png into your ./data, thanks!");
        } else
                dsk.setPalette(*m_pm);
 
-       dsk.setBackgroundColor(gRGB(0,0,0,0));
+       dsk.setBackgroundColor(gRGB(0,0,0,0xFF));
 #endif
 
                /* redrawing is done in an idle-timer, so we have to set the context */