2 * irreco - Ir Remote Control
3 * Copyright 2008 Sami Mäki (kasmra@xob.kapsi.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * @addtogroup IrrecoLoginDlg
27 * Header file of @ref IrrecoLoginDlg.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 * Make sure that typedefs are available before we include anything elese.
36 * This makes sure that whatever other structures that depend on structures
37 * defined in this file will compile OK recardles of header inclusion order.
40 #ifndef _IRRECO_LOGIN_DLG_H_TYPEDEF
41 #define _IRRECO_LOGIN_DLG_H_TYPEDEF
43 #define IRRECO_TYPE_LOGIN_DLG irreco_login_dlg_get_type()
44 #define IRRECO_LOGIN_DLG(obj) \
45 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_LOGIN_DLG, \
47 #define IRRECO_LOGIN_DLG_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_LOGIN_DLG, \
50 #define IRRECO_IS_LOGIN_DLG(obj) \
51 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_LOGIN_DLG))
52 #define IRRECO_IS_LOGIN_DLG_CLASS(klass) \
53 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_LOGIN_DLG))
54 #define IRRECO_LOGIN_DLG_GET_CLASS(obj) \
55 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_LOGIN_DLG, \
58 typedef struct _IrrecoLoginDlg IrrecoLoginDlg
;
59 typedef struct _IrrecoLoginDlgClass IrrecoLoginDlgClass
;
61 #endif /* _IRRECO_LOGIN_DLG_H_TYPEDEF */
64 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
67 #ifndef __IRRECO_LOGIN_DLG_H__
68 #define __IRRECO_LOGIN_DLG_H__
70 #include "irreco_dlg.h"
71 #include "irreco_data.h"
72 /* Include the prototypes for GConf client functions. */
73 #include <gconf/gconf-client.h>
76 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
80 struct _IrrecoLoginDlg
83 IrrecoData
*irreco_data
;
86 const gchar
*password
;
89 const gchar
*passwdptr
;
91 GtkWidget
*entry_user
;
94 struct _IrrecoLoginDlgClass
96 IrrecoDlgClass parent_class
;
100 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
102 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
106 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
108 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
110 GType
irreco_login_dlg_get_type (void);
111 gboolean
irreco_show_login_dlg(IrrecoData
*irreco_data
, GtkWindow
*parent
,
112 gchar
**userptr
, gchar
**passwdptr
);
113 gboolean
irreco_login_dlg_login_cache(IrrecoLoginDlg
*self
, gchar
*pwhash
);
115 #endif /* __IRRECO_LOGIN_DLG_H__ */