OssoABookSendContactsDialog

OssoABookSendContactsDialog — Functions to send a vcard via Bluetooth/Email/SMS.

Synopsis

                    OssoABookSendContactsDialog;
GtkWidget*          osso_abook_send_contacts_dialog_new (GtkWindow *parent,
                                                         OssoABookContact *contact,
                                                         gboolean is_detail);
void                osso_abook_send_contacts_bluetooth  (OssoABookContact *contact,
                                                         gboolean send_avatar);
void                osso_abook_send_contacts_email      (OssoABookContact *contact,
                                                         gboolean send_avatar);
void                osso_abook_send_contacts_sms        (OssoABookContact *contact);
void                osso_abook_send_contacts_detail_dialog
                                                        (OssoABookContact *contact,
                                                         OssoABookContactDetailFilters filters,
                                                         GtkWindow *parent_window);
void                osso_abook_send_contacts_detail_dialog_default
                                                        (OssoABookContact *contact,
                                                         GtkWindow *parent_window);

Object Hierarchy

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

Implemented Interfaces

OssoABookSendContactsDialog implements AtkImplementorIface and GtkBuildable.

Properties

  "contact"                  OssoABookContact*     : Read / Write
  "is-detail"                gboolean              : Read / Write / Construct Only

Description

This class provides a dialog that can be used to send a vcard or a part of a vcard to others. The vcard can be sent via a variety of methods, including Bluetooth, Email, or SMS.

Details

OssoABookSendContactsDialog

typedef struct _OssoABookSendContactsDialog OssoABookSendContactsDialog;

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


osso_abook_send_contacts_dialog_new ()

GtkWidget*          osso_abook_send_contacts_dialog_new (GtkWindow *parent,
                                                         OssoABookContact *contact,
                                                         gboolean is_detail);

Creates a new OssoABookSendContactsDialog

parent : a parent GtkWindow to make this dialog transient for
contact : a contact whose vcard should be sent
is_detail : whether contact is a full contact or just a single detail

osso_abook_send_contacts_bluetooth ()

void                osso_abook_send_contacts_bluetooth  (OssoABookContact *contact,
                                                         gboolean send_avatar);

Sends a vCard of contact over bluetooth. A dialog will be shown to allow the user to select the device to send to. If send_avatar is TRUE and contact has an avatar image specified, the avatar will be included inline in the vCard, else it will be omitted.

contact : a OssoABookContact to send
send_avatar : whether to include the avatar image

osso_abook_send_contacts_email ()

void                osso_abook_send_contacts_email      (OssoABookContact *contact,
                                                         gboolean send_avatar);

Sends a vCard of contact via email. If send_avatar is TRUE and contact has an avatar image specified, the avatar will be included inline in the vCard, else it will be omitted. A new email message will be opened and the contact's vcard will be attached.

contact : a OssoABookContact to send
send_avatar : whether to include the avatar image

osso_abook_send_contacts_sms ()

void                osso_abook_send_contacts_sms        (OssoABookContact *contact);

Sends a vCard of contact via SMS. The avatar image will be ommitted in order to avoid sending too much data via SMS message. A new SMS message dialog will be displayed with the vcard attached. The user can then choose the recipient of the SMS message.

contact : a OssoABookContact to send

osso_abook_send_contacts_detail_dialog ()

void                osso_abook_send_contacts_detail_dialog
                                                        (OssoABookContact *contact,
                                                         OssoABookContactDetailFilters filters,
                                                         GtkWindow *parent_window);

Convenience function for sending a single detail about contact. This function first presents a OssoABookContactDetailSelector dialog so that the user can choose a particular detail for contact. If a detail is chosen, if then presents a OssoABookSendContactsDialog so the user an choose how to send that detail. filters can be used to limit the details that are available to be chosen.

contact : a OssoABookContact to send
filters : filters for details
parent_window : a parent GtkWindow to set dialogs transient for

osso_abook_send_contacts_detail_dialog_default ()

void                osso_abook_send_contacts_detail_dialog_default
                                                        (OssoABookContact *contact,
                                                         GtkWindow *parent_window);

Same as osso_abook_send_contacts_detail_dialog() but does not filter the list of details at all.

contact : a OssoABookContact to send
parent_window : a parent GtkWindow to set dialogs transient for

Property Details

The "contact" property

  "contact"                  OssoABookContact*     : Read / Write

The contact that need to be sent.


The "is-detail" property

  "is-detail"                gboolean              : Read / Write / Construct Only

Are we sending a contact detail.

Default value: FALSE