]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-base-password-dialog.h
3f4cfdd5e2db83b0e4774629b491ff572ae0be42
[empathy.git] / libempathy-gtk / empathy-base-password-dialog.h
1 /*
2  * empathy-base-password-dialog.h - Header for EmpathyBasePasswordDialog
3  * Copyright (C) 2010 Collabora Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19
20 #ifndef __EMPATHY_BASE_PASSWORD_DIALOG_H__
21 #define __EMPATHY_BASE_PASSWORD_DIALOG_H__
22
23 #include <glib-object.h>
24 #include <gtk/gtk.h>
25 #include <telepathy-glib/telepathy-glib.h>
26
27 G_BEGIN_DECLS
28
29 typedef struct _EmpathyBasePasswordDialog EmpathyBasePasswordDialog;
30 typedef struct _EmpathyBasePasswordDialogClass EmpathyBasePasswordDialogClass;
31 typedef struct _EmpathyBasePasswordDialogPriv EmpathyBasePasswordDialogPriv;
32
33 struct _EmpathyBasePasswordDialogClass {
34   GtkMessageDialogClass parent_class;
35 };
36
37 struct _EmpathyBasePasswordDialog {
38   GtkMessageDialog parent;
39   EmpathyBasePasswordDialogPriv *priv;
40
41   /* protected */
42   TpAccount *account;
43   GtkWidget *entry;
44   GtkWidget *ticky;
45   GtkWidget *ok_button;
46 };
47
48 GType empathy_base_password_dialog_get_type (void);
49
50 #define EMPATHY_TYPE_BASE_PASSWORD_DIALOG \
51   (empathy_base_password_dialog_get_type ())
52 #define EMPATHY_BASE_PASSWORD_DIALOG(obj) \
53   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_BASE_PASSWORD_DIALOG, \
54     EmpathyBasePasswordDialog))
55 #define EMPATHY_BASE_PASSWORD_DIALOG_CLASS(klass) \
56   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_BASE_PASSWORD_DIALOG, \
57   EmpathyBasePasswordDialogClass))
58 #define EMPATHY_IS_BASE_PASSWORD_DIALOG(obj) \
59   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_BASE_PASSWORD_DIALOG))
60 #define EMPATHY_IS_BASE_PASSWORD_DIALOG_CLASS(klass) \
61   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_BASE_PASSWORD_DIALOG))
62 #define EMPATHY_BASE_PASSWORD_DIALOG_GET_CLASS(obj) \
63   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_BASE_PASSWORD_DIALOG, \
64   EmpathyBasePasswordDialogClass))
65
66 G_END_DECLS
67
68 #endif /* #ifndef __EMPATHY_BASE_PASSWORD_DIALOG_H__*/