]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-account-chooser.h
Remove the autogen.sh script and use gnome-autogen.sh instead.
[empathy.git] / libempathy-gtk / empathy-account-chooser.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2005-2007 Imendio AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
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 GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  * 
20  * Authors: Martyn Russell <martyn@imendio.com>
21  */
22
23 #ifndef __EMPATHY_ACCOUNT_CHOOSER_H__
24 #define __EMPATHY_ACCOUNT_CHOOSER_H__
25
26 #include <gtk/gtkcombobox.h>
27
28 #include <libmissioncontrol/mc-account.h>
29
30 G_BEGIN_DECLS
31
32 #define EMPATHY_TYPE_ACCOUNT_CHOOSER (empathy_account_chooser_get_type ())
33 #define EMPATHY_ACCOUNT_CHOOSER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooser))
34 #define EMPATHY_ACCOUNT_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooserClass))
35 #define EMPATHY_IS_ACCOUNT_CHOOSER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER))
36 #define EMPATHY_IS_ACCOUNT_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_ACCOUNT_CHOOSER))
37 #define EMPATHY_ACCOUNT_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooserClass))
38
39 typedef gboolean (* EmpathyAccountChooserFilterFunc) (McAccount *account,
40                                                       gpointer   user_data);
41
42
43 typedef struct _EmpathyAccountChooser      EmpathyAccountChooser;
44 typedef struct _EmpathyAccountChooserClass EmpathyAccountChooserClass;
45
46 struct _EmpathyAccountChooser {
47         GtkComboBox parent;
48 };
49
50 struct _EmpathyAccountChooserClass {
51         GtkComboBoxClass parent_class;
52 };
53
54 GType          empathy_account_chooser_get_type           (void) G_GNUC_CONST;
55 GtkWidget *    empathy_account_chooser_new                (void);
56 McAccount *    empathy_account_chooser_get_account        (EmpathyAccountChooser *chooser);
57 gboolean       empathy_account_chooser_set_account        (EmpathyAccountChooser *chooser,
58                                                            McAccount            *account);
59 gboolean       empathy_account_chooser_get_has_all_option (EmpathyAccountChooser *chooser);
60 void           empathy_account_chooser_set_has_all_option (EmpathyAccountChooser *chooser,
61                                                            gboolean               has_all_option);
62 void           empathy_account_chooser_set_filter         (EmpathyAccountChooser *chooser,
63                                                            EmpathyAccountChooserFilterFunc filter,
64                                                            gpointer               user_data);
65 gboolean       empathy_account_chooser_filter_is_connected(McAccount             *account,
66                                                            gpointer               user_data);
67
68 G_END_DECLS
69
70 #endif /* __EMPATHY_ACCOUNT_CHOOSER_H__ */
71