summaryrefslogtreecommitdiff
path: root/include/Message.h
diff options
context:
space:
mode:
authorPixel <Pixel>2001-09-20 23:27:01 +0000
committerPixel <Pixel>2001-09-20 23:27:01 +0000
commit8346d0774d2d1e076038db27f65f1d082a460f16 (patch)
tree132f84cf1ef45d5006a2b1d52d4d40b1e8e51abc /include/Message.h
Initial revision
Diffstat (limited to 'include/Message.h')
-rw-r--r--include/Message.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/Message.h b/include/Message.h
new file mode 100644
index 0000000..1cdb297
--- /dev/null
+++ b/include/Message.h
@@ -0,0 +1,32 @@
+#ifndef __MESSAGE_H__
+#define __MESSAGE_H__
+#ifdef __cplusplus
+
+#include "Exceptions.h"
+#include "Action.h"
+#include "String.h"
+
+/*
+ * Cette classe sert a afficher un message.
+ * Constructeur:
+ * - titre = titre de la page
+ * - msg = message de la boite de dialogue
+ * - url = url de la page
+ * - ok = action a effectuer lorsque l'on clique sur Ok.
+ */
+
+class Message : public Action {
+ public:
+ Message(const String & titre, const String & msg, const String & url, Action * ok = 0);
+ virtual ~Message() { }
+ virtual String GetTitle();
+ virtual void Do(Variables *, Handle *);
+ private:
+ String tit, msg;
+ Action * Next;
+};
+
+#else
+#error This only works with a C++ compiler
+#endif
+#endif