/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/GPumpApp.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-06-09 17:42:01 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140609174201-9j752hye8k69m9ze
* UI for preferences done, it is still not functional.
  * TODO: bind some functions to the different buttons and switches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
#include <glib/gi18n.h>
16
 
 
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))
20
 
#define GPUMP_APP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GPUMP_TYPE_APP, GPumpAppClass))
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))
23
 
#define GPUMP_APP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GPUMP_TYPE_APP, GPumpAppClass))
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