Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
enum OssoABookContactEditorMode; OssoABookContactEditor; GtkWidget* osso_abook_contact_editor_new (void); GtkWidget* osso_abook_contact_editor_new_with_contact (GtkWindow *parent, OssoABookContact *contact, OssoABookContactEditorMode mode); void osso_abook_contact_editor_set_contact (OssoABookContactEditor *editor, OssoABookContact *contact); OssoABookContact* osso_abook_contact_editor_get_contact (OssoABookContactEditor *editor); void osso_abook_contact_editor_set_mode (OssoABookContactEditor *editor, OssoABookContactEditorMode mode); OssoABookContactEditorMode osso_abook_contact_editor_get_mode (OssoABookContactEditor *editor);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----OssoABookContactEditor
"contact" OssoABookContact* : Read / Write "mode" OssoABookContactEditorMode : Read / Write
typedef enum { OSSO_ABOOK_CONTACT_EDITOR_CREATE, OSSO_ABOOK_CONTACT_EDITOR_EDIT, OSSO_ABOOK_CONTACT_EDITOR_CREATE_SELF, OSSO_ABOOK_CONTACT_EDITOR_EDIT_SELF, } OssoABookContactEditorMode;
The mode defines the contact editor's behavior.
typedef struct _OssoABookContactEditor OssoABookContactEditor;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
GtkWidget* osso_abook_contact_editor_new (void);
Creates a new OssoABookContactEditor object.
Returns : | A new OssoABookContactEditor object. |
GtkWidget* osso_abook_contact_editor_new_with_contact (GtkWindow *parent, OssoABookContact *contact, OssoABookContactEditorMode mode);
Creates a new OssoABookContactEditor object and initializes some of its properties.
parent : |
the parent window, or NULL
|
contact : |
the contact, or NULL
|
mode : |
operation mode of the dialog |
Returns : | A new OssoABookContactEditor object. |
void osso_abook_contact_editor_set_contact (OssoABookContactEditor *editor, OssoABookContact *contact);
Set the contact to display in the dialog for editing.
editor : |
An OssoABookContactEditor |
contact : |
An OssoABookContact |
OssoABookContact* osso_abook_contact_editor_get_contact (OssoABookContactEditor *editor);
Get the contact this editor is currently displaying.
editor : |
An OssoABookContactEditor |
Returns : | An OssoABookContact |
void osso_abook_contact_editor_set_mode (OssoABookContactEditor *editor, OssoABookContactEditorMode mode);
Change the mode of operation for this OssoABookContactEditor.
editor : |
An OssoABookContactEditor |
mode : |
the new OssoABookContactEditorMode |
OssoABookContactEditorMode osso_abook_contact_editor_get_mode (OssoABookContactEditor *editor);
Queries the operation mode of this OssoABookContactEditor.
editor : |
An OssoABookContactEditor |
Returns : | The OssoABookContactEditorMode of this editor. |
"mode"
property"mode" OssoABookContactEditorMode : Read / Write
Operation mode of the dialog.
Default value: OSSO_ABOOK_CONTACT_EDITOR_EDIT
"contact-deleted"
signalvoid user_function (OssoABookContactEditor *ossoabookcontacteditor, gpointer user_data) : Run Last
"contact-saved"
signalgboolean user_function (OssoABookContactEditor *ossoabookcontacteditor, gchar *arg1, gpointer user_data) : Run Last