summaryrefslogtreecommitdiff
path: root/src/libtracker-data/tracker-ontology.h
blob: b1978b9d9196ec5fcd524c6e86ae4ce47033c102 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (C) 2009, Nokia <ivan.frade@nokia.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA.
 *
 * Author: Philip Van Hoof <philip@codeminded.be>
 */

#ifndef __LIBTRACKER_DATA_ONTOLOGY_H__
#define __LIBTRACKER_DATA_ONTOLOGY_H__

#include <glib-object.h>
#include "tracker-class.h"

G_BEGIN_DECLS

#if !defined (__LIBTRACKER_DATA_INSIDE__) && !defined (TRACKER_COMPILATION)
#error "only <libtracker-data/tracker-data.h> must be included directly."
#endif

#define TRACKER_TYPE_ONTOLOGY         (tracker_ontology_get_type ())
#define TRACKER_ONTOLOGY(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), TRACKER_TYPE_ONTOLOGY, TrackerOntology))
#define TRACKER_ONTOLOGY_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), TRACKER_TYPE_ONTOLOGY, TrackerOntologyClass))
#define TRACKER_IS_ONTOLOGY(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), TRACKER_TYPE_ONTOLOGY))
#define TRACKER_IS_ONTOLOGY_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), TRACKER_TYPE_ONTOLOGY))
#define TRACKER_ONTOLOGY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TRACKER_TYPE_ONTOLOGY, TrackerOntologyClass))

typedef struct _TrackerOntology TrackerOntology;
typedef struct _TrackerOntologyClass TrackerOntologyClass;

struct _TrackerOntology {
	GObject parent;
};

struct _TrackerOntologyClass {
	GObjectClass parent_class;
};

GType             tracker_ontology_get_type          (void) G_GNUC_CONST;
TrackerOntology  *tracker_ontology_new               (void);
time_t            tracker_ontology_get_last_modified (TrackerOntology *ontology);
void              tracker_ontology_set_last_modified (TrackerOntology *ontology,
                                                      time_t           value);
const gchar *     tracker_ontology_get_uri           (TrackerOntology *ontology);
gboolean          tracker_ontology_get_is_new        (TrackerOntology *ontology);

void              tracker_ontology_set_uri           (TrackerOntology *ontology,
                                                      const gchar      *value);
void              tracker_ontology_set_is_new        (TrackerOntology *ontology,
                                                      gboolean         value);
void              tracker_ontology_set_ontologies    (TrackerOntology   *ontology,
                                                      TrackerOntologies *ontologies);

G_END_DECLS

#endif /* __LIBTRACKER_DATA_ONTOLOGY_H__ */