aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-passwords.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-02 00:27:02 +0800
committerDan Winship <danw@src.gnome.org>2001-10-02 00:27:02 +0800
commitd74b078aeb365e099c2070ce2269c98ab6158f6f (patch)
treebc96e1c91384147d9400fad30385aa933adeebff /e-util/e-passwords.h
parentb0dd4c8d2aa8575f7e7df36be60378ed4ed6c20b (diff)
downloadgsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar
gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar.gz
gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar.bz2
gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar.lz
gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar.xz
gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar.zst
gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.zip
New, copied/renamed from mailer and gnome-libs.
* e-passwords.c (e_passwords_ask_password): New, copied/renamed from mailer and gnome-libs. svn path=/trunk/; revision=13261
Diffstat (limited to 'e-util/e-passwords.h')
-rw-r--r--e-util/e-passwords.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/e-util/e-passwords.h b/e-util/e-passwords.h
index 7b675b964e..9bc0de6540 100644
--- a/e-util/e-passwords.h
+++ b/e-util/e-passwords.h
@@ -26,6 +26,7 @@
#include <glib.h>
#include <bonobo/bonobo-ui-component.h>
+#include <gtk/gtkwindow.h>
#ifdef __cplusplus
extern "C" {
@@ -34,12 +35,25 @@ extern "C" {
void e_passwords_init (void);
void e_passwords_shutdown (void);
+
void e_passwords_remember_password (const char *key);
void e_passwords_add_password (const char *key, const char *passwd);
const char *e_passwords_get_password (const char *key);
void e_passwords_forget_password (const char *key);
void e_passwords_forget_passwords (void);
+typedef enum {
+ E_PASSWORDS_DO_NOT_REMEMBER,
+ E_PASSWORDS_REMEMBER_FOR_SESSION,
+ E_PASSWORDS_REMEMBER_FOREVER
+} EPasswordsRememberType;
+
+char * e_passwords_ask_password (const char *title, const char *key,
+ const char *prompt, gboolean secret,
+ EPasswordsRememberType remember_type,
+ gboolean *remember,
+ GtkWindow *parent);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */