summaryrefslogtreecommitdiff
path: root/src/gui_formapply.hh
blob: 6e4af11f8e98319d40de72ba9f7d3447509c1735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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