aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h
index d0849c7..9029b86 100644
--- a/src/error.h
+++ b/src/error.h
@@ -37,6 +37,12 @@ public:
ReplaceCmdline();
};
+/*
+ * Thrown as exception to signify that program
+ * should be terminated.
+ */
+class Quit {};
+
class Error {
gchar *description;
GSList *frames;
@@ -90,6 +96,23 @@ public:
void display(gint nr);
};
+ class EDHookFrame : public Frame {
+ gchar *type;
+
+ public:
+ EDHookFrame(const gchar *_type)
+ : type(g_strdup(_type)) {}
+
+ Frame *copy() const;
+
+ ~EDHookFrame()
+ {
+ g_free(type);
+ }
+
+ void display(gint nr);
+ };
+
class ToplevelFrame : public Frame {
public:
Frame *copy() const;