Initial Import
[profile/ivi/clutter-toys.git] / attic / astro-desktop / applications / contacts / astro-contacts-details.h
1 /*
2  * Copyright (C) 2007 OpenedHand Limited
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  *
19  * Author: Neil Jagdish Patel <njp@o-hand.com>
20  */
21
22
23 #include <glib.h>
24 #include <clutter/clutter.h>
25 #include <libastro-desktop/astro-application.h>
26
27 #include "astro-contacts-window.h"
28
29 #ifndef _HAVE_ASTRO_CONTACT_DETAILS_H
30 #define _HAVE_ASTRO_CONTACT_DETAILS_H
31
32 G_BEGIN_DECLS
33
34 #define ASTRO_TYPE_CONTACT_DETAILS astro_contact_details_get_type()
35
36 #define ASTRO_CONTACT_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37   ASTRO_TYPE_CONTACT_DETAILS, \
38   AstroContactDetails))
39
40 #define ASTRO_CONTACT_DETAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
41   ASTRO_TYPE_CONTACT_DETAILS, \
42   AstroContactDetailsClass))
43
44 #define ASTRO_IS_CONTACT_DETAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
45   ASTRO_TYPE_CONTACT_DETAILS))
46
47 #define ASTRO_IS_CONTACT_DETAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
48   ASTRO_TYPE_CONTACT_DETAILS))
49
50 #define ASTRO_CONTACT_DETAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
51   ASTRO_TYPE_CONTACT_DETAILS, \
52   AstroContactDetailsClass))
53
54 typedef struct _AstroContactDetails AstroContactDetails;
55 typedef struct _AstroContactDetailsClass AstroContactDetailsClass;
56 typedef struct _AstroContactDetailsPrivate AstroContactDetailsPrivate;
57
58 struct _AstroContactDetails
59 {
60   ClutterGroup       parent;
61         
62   /*< private >*/
63   AstroContactDetailsPrivate   *priv;
64 };
65
66 struct _AstroContactDetailsClass 
67 {
68   /*< private >*/
69   ClutterGroupClass parent_class;
70 }; 
71
72 GType astro_contact_details_get_type (void) G_GNUC_CONST;
73
74 ClutterActor *  astro_contact_details_new        (void);
75
76 void            astro_contact_details_set_active (AstroContactDetails *details,
77                                                   AstroContact        *contact);
78   
79 G_END_DECLS
80
81 #endif