~charlesk/indicator-datetime/lp-1001595

« back to all changes in this revision

Viewing changes to src/timezone-geoclue.h

  • Committer: CI bot
  • Author(s): Charles Kerr
  • Date: 2014-01-31 11:46:08 UTC
  • mfrom: (290.2.86 cpp)
  • Revision ID: ps-jenkins@lists.canonical.com-20140131114608-8sfzhimcfdywmk46
Finally land this. Other, still open bugs will be fixed in subsequent commits. Fixes: 793450, 1271484, 1274046

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2013 Canonical Ltd.
3
 
 *
4
 
 * Authors:
5
 
 *   Charles Kerr <charles.kerr@canonical.com>
6
 
 *
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.
10
 
 *
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.
15
 
 *
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/>.
18
 
 */
19
 
 
20
 
#ifndef __INDICATOR_DATETIME_TIMEZONE_GEOCLUE__H__
21
 
#define __INDICATOR_DATETIME_TIMEZONE_GEOCLUE__H__
22
 
 
23
 
#include "timezone.h" /* parent class */
24
 
 
25
 
G_BEGIN_DECLS
26
 
 
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))
31
 
 
32
 
typedef struct _IndicatorDatetimeTimezoneGeoclue        IndicatorDatetimeTimezoneGeoclue;
33
 
typedef struct _IndicatorDatetimeTimezoneGeocluePriv    IndicatorDatetimeTimezoneGeocluePriv;
34
 
typedef struct _IndicatorDatetimeTimezoneGeoclueClass   IndicatorDatetimeTimezoneGeoclueClass;
35
 
 
36
 
GType indicator_datetime_timezone_geoclue_get_type (void);
37
 
 
38
 
/**
39
 
 * An IndicatorDatetimeTimezone which uses GeoClue to determine the timezone.
40
 
 */
41
 
struct _IndicatorDatetimeTimezoneGeoclue
42
 
{
43
 
  /*< private >*/
44
 
  IndicatorDatetimeTimezone parent;
45
 
  IndicatorDatetimeTimezoneGeocluePriv * priv;
46
 
};
47
 
 
48
 
struct _IndicatorDatetimeTimezoneGeoclueClass
49
 
{
50
 
  IndicatorDatetimeTimezoneClass parent_class;
51
 
};
52
 
 
53
 
IndicatorDatetimeTimezone * indicator_datetime_timezone_geoclue_new (void);
54
 
 
55
 
G_END_DECLS
56
 
 
57
 
#endif /* __INDICATOR_DATETIME_TIMEZONE_GEOCLUE__H__ */