72c539311ae5f46c4434c25f2634d8e8edd446e5
[profile/ivi/gsignond.git] / include / gsignond / gsignond-signonui.h
1 #ifndef _GSIGNOND_SIGNONUI_H_
2 #define _GSIGNOND_SIGNONUI_H_
3
4 /**
5  * @GSignondSignonuiError:
6  * @SIGNONUI_ERROR_NONE: No errors
7  * @SIGNONUI_ERROR_GENERAL: Generic error during interaction
8  * @SIGNONUI_ERROR_NO_SIGNONUI: Cannot send request to signon-ui
9  * @SIGNONUI_ERROR_BAD_PARAMETERS:Signon-Ui cannot create dialog based on the given UiSessionData
10  * @SIGNONUI_ERROR_CANCELED: User canceled action. Plugin should not retry automatically after this
11  * @SIGNONUI_ERROR_NOT_AVAILABLE: Requested ui is not available. For example browser cannot be started
12  * @SIGNONUI_ERROR_BAD_URL: Given url was not valid
13  * @SIGNONUI_ERROR_BAD_CAPTCHA: Given captcha image was not valid
14  * @SIGNONUI_ERROR_BAD_CAPTCHA_URL: Given url for capctha loading was not valid
15  * @SIGNONUI_ERROR_REFRESH_FAILED: Refresh failed
16  * @SIGNONUI_ERROR_FORBIDDEN: Showing ui forbidden by ui policy
17  * @SIGNONUI_ERROR_FORGOT_PASSWORD: User pressed forgot password
18  */
19 typedef enum {
20     SIGNONUI_ERROR_NONE = 0, 
21     SIGNONUI_ERROR_GENERAL,
22     SIGNONUI_ERROR_NO_SIGNONUI,
23     SIGNONUI_ERROR_BAD_PARAMETERS,
24     SIGNONUI_ERROR_CANCELED,
25     SIGNONUI_ERROR_NOT_AVAILABLE, 
26     SIGNONUI_ERROR_BAD_URL, 
27     SIGNONUI_ERROR_BAD_CAPTCHA,
28     SIGNONUI_ERROR_BAD_CAPTCHA_URL,
29     SIGNONUI_ERROR_REFRESH_FAILED, 
30     SIGNONUI_ERROR_FORBIDDEN,
31     SIGNONUI_ERROR_FORGOT_PASSWORD
32 } GSignondSignonuiError;
33
34 #endif //_GSIGNOND_SIGNONUI_H_