summaryrefslogtreecommitdiff
path: root/src/gui_formapply.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_formapply.hh')
-rw-r--r--src/gui_formapply.hh30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gui_formapply.hh b/src/gui_formapply.hh
new file mode 100644
index 0000000..6e4af11
--- /dev/null
+++ b/src/gui_formapply.hh
@@ -0,0 +1,30 @@
+// -*- mode: c++; c-basic-offset: 2; -*-
+
+#ifndef GUI_FORMAPPLY_HH
+#define GUI_FORMAPPLY_HH
+
+#include "gui_form.hh"
+
+class GuiFormApply : public virtual GuiForm {
+public:
+ class Delegate {
+ public:
+ virtual ~Delegate() {}
+
+ virtual void apply(GuiFormApply* connect) = 0;
+
+ protected:
+ Delegate() {}
+ };
+
+ static GuiFormApply* create(std::string const& title, std::string const& text,
+ std::string const& apply_button,
+ Delegate* delegate);
+
+ virtual void applied(bool success) = 0;
+
+protected:
+ GuiFormApply() {}
+};
+
+#endif // GUI_FORMAPPLY_HH