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:
7
* The GPumpAuth class authenticates the user with a Pump.io node.
9
* GPump contains a widget that needs to be associated with a top-level window,
10
* or dialoug window associated a top level window.
12
* The special widget is a dialoug box with a WebKitWebView that displays the
13
* authentication page.
15
* The keys are stored in the object untill they are gotten after which the
16
* keys are freed and zeroed. After that point, the keys are not avalible for
22
#include <rest/oauth2-proxy.h>
23
#include <rest/rest-proxy-call.h>
26
#include <glib/gi18n.h>
28
#define GPUMP_TYPE_AUTH (gpump_auth_get_type ())
29
#define GPUMP_AUTH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPUMP_TYPE_AUTH, GPumpAuth))
30
#define GPUMP_AUTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GPUMP_TYPE_AUTH, GPumpAUTHClass))
31
#define GPUMP_IS_AUTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPUMP_TYPE_AUTH))
32
#define GPUMP_IS_AUTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPUMP_TYPE_AUTH))
33
#define GPUMP_AUTH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPUMP_TYPE_AUTH, GPumpAuthClass))
38
* The authenication widget that is use for authentication of the user with a
41
* The parent is a GtkDialog and uses GtkWebkit.
43
* CLASS NAMESPACE: gpump_auth_*
47
typedef struct GPumpAuth GPumpAuth;
48
typedef struct GPumpAuthPrivate GPumpAuthPrivate;
49
typedef struct GPumpAuthClass GPumpAuthClass;
52
* GPumpAuth is a widget is used for getting the OAuth information from the
60
struct GPumpAuthClass {
61
GtkDialogClass parent_class;
64
GType gpump_auth_get_type (void) G_GNUC_CONST;
69
GPumpAuth * gpump_auth_new (void);