| goabackend.h | | goabackend.h | |
| | | | |
| skipping to change at line 31 | | skipping to change at line 31 | |
| */ | | */ | |
| | | | |
| #ifndef __GOA_BACKEND_H__ | | #ifndef __GOA_BACKEND_H__ | |
| #define __GOA_BACKEND_H__ | | #define __GOA_BACKEND_H__ | |
| | | | |
| #if !defined(GOA_BACKEND_API_IS_SUBJECT_TO_CHANGE) && !defined(GOA_BACKEND_
COMPILATION) | | #if !defined(GOA_BACKEND_API_IS_SUBJECT_TO_CHANGE) && !defined(GOA_BACKEND_
COMPILATION) | |
| #error libgoa-backend is unstable API. You must define GOA_BACKEND_API_IS_
SUBJECT_TO_CHANGE before including goabackend/goabackend.h | | #error libgoa-backend is unstable API. You must define GOA_BACKEND_API_IS_
SUBJECT_TO_CHANGE before including goabackend/goabackend.h | |
| #endif | | #endif | |
| | | | |
| #define __GOA_BACKEND_INSIDE_GOA_BACKEND_H__ | | #define __GOA_BACKEND_INSIDE_GOA_BACKEND_H__ | |
|
| | | #include <goabackend/goabackendenumtypes.h> | |
| #include <goabackend/goabackendtypes.h> | | #include <goabackend/goabackendtypes.h> | |
| #include <goabackend/goaprovider.h> | | #include <goabackend/goaprovider.h> | |
| #undef __GOA_BACKEND_INSIDE_GOA_BACKEND_H__ | | #undef __GOA_BACKEND_INSIDE_GOA_BACKEND_H__ | |
| | | | |
| #endif /* __GOA_BACKEND_H__ */ | | #endif /* __GOA_BACKEND_H__ */ | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 1 lines changed or added | |
|
| goabackendenums.h | | goabackendenums.h | |
| | | | |
| skipping to change at line 61 | | skipping to change at line 61 | |
| */ | | */ | |
| typedef enum | | typedef enum | |
| { | | { | |
| GOA_PROVIDER_GROUP_BRANDED, | | GOA_PROVIDER_GROUP_BRANDED, | |
| GOA_PROVIDER_GROUP_CONTACTS, | | GOA_PROVIDER_GROUP_CONTACTS, | |
| GOA_PROVIDER_GROUP_MAIL, | | GOA_PROVIDER_GROUP_MAIL, | |
| GOA_PROVIDER_GROUP_TICKETING, | | GOA_PROVIDER_GROUP_TICKETING, | |
| GOA_PROVIDER_GROUP_INVALID | | GOA_PROVIDER_GROUP_INVALID | |
| } GoaProviderGroup; | | } GoaProviderGroup; | |
| | | | |
|
| | | /** | |
| | | * GoaProviderFeatures: | |
| | | * @GOA_PROVIDER_FEATURE_BRANDED: Common providers to be highlighted (ie. G | |
| | | oogle, OwnCloud). | |
| | | * @GOA_PROVIDER_FEATURE_MAIL: Mail services (ie. SMTP, IMAP). | |
| | | * @GOA_PROVIDER_FEATURE_CALENDAR: Calendaring services (ie. CalDAV). | |
| | | * @GOA_PROVIDER_FEATURE_CONTACTS: Addressbook services (ie. CardDAV). | |
| | | * @GOA_PROVIDER_FEATURE_CHAT: Instant messaging services (ie. XMPP, IRC). | |
| | | * @GOA_PROVIDER_FEATURE_DOCUMENTS: Documents storage services (ie. Google | |
| | | Documents). | |
| | | * @GOA_PROVIDER_FEATURE_PHOTOS: Photos storage services (ie. Flickr). | |
| | | * @GOA_PROVIDER_FEATURE_FILES: Files storage services (ie. WebDAV). | |
| | | * @GOA_PROVIDER_FEATURE_TICKETING: Ticketing services (ie. Kerberos). | |
| | | * @GOA_PROVIDER_FEATURE_INVALID: Used for error handling. No provider | |
| | | * should provide this feature. | |
| | | * | |
| | | * These flags specify the features exported by each provider. They can be | |
| | | * expecially useful to restrict the list of available providers when | |
| | | * requesting the creation of an account for a specific purpose (eg. from a | |
| | | * chat program). | |
| | | * | |
| | | * Since: 3.10 | |
| | | */ | |
| | | typedef enum /*< flags >*/ | |
| | | { | |
| | | GOA_PROVIDER_FEATURE_BRANDED = 1 << 1, | |
| | | GOA_PROVIDER_FEATURE_MAIL = 1 << 2, | |
| | | GOA_PROVIDER_FEATURE_CALENDAR = 1 << 3, | |
| | | GOA_PROVIDER_FEATURE_CONTACTS = 1 << 4, | |
| | | GOA_PROVIDER_FEATURE_CHAT = 1 << 5, | |
| | | GOA_PROVIDER_FEATURE_DOCUMENTS = 1 << 6, | |
| | | GOA_PROVIDER_FEATURE_PHOTOS = 1 << 7, | |
| | | GOA_PROVIDER_FEATURE_FILES = 1 << 8, | |
| | | GOA_PROVIDER_FEATURE_TICKETING = 1 << 9, | |
| | | GOA_PROVIDER_FEATURE_INVALID = 0 | |
| | | } GoaProviderFeatures; | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __GOA_BACKEND_ENUMS_H__ */ | | #endif /* __GOA_BACKEND_ENUMS_H__ */ | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 37 lines changed or added | |
|
| goaprovider.h | | goaprovider.h | |
| | | | |
| skipping to change at line 66 | | skipping to change at line 66 | |
| GoaProviderPrivate *priv; | | GoaProviderPrivate *priv; | |
| }; | | }; | |
| | | | |
| /** | | /** | |
| * GoaProviderClass: | | * GoaProviderClass: | |
| * @parent_class: The parent class. | | * @parent_class: The parent class. | |
| * @get_provider_type: Virtual function for goa_provider_get_provider_type(
). | | * @get_provider_type: Virtual function for goa_provider_get_provider_type(
). | |
| * @get_provider_name: Virtual function for goa_provider_get_provider_name(
). | | * @get_provider_name: Virtual function for goa_provider_get_provider_name(
). | |
| * @get_provider_icon: Virtual function for goa_provider_get_provider_icon(
). | | * @get_provider_icon: Virtual function for goa_provider_get_provider_icon(
). | |
| * @get_provider_group: Virtual function for goa_provider_get_provider_grou
p(). | | * @get_provider_group: Virtual function for goa_provider_get_provider_grou
p(). | |
|
| | | * @get_provider_features: Virtual function for goa_provider_get_provider_f
eatures(). | |
| * @add_account: Virtual function for goa_provider_add_account(). | | * @add_account: Virtual function for goa_provider_add_account(). | |
| * @refresh_account: Virtual function for goa_provider_refresh_account(). | | * @refresh_account: Virtual function for goa_provider_refresh_account(). | |
| * @build_object: Virtual function for goa_provider_build_object(). | | * @build_object: Virtual function for goa_provider_build_object(). | |
| * @ensure_credentials_sync: Virtual function for goa_provider_ensure_crede
ntials_sync(). | | * @ensure_credentials_sync: Virtual function for goa_provider_ensure_crede
ntials_sync(). | |
| * @show_account: Virtual function for goa_provider_show_account(). | | * @show_account: Virtual function for goa_provider_show_account(). | |
| * @get_credentials_generation: Virtual function for goa_provider_get_crede
ntials_generation(). | | * @get_credentials_generation: Virtual function for goa_provider_get_crede
ntials_generation(). | |
| * | | * | |
| * Class structure for #GoaProvider. | | * Class structure for #GoaProvider. | |
| */ | | */ | |
| struct _GoaProviderClass | | struct _GoaProviderClass | |
| | | | |
| skipping to change at line 118 | | skipping to change at line 119 | |
| void (*show_account) (GoaProvider *provider, | | void (*show_account) (GoaProvider *provider, | |
| GoaClient *client, | | GoaClient *client, | |
| GoaObject *object, | | GoaObject *object, | |
| GtkBox *vbox, | | GtkBox *vbox, | |
| GtkGrid *left, | | GtkGrid *left, | |
| GtkGrid *right); | | GtkGrid *right); | |
| guint (*get_credentials_generation) (GoaProvider *provider); | | guint (*get_credentials_generation) (GoaProvider *provider); | |
| | | | |
| /* pure virtual */ | | /* pure virtual */ | |
| GoaProviderGroup (*get_provider_group) (GoaProvider *provider); | | GoaProviderGroup (*get_provider_group) (GoaProvider *provider); | |
|
| | | GoaProviderFeatures (*get_provider_features) (GoaProvider *provide
r); | |
| | | | |
| /*< private >*/ | | /*< private >*/ | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
|
| gpointer goa_reserved[32]; | | gpointer goa_reserved[31]; | |
| }; | | }; | |
| | | | |
| GType goa_provider_get_type (void) G_GNUC_CONST; | | GType goa_provider_get_type (void) G_GNUC_CONST; | |
| const gchar *goa_provider_get_provider_type (GoaProvider *p
rovider); | | const gchar *goa_provider_get_provider_type (GoaProvider *p
rovider); | |
| gchar *goa_provider_get_provider_name (GoaProvider *p
rovider, | | gchar *goa_provider_get_provider_name (GoaProvider *p
rovider, | |
| GoaObject *o
bject); | | GoaObject *o
bject); | |
| GIcon *goa_provider_get_provider_icon (GoaProvider *p
rovider, | | GIcon *goa_provider_get_provider_icon (GoaProvider *p
rovider, | |
| GoaObject *o
bject); | | GoaObject *o
bject); | |
|
| | | G_DEPRECATED_FOR(goa_provider_get_provider_features) | |
| GoaProviderGroup goa_provider_get_provider_group (GoaProvider *p
rovider); | | GoaProviderGroup goa_provider_get_provider_group (GoaProvider *p
rovider); | |
|
| | | GoaProviderFeatures goa_provider_get_provider_features (GoaProvider *p | |
| | | rovider); | |
| | | void goa_provider_set_preseed_data (GoaProvider *provider, | |
| | | GVariant *preseed_d | |
| | | ata); | |
| | | GVariant *goa_provider_get_preseed_data (GoaProvider *provider) | |
| | | ; | |
| GoaObject *goa_provider_add_account (GoaProvider *p
rovider, | | GoaObject *goa_provider_add_account (GoaProvider *p
rovider, | |
| GoaClient *c
lient, | | GoaClient *c
lient, | |
| GtkDialog *d
ialog, | | GtkDialog *d
ialog, | |
| GtkBox *v
box, | | GtkBox *v
box, | |
| GError **e
rror); | | GError **e
rror); | |
| gboolean goa_provider_refresh_account (GoaProvider *p
rovider, | | gboolean goa_provider_refresh_account (GoaProvider *p
rovider, | |
| GoaClient *c
lient, | | GoaClient *c
lient, | |
| GoaObject *o
bject, | | GoaObject *o
bject, | |
| GtkWindow *p
arent, | | GtkWindow *p
arent, | |
| GError **e
rror); | | GError **e
rror); | |
| | | | |
| skipping to change at line 171 | | skipping to change at line 178 | |
| GAsyncResult *r
es, | | GAsyncResult *r
es, | |
| GError **e
rror); | | GError **e
rror); | |
| gboolean goa_provider_ensure_credentials_sync (GoaProvider *p
rovider, | | gboolean goa_provider_ensure_credentials_sync (GoaProvider *p
rovider, | |
| GoaObject *o
bject, | | GoaObject *o
bject, | |
| gint *o
ut_expires_in, | | gint *o
ut_expires_in, | |
| GCancellable *c
ancellable, | | GCancellable *c
ancellable, | |
| GError **e
rror); | | GError **e
rror); | |
| guint goa_provider_get_credentials_generation (GoaProvider *p
rovider); | | guint goa_provider_get_credentials_generation (GoaProvider *p
rovider); | |
| | | | |
| GList *goa_provider_get_all (void); | | GList *goa_provider_get_all (void); | |
|
| | | | |
| GoaProvider *goa_provider_get_for_provider_type (const gchar *provider_typ
e); | | GoaProvider *goa_provider_get_for_provider_type (const gchar *provider_typ
e); | |
| | | | |
| /* ------------------------------------------------------------------------
---------------------------- */ | | /* ------------------------------------------------------------------------
---------------------------- */ | |
| | | | |
| GtkWidget *goa_util_add_row_widget (GtkGrid *left, | | GtkWidget *goa_util_add_row_widget (GtkGrid *left, | |
| GtkGrid *right, | | GtkGrid *right, | |
| const gchar *label_text, | | const gchar *label_text, | |
| GtkWidget *widget); | | GtkWidget *widget); | |
| | | | |
| gchar * | | gchar * | |
| | | | |
End of changes. 6 change blocks. |
| 1 lines changed or deleted | | 12 lines changed or added | |
|