1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* Copyright (C) 2009 Canonical Services Ltd (www.canonical.com)
5
* Authors: Rodrigo Moya <rodrigo.moya@canonical.com>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of version 2 of the GNU Lesser General Public
9
* License as published by the Free Software Foundation.
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 Lesser General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19
* Boston, MA 02110-1301, USA.
22
#ifndef __U1_CONTACTS_PICKER_H__
23
#define __U1_CONTACTS_PICKER_H__
29
#define U1_TYPE_CONTACTS_PICKER (u1_contacts_picker_get_type ())
30
#define U1_CONTACTS_PICKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), U1_TYPE_CONTACTS_PICKER, U1ContactsPicker))
31
#define U1_IS_CONTACTS_PICKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), U1_TYPE_CONTACTS_PICKER))
32
#define U1_CONTACTS_PICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), U1_TYPE_CONTACTS_PICKER, U1ContactsPickerClass))
33
#define U1_IS_CONTACTS_PICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), U1_TYPE_CONTACTS_PICKER))
34
#define U1_CONTACTS_PICKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), U1_TYPE_CONTACTS_PICKER, U1ContactsPickerClass))
36
typedef struct _U1ContactsPicker U1ContactsPicker;
37
typedef struct _U1ContactsPickerClass U1ContactsPickerClass;
38
typedef struct _U1ContactsPickerPrivate U1ContactsPickerPrivate;
40
struct _U1ContactsPicker {
42
U1ContactsPickerPrivate *priv;
45
struct _U1ContactsPickerClass {
46
GtkVBoxClass parent_class;
49
void (* selection_changed) (U1ContactsPicker *picker);
52
GType u1_contacts_picker_get_type (void);
54
GtkWidget *u1_contacts_picker_new (void);
55
guint u1_contacts_picker_get_contacts_count (U1ContactsPicker *picker);
56
GSList *u1_contacts_picker_get_selected_emails (U1ContactsPicker *picker);
57
void u1_contacts_picker_free_selection_list (GSList *list);