1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3  * GData Client
4  * Copyright (C) 2014 Carlos Garnacho <carlosg@gnome.org>
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_FREEBASE_TOPIC_RESULT_H
21 #define GDATA_FREEBASE_TOPIC_RESULT_H
22 
23 #include <glib.h>
24 #include <glib-object.h>
25 
26 #include <gdata/gdata-types.h>
27 #include "gdata-freebase-result.h"
28 
29 G_BEGIN_DECLS
30 
31 #ifndef LIBGDATA_DISABLE_DEPRECATED
32 
33 #define GDATA_TYPE_FREEBASE_TOPIC_OBJECT		(gdata_freebase_topic_object_get_type ())
34 #define GDATA_TYPE_FREEBASE_TOPIC_VALUE			(gdata_freebase_topic_value_get_type ())
35 #define GDATA_TYPE_FREEBASE_TOPIC_RESULT		(gdata_freebase_topic_result_get_type ())
36 #define GDATA_FREEBASE_TOPIC_RESULT(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_FREEBASE_TOPIC_RESULT, GDataFreebaseTopicResult))
37 #define GDATA_FREEBASE_TOPIC_RESULT_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_FREEBASE_TOPIC_RESULT, GDataFreebaseTopicResultClass))
38 #define GDATA_IS_FREEBASE_TOPIC_RESULT(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_FREEBASE_TOPIC_RESULT))
39 #define GDATA_IS_FREEBASE_TOPIC_RESULT_CLASS(k)		(G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_FREEBASE_TOPIC_RESULT))
40 #define GDATA_FREEBASE_TOPIC_RESULT_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_FREEBASE_TOPIC_RESULT, GDataFreebaseTopicResultClass))
41 
42 typedef struct _GDataFreebaseTopicResultPrivate GDataFreebaseTopicResultPrivate;
43 
44 /**
45  * GDataFreebaseTopicObject:
46  *
47  * Opaque struct containing a Freebase topic object. This object may contain one or more
48  * #GDataFreebaseTopicValue structs, which may in turn contain nested #GDataFreebaseTopicObject
49  * structs to express complex data.
50  *
51  * Since: 0.15.1
52  */
53 typedef struct _GDataFreebaseTopicObject GDataFreebaseTopicObject;
54 
55 /**
56  * GDataFreebaseTopicValue:
57  *
58  * Opaque struct containing a value of a Freebase topic object. This struct may contain a simple
59  * value (integers, doubles, strings...) or complex values, expressed through a #GDataFreebaseTopicObject.
60  *
61  * Since: 0.15.1
62  */
63 typedef struct _GDataFreebaseTopicValue GDataFreebaseTopicValue;
64 
65 /**
66  * GDataFreebaseTopicResult:
67  *
68  * All the fields in the #GDataFreebaseTopicResult structure are private and should never be accessed directly.
69  *
70  * Since: 0.15.1
71  */
72 typedef struct {
73 	GDataFreebaseResult parent;
74 	GDataFreebaseTopicResultPrivate *priv;
75 } GDataFreebaseTopicResult;
76 
77 /**
78  * GDataFreebaseTopicResultClass:
79  *
80  * All the fields in the #GDataFreebaseTopicResultClass structure are private and should never be accessed directly.
81  *
82  * Since: 0.15.1
83  */
84 typedef struct {
85 	/*< private >*/
86 	GDataFreebaseResultClass parent;
87 
88 	/*< private >*/
89 	/* Padding for future expansion */
90 	void (*_g_reserved0) (void);
91 	void (*_g_reserved1) (void);
92 } GDataFreebaseTopicResultClass;
93 
94 GType gdata_freebase_topic_object_get_type (void) G_GNUC_CONST G_GNUC_DEPRECATED;
95 GType gdata_freebase_topic_value_get_type (void) G_GNUC_CONST G_GNUC_DEPRECATED;
96 GType gdata_freebase_topic_result_get_type (void) G_GNUC_CONST G_GNUC_DEPRECATED;
97 
98 GDataFreebaseTopicResult *gdata_freebase_topic_result_new (void) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC G_GNUC_DEPRECATED;
99 
100 GDataFreebaseTopicObject *gdata_freebase_topic_result_dup_object (GDataFreebaseTopicResult *self) G_GNUC_DEPRECATED;
101 
102 GDataFreebaseTopicObject *gdata_freebase_topic_object_ref (GDataFreebaseTopicObject *object) G_GNUC_DEPRECATED;
103 void gdata_freebase_topic_object_unref (GDataFreebaseTopicObject *object) G_GNUC_DEPRECATED;
104 
105 GPtrArray *gdata_freebase_topic_object_list_properties (const GDataFreebaseTopicObject *object) G_GNUC_DEPRECATED;
106 
107 const gchar *gdata_freebase_topic_object_get_id (const GDataFreebaseTopicObject *object) G_GNUC_DEPRECATED;
108 guint64 gdata_freebase_topic_object_get_property_count (const GDataFreebaseTopicObject *object, const gchar *property) G_GNUC_DEPRECATED;
109 guint64 gdata_freebase_topic_object_get_property_hits (const GDataFreebaseTopicObject *object, const gchar *property) G_GNUC_DEPRECATED;
110 GDataFreebaseTopicValue *gdata_freebase_topic_object_get_property_value (const GDataFreebaseTopicObject *object, const gchar *property, gint64 item) G_GNUC_DEPRECATED;
111 
112 GDataFreebaseTopicValue *gdata_freebase_topic_value_ref (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
113 void gdata_freebase_topic_value_unref (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
114 
115 const gchar *gdata_freebase_topic_value_get_property (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
116 
117 const gchar *gdata_freebase_topic_value_get_text (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
118 const gchar *gdata_freebase_topic_value_get_language (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
119 const gchar *gdata_freebase_topic_value_get_creator (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
120 gint64 gdata_freebase_topic_value_get_timestamp (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
121 GType gdata_freebase_topic_value_get_value_type (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
122 void gdata_freebase_topic_value_copy_value (GDataFreebaseTopicValue *value, GValue *gvalue) G_GNUC_DEPRECATED;
123 
124 gint64 gdata_freebase_topic_value_get_int (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
125 gdouble gdata_freebase_topic_value_get_double (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
126 const gchar *gdata_freebase_topic_value_get_string (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
127 const GDataFreebaseTopicObject *gdata_freebase_topic_value_get_object (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
128 
129 gboolean gdata_freebase_topic_value_is_image (GDataFreebaseTopicValue *value) G_GNUC_DEPRECATED;
130 
131 #endif /* !LIBGDATA_DISABLE_DEPRECATED */
132 
133 G_END_DECLS
134 
135 #endif /* !GDATA_FREEBASE_TOPIC_RESULT_H */
136