1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * GData Client 4 * Copyright (C) Philip Withnall 2010 <philip@tecnocode.co.uk> 5 * 6 * GData Client is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * GData Client 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 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with GData Client. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef GDATA_GCONTACT_JOT_H 21 #define GDATA_GCONTACT_JOT_H 22 23 #include <glib.h> 24 #include <glib-object.h> 25 26 #include <gdata/gdata-parsable.h> 27 28 G_BEGIN_DECLS 29 30 /** 31 * GDATA_GCONTACT_JOT_HOME: 32 * 33 * The relation type URI for a jot about a contact's home. 34 * 35 * For more information, see the <ulink type="http" url="http://code.google.com/apis/contacts/docs/3.0/reference.html#gcJot"> 36 * gContact specification</ulink>. 37 * 38 * Since: 0.7.0 39 */ 40 #define GDATA_GCONTACT_JOT_HOME "home" 41 42 /** 43 * GDATA_GCONTACT_JOT_WORK: 44 * 45 * The relation type URI for a jot about a contact's work. 46 * 47 * For more information, see the <ulink type="http" url="http://code.google.com/apis/contacts/docs/3.0/reference.html#gcJot"> 48 * gContact specification</ulink>. 49 * 50 * Since: 0.7.0 51 */ 52 #define GDATA_GCONTACT_JOT_WORK "work" 53 54 /** 55 * GDATA_GCONTACT_JOT_OTHER: 56 * 57 * The relation type URI for a jot about an other facet of a contact. 58 * 59 * For more information, see the <ulink type="http" url="http://code.google.com/apis/contacts/docs/3.0/reference.html#gcJot"> 60 * gContact specification</ulink>. 61 * 62 * Since: 0.7.0 63 */ 64 #define GDATA_GCONTACT_JOT_OTHER "other" 65 66 /** 67 * GDATA_GCONTACT_JOT_KEYWORDS: 68 * 69 * The relation type URI for a jot with keywords about a contact. 70 * 71 * For more information, see the <ulink type="http" url="http://code.google.com/apis/contacts/docs/3.0/reference.html#gcJot"> 72 * gContact specification</ulink>. 73 * 74 * Since: 0.7.0 75 */ 76 #define GDATA_GCONTACT_JOT_KEYWORDS "keywords" 77 78 /** 79 * GDATA_GCONTACT_JOT_USER: 80 * 81 * The relation type URI for a jot about the relationship between a contact and the user. 82 * 83 * For more information, see the <ulink type="http" url="http://code.google.com/apis/contacts/docs/3.0/reference.html#gcJot"> 84 * gContact specification</ulink>. 85 * 86 * Since: 0.7.0 87 */ 88 #define GDATA_GCONTACT_JOT_USER "user" 89 90 #define GDATA_TYPE_GCONTACT_JOT (gdata_gcontact_jot_get_type ()) 91 #define GDATA_GCONTACT_JOT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_GCONTACT_JOT, GDataGContactJot)) 92 #define GDATA_GCONTACT_JOT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_GCONTACT_JOT, GDataGContactJotClass)) 93 #define GDATA_IS_GCONTACT_JOT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_GCONTACT_JOT)) 94 #define GDATA_IS_GCONTACT_JOT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_GCONTACT_JOT)) 95 #define GDATA_GCONTACT_JOT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_GCONTACT_JOT, GDataGContactJotClass)) 96 97 typedef struct _GDataGContactJotPrivate GDataGContactJotPrivate; 98 99 /** 100 * GDataGContactJot: 101 * 102 * All the fields in the #GDataGContactJot structure are private and should never be accessed directly. 103 * 104 * Since: 0.7.0 105 */ 106 typedef struct { 107 GDataParsable parent; 108 GDataGContactJotPrivate *priv; 109 } GDataGContactJot; 110 111 /** 112 * GDataGContactJotClass: 113 * 114 * All the fields in the #GDataGContactJotClass structure are private and should never be accessed directly. 115 * 116 * Since: 0.7.0 117 */ 118 typedef struct { 119 /*< private >*/ 120 GDataParsableClass parent; 121 122 /*< private >*/ 123 /* Padding for future expansion */ 124 void (*_g_reserved0) (void); 125 void (*_g_reserved1) (void); 126 } GDataGContactJotClass; 127 128 GType gdata_gcontact_jot_get_type (void) G_GNUC_CONST; 129 130 GDataGContactJot *gdata_gcontact_jot_new (const gchar *content, const gchar *relation_type) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC; 131 132 const gchar *gdata_gcontact_jot_get_content (GDataGContactJot *self) G_GNUC_PURE; 133 void gdata_gcontact_jot_set_content (GDataGContactJot *self, const gchar *content); 134 135 const gchar *gdata_gcontact_jot_get_relation_type (GDataGContactJot *self) G_GNUC_PURE; 136 void gdata_gcontact_jot_set_relation_type (GDataGContactJot *self, const gchar *relation_type); 137 138 G_END_DECLS 139 140 #endif /* !GDATA_GCONTACT_JOT_H */ 141