]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-contact-list-view.h
Updated Basque translation.
[empathy.git] / libempathy-gtk / empathy-contact-list-view.h
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 Collabora Ltd.
5  *
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.
10  *
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.
15  *
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., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  * Authors: Mikael Hallendal <micke@imendio.com>
22  *          Martyn Russell <martyn@imendio.com>
23  *          Xavier Claessens <xclaesse@gmail.com>
24  */
25
26 #ifndef __EMPATHY_CONTACT_LIST_VIEW_H__
27 #define __EMPATHY_CONTACT_LIST_VIEW_H__
28
29 #include <gtk/gtktreeview.h>
30
31 #include <libempathy/empathy-contact.h>
32
33 #include "empathy-contact-list-store.h"
34
35 G_BEGIN_DECLS
36
37 #define EMPATHY_TYPE_CONTACT_LIST_VIEW         (empathy_contact_list_view_get_type ())
38 #define EMPATHY_CONTACT_LIST_VIEW(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CONTACT_LIST_VIEW, EmpathyContactListView))
39 #define EMPATHY_CONTACT_LIST_VIEW_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_CONTACT_LIST_VIEW, EmpathyContactListViewClass))
40 #define EMPATHY_IS_CONTACT_LIST_VIEW(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CONTACT_LIST_VIEW))
41 #define EMPATHY_IS_CONTACT_LIST_VIEW_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CONTACT_LIST_VIEW))
42 #define EMPATHY_CONTACT_LIST_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CONTACT_LIST_VIEW, EmpathyContactListViewClass))
43
44 typedef struct _EmpathyContactListView      EmpathyContactListView;
45 typedef struct _EmpathyContactListViewClass EmpathyContactListViewClass;
46 typedef struct _EmpathyContactListViewPriv  EmpathyContactListViewPriv;
47
48 struct _EmpathyContactListView {
49         GtkTreeView            parent;
50 };
51
52 struct _EmpathyContactListViewClass {
53         GtkTreeViewClass       parent_class;
54 };
55
56 typedef void           (*EmpathyContactListViewDragReceivedFunc)        (EmpathyContact *contact,
57                                                                         GdkDragAction  action,
58                                                                         const gchar   *old_group,
59                                                                         const gchar   *new_group,
60                                                                         gpointer       user_data);
61
62 GType                  empathy_contact_list_view_get_type               (void) G_GNUC_CONST;
63 EmpathyContactListView *empathy_contact_list_view_new                    (EmpathyContactListStore                *store);
64 EmpathyContact *        empathy_contact_list_view_get_selected           (EmpathyContactListView                 *view);
65 gchar *                empathy_contact_list_view_get_selected_group     (EmpathyContactListView                 *view);
66 GtkWidget *            empathy_contact_list_view_get_contact_menu       (EmpathyContactListView                 *view,
67                                                                         EmpathyContact                         *contact);
68 GtkWidget *            empathy_contact_list_view_get_group_menu         (EmpathyContactListView                 *view);
69 void                   empathy_contact_list_view_set_filter             (EmpathyContactListView                 *view,
70                                                                         const gchar                           *filter);
71 void                   empathy_contact_list_view_set_drag_received_func (EmpathyContactListView                 *view,
72                                                                         EmpathyContactListViewDragReceivedFunc  func,
73                                                                         gpointer                               user_data);
74
75 G_END_DECLS
76
77 #endif /* __EMPATHY_CONTACT_LIST_VIEW_H__ */
78