![]() |
![]() |
![]() |
account-plugin Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#include <libaccount-plugin/application-plugin.h> ApApplicationPlugin; GtkWidget * ap_application_plugin_build_widget (ApApplicationPlugin *self
); AgAccount * ap_application_plugin_get_account (ApApplicationPlugin *self
); AgApplication * ap_application_plugin_get_application (ApApplicationPlugin *self
); const GError * ap_application_plugin_get_error (ApApplicationPlugin *self
); void ap_application_plugin_set_error (ApApplicationPlugin *self
,const GError *error
); void ap_application_plugin_emit_finished (ApApplicationPlugin *self
);
"account" AgAccount* : Read / Write / Construct Only "application" AgApplication* : Read / Write / Construct Only
Application plugins for the credentials panel of the GNOME control center
need to subclass ApApplicationPlugin and implement its build_widget()
virtual method.
This method will be called by the credentials panel when it needs to show a
UI to edit the application-specific settings of the account.
typedef struct _ApApplicationPlugin ApApplicationPlugin;
Use the accessor functions below.
GtkWidget * ap_application_plugin_build_widget (ApApplicationPlugin *self
);
Build a UI widget to edit the application-specific account settings on the AgAccount associated with this plugin. The plugin must emit the "finished" signal once the widget has completed its tasks and can be destroyed.
|
the ApApplicationPlugin. |
Returns : |
a GtkWidget which till take care of
performing the needed tasks, or NULL . [transfer floating]
|
AgAccount * ap_application_plugin_get_account (ApApplicationPlugin *self
);
Get the AgAccount associated with this application_plugin instance.
|
the ApApplicationPlugin. |
Returns : |
the AgAccount, or NULL . [transfer none]
|
AgApplication * ap_application_plugin_get_application
(ApApplicationPlugin *self
);
Get the AgApplication associated with this plugin instance.
|
the ApApplicationPlugin. |
Returns : |
the AgApplication, or NULL . [transfer none]
|
const GError * ap_application_plugin_get_error (ApApplicationPlugin *self
);
Get whether the requested operation ended in an error.
|
the ApApplicationPlugin. |
Returns : |
a GError if an error occurred, NULL otherwise. [transfer none]
|
void ap_application_plugin_set_error (ApApplicationPlugin *self
,const GError *error
);
Tell the application plugin that the requested operation ended in an error. This method should be called by ApApplicationPlugin subclasses only.
|
the ApApplicationPlugin. |
|
the GError to set on the plugin. |
void ap_application_plugin_emit_finished (ApApplicationPlugin *self
);
Emits the "finished" signal. This method is useful for subclasses only.
|
the ApApplicationPlugin. |
"account"
property "account" AgAccount* : Read / Write / Construct Only
The AgAccount associated with the plugin.
"finished"
signalvoid user_function (ApApplicationPlugin *self,
gpointer user_data) : Run Last
Emitted when the plugin UI has completed its task and can be dismissed.
|
the ApApplicationPlugin. |
|
user data set when the signal handler was connected. |