aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/gtk/gtk_ui.h
blob: 065a4f76bf5aa7dbddf278fcab7798e981f348b3 (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
/*
* (C) 2006 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#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