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> |
|
|
14
by Gustav Hartvigsson
* Started work on the settings dioloug. |
15 |
#include <glib/gi18n.h> |
16 |
||
|
1
by Gustav Hartvigsson
Initial code. |
17 |
|
18 |
#define GPUMP_TYPE_APP (gpump_app_get_type ())
|
|
19 |
#define GPUMP_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPUMP_TYPE_APP, GPumpApp))
|
|
|
14
by Gustav Hartvigsson
* Started work on the settings dioloug. |
20 |
#define GPUMP_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GPUMP_TYPE_APP, GPumpAppClass))
|
|
1
by Gustav Hartvigsson
Initial code. |
21 |
#define GPUMP_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPUMP_TYPE_APP))
|
22 |
#define GPUMP_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPUMP_TYPE_APP))
|
|
|
14
by Gustav Hartvigsson
* Started work on the settings dioloug. |
23 |
#define GPUMP_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPUMP_TYPE_APP, GPumpAppClass))
|
|
1
by Gustav Hartvigsson
Initial code. |
24 |
|
25 |
/*
|
|
26 |
* NAMESPACE: gpump_*
|
|
27 |
*
|
|
28 |
* The App is a GtkApplication
|
|
29 |
*
|
|
30 |
* CLASS NAMESPACE: gpump_app_*
|
|
31 |
*/
|
|
32 |
||
33 |
typedef struct GPumpApp GPumpApp; |
|
34 |
typedef struct GPumpAppPrivate GPumpAppPrivate; |
|
35 |
typedef struct GPumpAppClass GPumpAppClass; |
|
36 |
||
37 |
struct GPumpApp { |
|
38 |
GtkApplication parent; |
|
39 |
|
|
40 |
/* public */ |
|
41 |
|
|
42 |
/* private */ |
|
43 |
GPumpAppPrivate * priv; |
|
44 |
};
|
|
45 |
||
46 |
struct GPumpAppClass { |
|
47 |
GtkApplicationClass parent_class; |
|
48 |
};
|
|
49 |
||
50 |
||
51 |
GType gpump_app_get_type (void) G_GNUC_CONST; |
|
52 |
||
53 |
/**
|
|
54 |
* Create a new app.
|
|
55 |
*
|
|
56 |
*/
|
|
57 |
GPumpApp * gpump_app_new (void); |
|
58 |
||
59 |
||
60 |
#endif /*__G_PUMP_App__*/ |
|
61 |