summaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-02-13 07:13:42 +0100
committerJochen Dolze <vdr@dolze.de>2009-02-13 07:13:42 +0100
commit0a828794745069f0b978ab001b92b9ef31f5195f (patch)
tree641c9093489df3848578bff89092be211041286a /global.h
parente8c8bbc93ceec475299bb706a12e4fe67dcb0efa (diff)
downloadvdr-plugin-infosatepg-0a828794745069f0b978ab001b92b9ef31f5195f.tar.gz
vdr-plugin-infosatepg-0a828794745069f0b978ab001b92b9ef31f5195f.tar.bz2
Improved status, added missing packet count
Changed channel switching code
Diffstat (limited to 'global.h')
-rw-r--r--global.h38
1 files changed, 25 insertions, 13 deletions
diff --git a/global.h b/global.h
index 30395fb..fd5dad1 100644
--- a/global.h
+++ b/global.h
@@ -31,6 +31,8 @@ class cGlobalInfosatdata
private:
bool receivedall;
int receivedpercent;
+ int lastpkt;
+ int missed;
u_char day;
u_char month;
u_short pktcnt;
@@ -39,6 +41,10 @@ private:
public:
cGlobalInfosatdata();
bool Processed;
+ int Missed()
+ {
+ return missed;
+ }
bool ReceivedAll()
{
return receivedall;
@@ -48,6 +54,8 @@ public:
Init(file,0,0,0);
}
bool CheckReceivedAll();
+ void CheckMissed(int ActualPacket);
+ void SetLastPkt(int ActualPacket) { lastpkt = ActualPacket; }
int ReceivedPercent()
{
return receivedpercent;
@@ -76,9 +84,9 @@ public:
void Init (char *File, int Day, int Month, int Packetcount);
int Load (int fd);
int Save (int fd);
- #ifdef INFOSATEPG_DEBUG
- void Debug (const char *Directory);
- #endif
+#ifdef INFOSATEPG_DEBUG
+ void Debug (const char *Directory);
+#endif
};
class cGlobalInfosatepg
@@ -89,13 +97,13 @@ class cGlobalInfosatepg
// Bit 20-30 reserved for future used
// Bit 31 always zero
- #define USE_SHORTTEXT 1
- #define USE_LONGTEXT 2
- #define USE_EXTEPG 4
- #define USE_MERGELONGTEXT 8
- #define USE_APPEND 16
+#define USE_SHORTTEXT 1
+#define USE_LONGTEXT 2
+#define USE_EXTEPG 4
+#define USE_MERGELONGTEXT 8
+#define USE_APPEND 16
- #define USE_NOTHING 0
+#define USE_NOTHING 0
struct infosatchannels
{
@@ -104,9 +112,9 @@ class cGlobalInfosatepg
int Usage;
};
- #define EPG_FIRST_DAY_MAC 1
- #define EPG_LAST_DAY_MAC 7
- #define EPG_DAYS 7
+#define EPG_FIRST_DAY_MAC 1
+#define EPG_LAST_DAY_MAC 7
+#define EPG_DAYS 7
private:
const char *directory;
@@ -140,7 +148,10 @@ public:
return wakeuptime;
}
int LastCurrentChannel;
- int Channel() { return channel; }
+ int Channel()
+ {
+ return channel;
+ }
bool FindReceiverChannel();
int Frequency;
char Polarization;
@@ -193,5 +204,6 @@ public:
{
return numinfosatchannels;
}
+ int ActualMac;
};
#endif