blob: 3c072b4a6884e3ff1aa35b8a0472ea21ea257b25 [file] [log] [blame]
Stepan Salenikovich0cf247d2015-07-24 17:36:32 -04001/*
Guillaume Roguez2a6150d2017-07-19 18:24:47 -04002 * Copyright (C) 2015-2017 Savoir-faire Linux Inc.
Stepan Salenikovich0cf247d2015-07-24 17:36:32 -04003 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (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
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Stepan Salenikovich0cf247d2015-07-24 17:36:32 -040018 */
19
20#ifndef _EDITCONTACTVIEW_H
21#define _EDITCONTACTVIEW_H
22
23#include <gtk/gtk.h>
24
25G_BEGIN_DECLS
26
27class ContactMethod;
28class Person;
29
30#define EDIT_CONTACT_VIEW_TYPE (edit_contact_view_get_type ())
31#define EDIT_CONTACT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDIT_CONTACT_VIEW_TYPE, EditContactView))
32#define EDIT_CONTACT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EDIT_CONTACT_VIEW_TYPE, EditContactViewClass))
33#define IS_EDIT_CONTACT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), EDIT_CONTACT_VIEW_TYPE))
34#define IS_EDIT_CONTACT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EDIT_CONTACT_VIEW_TYPE))
35
36typedef struct _EditContactView EditContactView;
37typedef struct _EditContactViewClass EditContactViewClass;
38
39GType edit_contact_view_get_type(void) G_GNUC_CONST;
40
41/**
42 * If a Person is specified, a view to edit the given Person will be created;
43 * if no Person is given (NULL), then a new Person object will be created when
44 * 'save' is clicked
45 */
46GtkWidget *edit_contact_view_new (ContactMethod *cm, Person *p);
47
48G_END_DECLS
49
50#endif /* _EDITCONTACTVIEW_H */