2
* Copyright 2013 Canonical Ltd.
5
* Charles Kerr <charles.kerr@canonical.com>
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License version 3, as published
9
* by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranties of
13
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
* PURPOSE. See the GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef __INDICATOR_DATETIME_TIMEZONE_GEOCLUE__H__
21
#define __INDICATOR_DATETIME_TIMEZONE_GEOCLUE__H__
23
#include "timezone.h" /* parent class */
27
#define INDICATOR_TYPE_DATETIME_TIMEZONE_GEOCLUE (indicator_datetime_timezone_geoclue_get_type())
28
#define INDICATOR_DATETIME_TIMEZONE_GEOCLUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), INDICATOR_TYPE_DATETIME_TIMEZONE_GEOCLUE, IndicatorDatetimeTimezoneGeoclue))
29
#define INDICATOR_DATETIME_TIMEZONE_GEOCLUE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), INDICATOR_TYPE_DATETIME_TIMEZONE_GEOCLUE, IndicatorDatetimeTimezoneGeoclueClass))
30
#define INDICATOR_IS_DATETIME_TIMEZONE_GEOCLUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), INDICATOR_TYPE_DATETIME_TIMEZONE_GEOCLUE))
32
typedef struct _IndicatorDatetimeTimezoneGeoclue IndicatorDatetimeTimezoneGeoclue;
33
typedef struct _IndicatorDatetimeTimezoneGeocluePriv IndicatorDatetimeTimezoneGeocluePriv;
34
typedef struct _IndicatorDatetimeTimezoneGeoclueClass IndicatorDatetimeTimezoneGeoclueClass;
36
GType indicator_datetime_timezone_geoclue_get_type (void);
39
* An IndicatorDatetimeTimezone which uses GeoClue to determine the timezone.
41
struct _IndicatorDatetimeTimezoneGeoclue
44
IndicatorDatetimeTimezone parent;
45
IndicatorDatetimeTimezoneGeocluePriv * priv;
48
struct _IndicatorDatetimeTimezoneGeoclueClass
50
IndicatorDatetimeTimezoneClass parent_class;
53
IndicatorDatetimeTimezone * indicator_datetime_timezone_geoclue_new (void);
57
#endif /* __INDICATOR_DATETIME_TIMEZONE_GEOCLUE__H__ */