v0.2.2 release
[yandexfotkisp] / src / libsharing / sharing-tag.h
1 /*
2  * This file is part of Sharing Application Library
3  *
4  * Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
5  *
6  * Contact: Alexander Bokovoy <alexander.bokovoy@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * version 2.1 as published by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23
24 /**
25  * SECTION:sharing-tag
26  * @short_description: Tag element of SharingEntryMedia.
27  *
28  * #SharingTag can be used to check the information and type of tags specified inside #SharingEntryMedia.
29  */
30
31
32 #ifndef _SHARING_TAG_H_
33 #define _SHARING_TAG_H_
34
35 #include <glib.h>
36
37 G_BEGIN_DECLS
38
39 /**
40  * SharingEntryMediaMetadata:
41  * @SHARING_TAG_SHARE: Share Tag seen at Sharing Dialog "Tags" -area
42  * @SHARING_TAG_LOCATION_COUNTRY: Tag seen at Sharing Dialog Location tags
43  * @SHARING_TAG_LOCATION_CITY: Tag seen at Sharing Dialog Location tags
44  * @SHARING_TAG_LOCATION_SUBURB: Tag seen at Sharing Dialog Location tags
45  * @SHARING_TAG_FAVOURITE: Tag seen in Sharing Dialog as a star icon, 
46  *  describing a favourite.
47  * @SHARING_TAG_UNKNOWN: Unknown type, use only when type is not known like
48  * in initialization phase.
49  *
50  * Tag types from tags that are seen at GUI (except SHARING_TAG_UNKNOWN).
51  */
52 typedef enum {
53     SHARING_TAG_SHARE = 0,
54     SHARING_TAG_GEO_COUNTRY = 1 << 0,
55     SHARING_TAG_GEO_CITY = 1 << 1,
56     SHARING_TAG_GEO_SUBURB = 1 << 2,
57     SHARING_TAG_FAVOURITE = 1 << 3,
58     SHARING_TAG_GPS_LATITUDE = 1 << 4,
59     SHARING_TAG_GPS_LONGITUDE = 1 << 5,
60     SHARING_TAG_GPS_ALTITUDE = 1 << 6,
61     SHARING_TAG_CREATOR = 1 << 7,
62     SHARING_TAG_UNKNOWN = ~0,
63 } SharingTagType;
64
65 typedef struct SharingTag SharingTag;
66
67 SharingTagType sharing_tag_get_type (const SharingTag * self);
68 const gchar* sharing_tag_get_word (const SharingTag * self);
69
70 G_END_DECLS
71
72 #endif /* #ifndef _SHARING_TAG_H_ */
73