diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-02 00:27:02 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-02 00:27:02 +0800 |
commit | d74b078aeb365e099c2070ce2269c98ab6158f6f (patch) | |
tree | bc96e1c91384147d9400fad30385aa933adeebff /e-util/e-passwords.h | |
parent | b0dd4c8d2aa8575f7e7df36be60378ed4ed6c20b (diff) | |
download | gsoc2013-evolution-d74b078aeb365e099c2070ce2269c98ab6158f6f.tar.gz 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.h | 14 |
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 */ |