1 // ------------------------------------------------
7 // (c) 2002 peercast.org
8 // ------------------------------------------------
9 // This program is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 2 of the License, or
12 // (at your option) any later version.
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 // ------------------------------------------------
23 // ---------------------------------------
28 class WriteBufferStream;
30 // ---------------------------------------
49 HTML(const char *,Stream &);
52 void startNode(const char *, const char * = NULL);
53 void addLink(const char *, const char *, bool = false);
54 void startTag(const char *, const char * = NULL,...);
55 void startTagEnd(const char *, const char * = NULL,...);
56 void startSingleTagEnd(const char *,...);
57 void startTableRow(int);
59 void setRefresh(int sec) {refresh = sec;}
60 void setRefreshURL(const char *u){refreshURL.set(u);}
65 void locateTo(const char *);
66 void addContent(const char *);
68 void writeOK(const char *);
69 void writeTemplate(const char *, const char *);
70 void writeRawFile(const char *);
71 void writeVariable(Stream &,const String &,int);
72 int getIntVariable(const String &,int);
73 bool getBoolVariable(const String &,int);
76 void readIf(Stream &,Stream *,int);
77 void readLoop(Stream &,Stream *,int);
78 void readVariable(Stream &,Stream *,int);
79 bool readTemplate(Stream &,Stream *,int);
80 int readCmd(Stream &,Stream *,int);
84 String title,refreshURL;
85 char currTag[MAX_TAGLEVEL][MAX_TAGLEN];
88 WriteBufferStream *out;