SyncdaemonAuthentication

SyncdaemonAuthentication

Synopsis

                    SyncdaemonAuthenticationPrivate;
                    SyncdaemonAuthentication;
                    SyncdaemonAuthenticationClass;
SyncdaemonAuthentication * syncdaemon_authentication_new
                                                        (void);
SyncdaemonCredentials * syncdaemon_authentication_find_credentials
                                                        (SyncdaemonAuthentication *auth);
gboolean            syncdaemon_authentication_has_credentials
                                                        (SyncdaemonAuthentication *auth);
void                syncdaemon_authentication_login_or_register
                                                        (SyncdaemonAuthentication *auth);
void                syncdaemon_authentication_clear_token
                                                        (SyncdaemonAuthentication *auth);

Object Hierarchy

  GObject
   +----SyncdaemonAuthentication

Signals

  "authorization-cancelled"                        : Run Last
  "credentials-found"                              : Run Last
  "error"                                          : Run Last

Description

Details

SyncdaemonAuthenticationPrivate

typedef struct _SyncdaemonAuthenticationPrivate SyncdaemonAuthenticationPrivate;


SyncdaemonAuthentication

typedef struct _SyncdaemonAuthentication SyncdaemonAuthentication;


SyncdaemonAuthenticationClass

typedef struct {
	GObjectClass parent_class;

	void (* credentials_found) (SyncdaemonAuthentication *auth, SyncdaemonCredentials *credentials);
	void (* authorization_cancelled) (SyncdaemonAuthentication *auth);
	void (* error) (SyncdaemonAuthentication *auth, const gchar *error);
} SyncdaemonAuthenticationClass;


syncdaemon_authentication_new ()

SyncdaemonAuthentication * syncdaemon_authentication_new
                                                        (void);

Returns :


syncdaemon_authentication_find_credentials ()

SyncdaemonCredentials * syncdaemon_authentication_find_credentials
                                                        (SyncdaemonAuthentication *auth);

auth :

Returns :


syncdaemon_authentication_has_credentials ()

gboolean            syncdaemon_authentication_has_credentials
                                                        (SyncdaemonAuthentication *auth);

auth :

Returns :


syncdaemon_authentication_login_or_register ()

void                syncdaemon_authentication_login_or_register
                                                        (SyncdaemonAuthentication *auth);

auth :


syncdaemon_authentication_clear_token ()

void                syncdaemon_authentication_clear_token
                                                        (SyncdaemonAuthentication *auth);

auth :

Signal Details

The "authorization-cancelled" signal

void                user_function                      (SyncdaemonAuthentication *syncdaemonauthentication,
                                                        gpointer                  user_data)                     : Run Last

syncdaemonauthentication :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "credentials-found" signal

void                user_function                      (SyncdaemonAuthentication *syncdaemonauthentication,
                                                        GObject                  *arg1,
                                                        gpointer                  user_data)                     : Run Last

syncdaemonauthentication :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.

The "error" signal

void                user_function                      (SyncdaemonAuthentication *syncdaemonauthentication,
                                                        gchar                    *arg1,
                                                        gpointer                  user_data)                     : Run Last

syncdaemonauthentication :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.