/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk
1 by Gustav Hartvigsson
Initial code.
1
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
2
 * vi: set shiftwidth=2 tabstop=2 expandtab:
3
 * :indentSize=2:tabSize=2:noTabs=true:
4
 */
5
6
#ifndef __G_PUMP_App__
7
#define __G_PUMP_App__
8
9
#include <gtk/gtk.h>
10
#include <gio/gio.h>
11
#include <rest/oauth2-proxy.h>
12
#include <rest/rest-proxy-call.h>
13
#include <stdlib.h>
14
#include <string.h>
15
16
#define GPUMP_TYPE_APP              (gpump_app_get_type ())
17
#define GPUMP_APP(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GPUMP_TYPE_APP, GPumpApp))
18
#define GPUMP_APP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GPUMP_TYPE_APP, GPumpClass))
19
#define GPUMP_IS_APP(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPUMP_TYPE_APP))
20
#define GPUMP_IS_APP_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GPUMP_TYPE_APP))
21
#define GPUMP_APP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GPUMP_TYPE_APP, GPumpClass))
22
23
/*
24
 * NAMESPACE: gpump_*
25
 *
26
 * The App is a GtkApplication
27
 *
28
 * CLASS NAMESPACE: gpump_app_*
29
 */
30
31
typedef struct GPumpApp GPumpApp;
32
typedef struct GPumpAppPrivate GPumpAppPrivate;
33
typedef struct GPumpAppClass GPumpAppClass;
34
35
struct GPumpApp {
36
  GtkApplication parent;
37
  
38
  /* public */
39
  
40
  /* private */
41
  GPumpAppPrivate * priv;
42
};
43
44
struct GPumpAppClass {
45
  GtkApplicationClass parent_class;
46
};
47
48
49
GType gpump_app_get_type (void) G_GNUC_CONST;
50
51
/**
52
 * Create a new app.
53
 * 
54
 */
55
GPumpApp * gpump_app_new (void);
56
57
58
#endif /*__G_PUMP_App__*/
59