| 1 | <node> |
| 2 | <!-- |
| 3 | com.canonical.indicators.webcredentials: |
| 4 | @short_description: interface for handling login failures. |
| 5 | |
| 6 | The service implementing this interface keeps track of login failures. |
| 7 | Failures are reported (usually by signon-ui) using the ReportFailure method, |
| 8 | are listed in the Failures property and can be removed by calling |
| 9 | RemoveFailures. |
| 10 | |
| 11 | The ClearErrorStatus method can be called to clear the error indicator from |
| 12 | the system user menu. |
| 13 | --> |
| 14 | <interface name="com.canonical.indicators.webcredentials"> |
| 15 | <!-- |
| 16 | ReportFailure: |
| 17 | @account-id: the libaccounts ID of the account which failed to login. |
| 18 | @notification: dictionary of parameters for the OSD notification. |
| 19 | |
| 20 | Inform the service about a failing account. The @account-id is added to the |
| 21 | list of the accounts in the Failures property, and a notification might be |
| 22 | displayed to the user. |
| 23 | |
| 24 | The parameters currently recognized for the @notification argument are: |
| 25 | - DisplayName: string, description of the account (usually it's the |
| 26 | username) |
| 27 | --> |
| 28 | <method name="ReportFailure"> |
| 29 | <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 30 | <arg name="account_id" type="u" direction="in"/> |
| 31 | <arg name="notification" type="a{sv}" direction="in"/> |
| 32 | </method> |
| 33 | |
| 34 | <!-- |
| 35 | RemoveFailures: |
| 36 | @account-ids: the libaccounts IDs of the accounts. |
| 37 | |
| 38 | Remove the given account IDs from the list of the failed accounts. |
| 39 | --> |
| 40 | <method name="RemoveFailures"> |
| 41 | <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QSet<uint>"/> |
| 42 | <arg name="account_ids" type="au" direction="in"/> |
| 43 | </method> |
| 44 | |
| 45 | <!-- |
| 46 | ReauthenticateAccount: |
| 47 | @account-id: the libaccounts ID of the account. |
| 48 | @extra-parameters: dictionary of extra parameters (typically used to |
| 49 | specify a XWindowID). |
| 50 | @reauthenticated: %TRUE if the account could be reauthenticated and the |
| 51 | failure status has been cleared, %FALSE otherwise. |
| 52 | |
| 53 | Tries to replay the failed authentications on the account. If all of them |
| 54 | succeed, then the account failure is cleared. |
| 55 | --> |
| 56 | <method name="ReauthenticateAccount"> |
| 57 | <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 58 | <arg name="account_id" type="u" direction="in"/> |
| 59 | <arg name="extra_parameters" type="a{sv}" direction="in"/> |
| 60 | <arg name="reauthenticated" type="b" direction="out"/> |
| 61 | </method> |
| 62 | |
| 63 | <!-- |
| 64 | ClearErrorStatus: |
| 65 | |
| 66 | Unsets the error indicator (if any) from the system user menu. |
| 67 | --> |
| 68 | <method name="ClearErrorStatus"/> |
| 69 | |
| 70 | <!-- |
| 71 | Failures: list of the libaccounts IDs of the failing accounts. |
| 72 | --> |
| 73 | <property name="Failures" type="au" access="read"> |
| 74 | <annotation name="org.qtproject.QtDBus.QtTypeName" value="QSet<uint>"/> |
| 75 | </property> |
| 76 | |
| 77 | <!-- |
| 78 | ErrorStatus: true if the indicator should display an error status. |
| 79 | --> |
| 80 | <property name="ErrorStatus" type="b" access="read"/> |
| 81 | </interface> |
| 82 | </node> |