GnuCash 2.4.99
gnc-keyring.h
Go to the documentation of this file.
00001 /*
00002  * gnc-keyring.h -- utility functions to store and retrieve passwords.
00003  *
00004  * Copyright (C) 2010 Geert Janssens <janssens.geert@telenet.be>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of
00009  * the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, contact:
00018  *
00019  * Free Software Foundation           Voice:  +1-617-542-5942
00020  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00021  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00022  */
00023 
00039 #ifndef KEYRING_H_
00040 #define KEYRING_H_
00041 
00042 #include <glib.h>
00043 #include <gtk/gtk.h>
00044 
00045 
00064 void gnc_keyring_set_password ( const gchar *access_method,
00065                                 const gchar *server,
00066                                 guint32 port,
00067                                 const gchar *service,
00068                                 const gchar *user,
00069                                 const gchar* password );
00070 
00111 gboolean gnc_keyring_get_password ( GtkWidget *parent,
00112                                     const gchar *access_method,
00113                                     const gchar *server,
00114                                     guint32 port,
00115                                     const gchar *service,
00116                                     gchar **user,
00117                                     gchar **password );
00118 
00119 /* @} */
00120 /* @} */
00121 
00122 
00123 #endif /* KEYRING_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines