OssoABookAddUsernameDialog

OssoABookAddUsernameDialog — Add a new account to a contact.

Synopsis

                    OssoABookAddUsernameDialog;

enum                OssoABookAddUsernameDialogMode;
const GEnumValue*   osso_abook_add_username_dialog_mode_from_name
                                                        (const char *name);
const GEnumValue*   osso_abook_add_username_dialog_mode_from_nick
                                                        (const char *nick);
const char*         osso_abook_add_username_dialog_mode_get_name
                                                        (OssoABookAddUsernameDialogMode value);
const char*         osso_abook_add_username_dialog_mode_get_nick
                                                        (OssoABookAddUsernameDialogMode value);

Description

OssoABookAddUsernameDialog is a dialog that allows the user to add a new account to an existing OssoABookContact.

It can be used to add both IM usernames (bound to an IM account), or email addresses.

Details

OssoABookAddUsernameDialog

typedef struct {
        GtkDialog parent;
        OssoABookAddUsernameDialogPrivate *priv;
} OssoABookAddUsernameDialog;

All the fields of this structure are private to the object's implementation and should never be accessed directly.


enum OssoABookAddUsernameDialogMode

typedef enum {
        OSSO_ABOOK_ADD_USERNAME_DIALOG_MODE_CHAT,
        OSSO_ABOOK_ADD_USERNAME_DIALOG_MODE_VOIP,
        OSSO_ABOOK_ADD_USERNAME_DIALOG_MODE_EMAIL
} OssoABookAddUsernameDialogMode;

What type of account will be added to the contact.

OSSO_ABOOK_ADD_USERNAME_DIALOG_MODE_CHAT Add a chat username
OSSO_ABOOK_ADD_USERNAME_DIALOG_MODE_VOIP Add a VOIP/call username
OSSO_ABOOK_ADD_USERNAME_DIALOG_MODE_EMAIL Add an email address

osso_abook_add_username_dialog_mode_from_name ()

const GEnumValue*   osso_abook_add_username_dialog_mode_from_name
                                                        (const char *name);

Looks up the description of the OssoABookAddUsernameDialogMode member with that full name.

name : the full name of a OssoABookAddUsernameDialogMode member
Returns : A GEnumValue when name is valid, NULL otherwise.

osso_abook_add_username_dialog_mode_from_nick ()

const GEnumValue*   osso_abook_add_username_dialog_mode_from_nick
                                                        (const char *nick);

Looks up the description of the OssoABookAddUsernameDialogMode member with that nick name.

nick : the nick name of a OssoABookAddUsernameDialogMode member
Returns : A GEnumValue when nick is valid, NULL otherwise.

osso_abook_add_username_dialog_mode_get_name ()

const char*         osso_abook_add_username_dialog_mode_get_name
                                                        (OssoABookAddUsernameDialogMode value);

Retreives the full name of a OssoABookAddUsernameDialogMode member.

value : the a OssoABookAddUsernameDialogMode member
Returns : The full name for value, or NULL if there is no such member.

osso_abook_add_username_dialog_mode_get_nick ()

const char*         osso_abook_add_username_dialog_mode_get_nick
                                                        (OssoABookAddUsernameDialogMode value);

Retreives the nick name of a OssoABookAddUsernameDialogMode member.

value : the a OssoABookAddUsernameDialogMode member
Returns : The nick name for value, or NULL if there is no such member.