![]() |
![]() |
![]() |
Osso Addressbook Reference Manual | ![]() |
---|---|---|---|---|
OssoABookCaps; enum OssoABookCapsFlags; OssoABookCapsIface; OssoABookCapsFlags osso_abook_caps_get_capabilities (OssoABookCaps *caps); OssoABookCapsFlags osso_abook_caps_get_static_capabilities (OssoABookCaps *caps); OssoABookCapsFlags osso_abook_caps_from_account (McAccount *account);
OssoABookCaps is implemented by OssoABookContact, OssoABookGconfContact, OssoABookSelfContact and OssoABookVoicemailContact.
typedef struct _OssoABookCaps OssoABookCaps;
Dummy type for the OssoABookCaps interface.
typedef enum { OSSO_ABOOK_CAPS_NONE = (0), OSSO_ABOOK_CAPS_EMAIL = (1 << 0), OSSO_ABOOK_CAPS_CHAT = (1 << 1), OSSO_ABOOK_CAPS_CHAT_ADDITIONAL = (1 << 2), OSSO_ABOOK_CAPS_VOICE = (1 << 3), OSSO_ABOOK_CAPS_VOICE_ADDITIONAL = (1 << 4), OSSO_ABOOK_CAPS_VIDEO = (1 << 5), OSSO_ABOOK_CAPS_PHONE = (1 << 6), OSSO_ABOOK_CAPS_ADDRESSBOOK = (1 << 7), OSSO_ABOOK_CAPS_ALL = (OSSO_ABOOK_CAPS_EMAIL | OSSO_ABOOK_CAPS_CHAT | OSSO_ABOOK_CAPS_VOICE | OSSO_ABOOK_CAPS_VIDEO | OSSO_ABOOK_CAPS_PHONE) } OssoABookCapsFlags;
Various capabilities of communication channels.
typedef struct { OssoABookCapsFlags (* get_capabilities) (OssoABookCaps *caps); OssoABookCapsFlags (* get_static_capabilities) (OssoABookCaps *caps); } OssoABookCapsIface;
Virtual methods of the OssoABookCaps interface.
get_capabilities () |
virtual method for osso_abook_caps_get_capabilities()
|
get_static_capabilities () |
virtual method for osso_abook_caps_get_static_capabilities()
|
OssoABookCapsFlags osso_abook_caps_get_capabilities (OssoABookCaps *caps);
Queries the current capabilities of the object. This capabilities are retrieved dynamically from some actively established connection.
caps : |
a OssoABookCaps |
Returns : | OssoABookCapsFlags. |
OssoABookCapsFlags osso_abook_caps_get_static_capabilities (OssoABookCaps *caps);
Queries the static capabilities of the object. Those capabilities usually are hard-coded or retrieved from configuration files, and might be much broader than reality.
caps : |
a OssoABookCaps |
Returns : | OssoABookCapsFlags. |
OssoABookCapsFlags osso_abook_caps_from_account (McAccount *account);