diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-27 12:23:00 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-27 12:23:00 +0000 |
| commit | 191cade7c45bee53df2776ff5bb3f26b2cdafc12 (patch) | |
| tree | 1828f25b8656beb0e012d7233554fc310ed3d7c4 /lib/service | |
| parent | 377d007c961ebd576ed9f2217fd54905bcc78fb1 (diff) | |
| download | enigma2-191cade7c45bee53df2776ff5bb3f26b2cdafc12.tar.gz enigma2-191cade7c45bee53df2776ff5bb3f26b2cdafc12.zip | |
fix -T -C channellisting stuff
Diffstat (limited to 'lib/service')
| -rw-r--r-- | lib/service/iservice.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h index fb56175d..3a0e32cd 100644 --- a/lib/service/iservice.h +++ b/lib/service/iservice.h @@ -51,13 +51,26 @@ public: std::string getPath() { return path; } void setPath( const std::string &n ) { path=n; } - unsigned int getData(unsigned int num) const + unsigned int getUnsignedData(unsigned int num) const { if ( num < sizeof(data)/sizeof(int) ) return data[num]; return 0; } + int getData(unsigned int num) const + { + if ( num < sizeof(data)/sizeof(int) ) + return data[num]; + return 0; + } + + void setUnsignedData(unsigned int num, unsigned int val) + { + if ( num < sizeof(data)/sizeof(int) ) + data[num] = val; + } + void setData(unsigned int num, int val) { if ( num < sizeof(data)/sizeof(int) ) |
