summaryrefslogtreecommitdiff
path: root/libsi/descriptor.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-03-07 11:13:54 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-03-07 11:13:54 +0100
commit823081b59e4fe6e54b547c13e65df31504b7d418 (patch)
tree919420bd64943a5a0ad83c1eb36d19b0e97efa2c /libsi/descriptor.h
parente070d5462cf3d790f7230e872d517d35b67c9a6d (diff)
downloadvdr-823081b59e4fe6e54b547c13e65df31504b7d418.tar.gz
vdr-823081b59e4fe6e54b547c13e65df31504b7d418.tar.bz2
Fixed handling itemized texts in EPG data
Diffstat (limited to 'libsi/descriptor.h')
-rw-r--r--libsi/descriptor.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/libsi/descriptor.h b/libsi/descriptor.h
index 17c81eb0..3368b0a9 100644
--- a/libsi/descriptor.h
+++ b/libsi/descriptor.h
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: descriptor.h 1.6 2004/02/22 10:16:47 kls Exp $
+ * $Id: descriptor.h 1.7 2004/03/07 11:13:54 kls Exp $
* *
***************************************************************************/
@@ -50,14 +50,29 @@ private:
class ExtendedEventDescriptors : public DescriptorGroup {
public:
- //don't use
- int getTextLength();
- //really fast
int getMaximumTextLength();
+ //Returns a concatenated version of first the non-itemized and then the itemized text
//same semantics as with SI::String
- char *getText();
+ char *getText(const char *separation1="\t", const char *separation2="\n");
//buffer must at least be getTextLength(), getMaximumTextLength() is a good choice
- char *getText(char *buffer);
+ char *getText(char *buffer, const char *separation1="\t", const char *separation2="\n");
+
+ //these only return the non-itemized text fields in concatenated form
+ int getMaximumTextPlainLength();
+ char *getTextPlain();
+ char *getTextPlain(char *buffer);
+
+ //these only return the itemized text fields in concatenated form.
+ //Between the description and the text the separation1 character is used,
+ //separation2 used between two pairs. Example:
+ //Director\tSteven Spielberg\nActor\tMichael Mendl\n
+ int getMaximumTextItemizedLength();
+ char *getTextItemized(const char *separation1="\t", const char *separation2="\n");
+ char *getTextItemized(char *buffer, const char *separation1="\t", const char *separation2="\n");
+ //returns the itemized text pair by pair. Maximum length for buffers is 256.
+ //Return value is false if and only if the end of the list is reached.
+ //The argument valid indicates whether the buffers contain valid content.
+ bool getTextItemized(Loop::Iterator &it, bool &valid, char *itemDescription, char *itemText);
};
class TimeShiftedEventDescriptor : public Descriptor {