Display a context menu when clicking on audio/video icons (#590051)
[empathy-mirror.git] / libempathy-gtk / empathy-account-chooser.h
blob042321ec2b3eaf5866d3775ec879b68761ffe475
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2005-2007 Imendio AB
4 * Copyright (C) 2007-2008 Collabora Ltd.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301 USA
21 * Authors: Martyn Russell <martyn@imendio.com>
22 * Xavier Claessens <xclaesse@gmail.com>
25 #ifndef __EMPATHY_ACCOUNT_CHOOSER_H__
26 #define __EMPATHY_ACCOUNT_CHOOSER_H__
28 #include <gtk/gtk.h>
30 #include <telepathy-glib/account.h>
32 G_BEGIN_DECLS
34 #define EMPATHY_TYPE_ACCOUNT_CHOOSER (empathy_account_chooser_get_type ())
35 #define EMPATHY_ACCOUNT_CHOOSER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooser))
36 #define EMPATHY_ACCOUNT_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooserClass))
37 #define EMPATHY_IS_ACCOUNT_CHOOSER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER))
38 #define EMPATHY_IS_ACCOUNT_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_ACCOUNT_CHOOSER))
39 #define EMPATHY_ACCOUNT_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooserClass))
41 typedef gboolean (* EmpathyAccountChooserFilterFunc) (TpAccount *account,
42 gpointer user_data);
45 typedef struct _EmpathyAccountChooser EmpathyAccountChooser;
46 typedef struct _EmpathyAccountChooserClass EmpathyAccountChooserClass;
48 struct _EmpathyAccountChooser {
49 GtkComboBox parent;
51 /*<private>*/
52 gpointer priv;
55 struct _EmpathyAccountChooserClass {
56 GtkComboBoxClass parent_class;
59 GType empathy_account_chooser_get_type (void) G_GNUC_CONST;
60 GtkWidget * empathy_account_chooser_new (void);
61 TpAccount * empathy_account_chooser_dup_account (EmpathyAccountChooser *chooser);
62 TpConnection * empathy_account_chooser_get_connection (EmpathyAccountChooser *chooser);
63 gboolean empathy_account_chooser_set_account (EmpathyAccountChooser *chooser,
64 TpAccount *account);
65 gboolean empathy_account_chooser_get_has_all_option (EmpathyAccountChooser *chooser);
66 void empathy_account_chooser_set_has_all_option (EmpathyAccountChooser *chooser,
67 gboolean has_all_option);
68 void empathy_account_chooser_set_filter (EmpathyAccountChooser *chooser,
69 EmpathyAccountChooserFilterFunc filter,
70 gpointer user_data);
71 gboolean empathy_account_chooser_filter_is_connected (TpAccount *account,
72 gpointer user_data);
73 gboolean empathy_account_chooser_is_ready (EmpathyAccountChooser *chooser);
75 G_END_DECLS
77 #endif /* __EMPATHY_ACCOUNT_CHOOSER_H__ */