OssoABookTemporaryContactDialog

OssoABookTemporaryContactDialog — Dialog for starting actions from a temporary contact

Synopsis

                    OssoABookTemporaryContactDialog;
GtkWidget*          osso_abook_temporary_contact_dialog_new
                                                        (GtkWindow *parent,
                                                         EBook *book,
                                                         EVCardAttribute *attribute,
                                                         McAccount *account);
GtkWidget*          osso_abook_temporary_contact_dialog_new_with_contact
                                                        (GtkWindow *parent,
                                                         OssoABookContact *contact);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkDialog
                                             +----OssoABookTemporaryContactDialog

Implemented Interfaces

OssoABookTemporaryContactDialog implements AtkImplementorIface and GtkBuildable.

Properties

  "account"                  McAccount*            : Read / Write / Construct Only
  "attribute"                EVCardAttribute*      : Read / Write / Construct Only
  "tmp-contact"              OssoABookContact*     : Read / Write / Construct Only

Signals

  "contact-saved"                                  : Run Last

Description

This class provides a dialog to display details about a temporary contact or contact fragment that is not in the system addressbook. For example, a vcard email attachment or an unknown phone number in the recent contacts list are temporary contacts.

Details

OssoABookTemporaryContactDialog

typedef struct _OssoABookTemporaryContactDialog OssoABookTemporaryContactDialog;

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


osso_abook_temporary_contact_dialog_new ()

GtkWidget*          osso_abook_temporary_contact_dialog_new
                                                        (GtkWindow *parent,
                                                         EBook *book,
                                                         EVCardAttribute *attribute,
                                                         McAccount *account);

Creates a new OssoABookTemporaryContactDialog to display the contact fragment represented by attribute

parent : an optional parent GtkWindow
book : an optional EBook related to temporary contact detail
attribute : a contact detail to display
account : an optional account associated with this detail

osso_abook_temporary_contact_dialog_new_with_contact ()

GtkWidget*          osso_abook_temporary_contact_dialog_new_with_contact
                                                        (GtkWindow *parent,
                                                         OssoABookContact *contact);

Creates a new OssoABookTemporaryContactDialog to display contact

parent : an optional parent GtkWindow
contact : the contact to display

Property Details

The "account" property

  "account"                  McAccount*            : Read / Write / Construct Only

The account of the temporary contact if any.


The "attribute" property

  "attribute"                EVCardAttribute*      : Read / Write / Construct Only

The temporary attribute.


The "tmp-contact" property

  "tmp-contact"              OssoABookContact*     : Read / Write / Construct Only

The temporary contact.

Signal Details

The "contact-saved" signal

gboolean            user_function                      (OssoABookTemporaryContactDialog *dialog,
                                                        gchar                           *uid,
                                                        gpointer                         user_data)      : Run Last

This signal is emitted when the dialog's temporary contact is saved as a new contact (not merged). The callback should return TRUE if processing of the event is complete (so any remaining signal handlers will not be called).

dialog : an OssoABookTemporaryContactDialog
uid : the UID of the OssoABookContact saved
user_data : user data set when the signal handler was connected.