aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card.h
blob: 7959377695ae7c4671737c0a3f6295903bc9176a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Author:
 *   Nat Friedman (nat@helixcode.com)
 *
 * Copyright 1999, Helix Code, Inc.
 */

#ifndef __E_CARD_H__
#define __E_CARD_H__

#include <gtk/gtkobject.h>
#include <libgnome/gnome-defs.h>
#include <ebook/e-card-fields.h>

BEGIN_GNOME_DECLS

typedef struct _ECardPrivate ECardPrivate;

typedef struct {
    GtkObject     parent;
    ECardPrivate *priv;
} ECard;

typedef struct {
    GtkObjectClass parent;
} ECardClass;

ECard    *e_card_new          (void);
GtkType   e_card_get_type     (void);

char     *e_card_get_string   (ECard    *card,
                   char     *field);
void      e_card_set_string   (ECard    *card,
                   char     *field,
                   char     *value);

gboolean  e_card_get_boolean  (ECard    *card,
                   char     *field);
void      e_card_set_boolean  (ECard    *card,
                   char     *field,
                   gboolean  value);

#define E_CARD_TYPE        (e_card_get_type ())
#define E_CARD(o)          (GTK_CHECK_CAST ((o), E_CARD_TYPE, ECard))
#define E_CARD_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), E_CARD_TYPE, ECardClass))
#define E_IS_CARD(o)       (GTK_CHECK_TYPE ((o), E_CARD_TYPE))
#define E_IS_CARD_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CARD_TYPE))

END_GNOME_DECLS

#endif /* ! __E_CARD_H__ */