aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/gtk/gtk_ui.h
blob: 9ced83a811f924fca8bda59b579a4687bc304722 (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
/*************************************************
* GTK+ User Interface Header File                *
*************************************************/

#ifndef BOTAN_EXT_GTK_UI__
#define BOTAN_EXT_GTK_UI__

#include <botan/ui.h>
#include <gtk/gtk.h>

/*************************************************
* GTK+ Passphrase Callback Object                *
*************************************************/
class GTK_UI : public Botan::User_Interface
   {
   public:
      std::string get_passphrase(const std::string&, const std::string&,
                                 UI_Result&) const;

      std::string get_passphrase(const std::string&, UI_Result&) const;

      static void callback(GtkWidget*, gpointer);
   };

#endif