summaryrefslogtreecommitdiff
path: root/endless/eosapplication.h
blob: e74a3eb55ce6e051a77bd2d5f7f1a756d3bf6291 (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
71
72
73
74
75
76
77
/* Copyright 2013 Endless Mobile, Inc. */

#ifndef EOS_APPLICATION_H
#define EOS_APPLICATION_H

#if !(defined(_EOS_SDK_INSIDE_ENDLESS_H) || defined(COMPILING_EOS_SDK))
#error "Please do not include this header file directly."
#endif

#include "eostypes.h"

#include <gtk/gtk.h>

#define EOS_TYPE_APPLICATION eos_application_get_type()

#define EOS_APPLICATION(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  EOS_TYPE_APPLICATION, EosApplication))

#define EOS_APPLICATION_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  EOS_TYPE_APPLICATION, EosApplicationClass))

#define EOS_IS_APPLICATION(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  EOS_TYPE_APPLICATION))

#define EOS_IS_APPLICATION_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  EOS_TYPE_APPLICATION))

#define EOS_APPLICATION_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  EOS_TYPE_APPLICATION, EosApplicationClass))

typedef struct _EosApplication EosApplication;
typedef struct _EosApplicationClass EosApplicationClass;

/**
 * EosApplication:
 *
 * This class structure contains no public members.
 */
struct _EosApplication
{
  /*< private >*/
  GtkApplication parent;
};

struct _EosApplicationClass
{
  GtkApplicationClass parent_class;

  /* For further expansion */
  gpointer _padding[8];
};

EOS_SDK_AVAILABLE_IN_0_0
GType           eos_application_get_type       (void) G_GNUC_CONST;

EOS_SDK_AVAILABLE_IN_0_0
EosApplication *eos_application_new            (const gchar      *application_id,
                                                GApplicationFlags flags);

EOS_SDK_AVAILABLE_IN_0_0
GFile          *eos_application_get_config_dir (EosApplication *self);

EOS_SDK_AVAILABLE_IN_0_2
GFile          *eos_application_get_image_attribution_file (EosApplication *self);

EOS_SDK_AVAILABLE_IN_0_2
void            eos_application_set_image_attribution_file (EosApplication *self,
                                                            GFile          *file);

G_END_DECLS

#endif /* EOS_APPLICATION_H */