summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Action.h6
-rw-r--r--include/HtmlSkinner.h17
2 files changed, 22 insertions, 1 deletions
diff --git a/include/Action.h b/include/Action.h
index 6110945..329592c 100644
--- a/include/Action.h
+++ b/include/Action.h
@@ -5,6 +5,7 @@
#include <Handle.h>
#include <Variables.h>
#include <Exceptions.h>
+#include <HtmlSkinner.h>
//! This is the basic HTTP action.
/*!
@@ -16,7 +17,7 @@ class Action : public Base {
/*!
If no URL is provided, one will be generated on the fly.
*/
- Action(const String & url = "");
+ Action(const String & url = "", HtmlSkinner * = 0);
virtual ~Action();
//! Will recursively resolve an URL, and return the corresponding action, or NULL if not found.
Action * Look4URL(const String &);
@@ -42,6 +43,8 @@ class Action : public Base {
String GetURL(void);
//! Mark this action to be erased as soon as the Do method ends.
void CleanUp(void);
+ //! Skinner accessor.
+ HtmlSkinner * GetSkinner();
protected:
//! Mark this action as beeing accessed.
@@ -52,6 +55,7 @@ class Action : public Base {
Action * next, * prev;
String URL;
bool hastoclean, accessed;
+ HtmlSkinner * skin;
};
#endif
diff --git a/include/HtmlSkinner.h b/include/HtmlSkinner.h
new file mode 100644
index 0000000..6603cde
--- /dev/null
+++ b/include/HtmlSkinner.h
@@ -0,0 +1,17 @@
+#ifndef __HTMLSKINNER_H__
+#define __HTMLSKINNER_H__
+
+#include <Exceptions.h>
+#include <BString.h>
+
+class HtmlSkinner : public Base {
+ public:
+ HtmlSkinner();
+ virtual ~HtmlSkinner();
+ virtual String Redirect(const String & location);
+ virtual String Error(const String & location);
+ virtual String Header(const String & title);
+ virtual String Footer();
+};
+
+#endif