![]() |
![]() |
![]() |
telepathy-glib Reference Manual | ![]() |
---|---|---|---|---|
Telepathy protocol enumerationsTelepathy protocol enumerations — Enumerated types and bitfields from the Telepathy spec |
#include <telepathy-glib/enums.h> enum TpHandleType; #define NUM_TP_HANDLE_TYPES enum TpConnMgrParamFlags; enum TpConnectionStatus; #define NUM_TP_CONNECTION_STATUSES enum TpConnectionStatusReason; #define NUM_TP_CONNECTION_STATUS_REASONS enum TpConnectionAliasFlags; enum TpConnectionCapabilityFlags; enum TpConnectionPresenceType; #define NUM_TP_CONNECTION_PRESENCE_TYPES enum TpDTMFEvent; #define NUM_TP_DTMF_EVENTS enum TpMediaStreamType; #define NUM_TP_MEDIA_STREAM_TYPES enum TpMediaStreamState; #define NUM_TP_MEDIA_STREAM_STATES enum TpMediaStreamDirection; #define NUM_TP_MEDIA_STREAM_DIRECTIONS enum TpMediaStreamPendingSend; enum TpChannelMediaCapabilities; enum TpChannelTextSendError; #define NUM_TP_CHANNEL_TEXT_SEND_ERRORS enum TpChannelTextMessageType; #define NUM_TP_CHANNEL_TEXT_MESSAGE_TYPES enum TpChannelTextMessageFlags; enum TpChannelChatState; #define NUM_TP_CHANNEL_CHAT_STATES enum TpChannelGroupFlags; enum TpChannelGroupChangeReason; #define NUM_TP_CHANNEL_GROUP_CHANGE_REASONS enum TpChannelPasswordFlags; enum TpMediaStreamError; #define NUM_TP_MEDIA_STREAM_ERRORS enum TpMediaStreamBaseProto; #define NUM_TP_MEDIA_STREAM_BASE_PROTOS enum TpMediaStreamTransportType; #define NUM_TP_MEDIA_STREAM_TRANSPORT_TYPES enum TpPropertyFlags;
This header exposes the constants from the Telepathy specification as C enums. It is automatically generated from the specification.
The names used in the specification (e.g. Connection_Status_Connected) are converted to upper-case and given a TP_ prefix, e.g. TP_CONNECTION_STATUS_CONNECTED.
Each enum also has a constant for the number of members, named like NUM_TP_CONNECTION_STATUSES. The pluralization is currently hard-coded in the conversion scripts, but should move into the specification in future.
Constants LAST_TP_CONNECTION_STATUS, etc. are also provided. These are deprecated and will be removed in a future release.
typedef enum { TP_HANDLE_TYPE_NONE = 0, TP_HANDLE_TYPE_CONTACT = 1, TP_HANDLE_TYPE_ROOM = 2, TP_HANDLE_TYPE_LIST = 3, TP_HANDLE_TYPE_GROUP = 4, } TpHandleType;
Enumeration generated from the Telepathy specification.
#define NUM_TP_HANDLE_TYPES
1 higher than the highest valid value of TpHandleType.
typedef enum { TP_CONN_MGR_PARAM_FLAG_REQUIRED = 1, TP_CONN_MGR_PARAM_FLAG_REGISTER = 2, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT = 4, } TpConnMgrParamFlags;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CONNECTION_STATUS_CONNECTED = 0, TP_CONNECTION_STATUS_CONNECTING = 1, TP_CONNECTION_STATUS_DISCONNECTED = 2, } TpConnectionStatus;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CONNECTION_STATUSES
1 higher than the highest valid value of TpConnectionStatus.
typedef enum { TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED = 0, TP_CONNECTION_STATUS_REASON_REQUESTED = 1, TP_CONNECTION_STATUS_REASON_NETWORK_ERROR = 2, TP_CONNECTION_STATUS_REASON_AUTHENTICATION_FAILED = 3, TP_CONNECTION_STATUS_REASON_ENCRYPTION_ERROR = 4, TP_CONNECTION_STATUS_REASON_NAME_IN_USE = 5, TP_CONNECTION_STATUS_REASON_CERT_NOT_PROVIDED = 6, TP_CONNECTION_STATUS_REASON_CERT_UNTRUSTED = 7, TP_CONNECTION_STATUS_REASON_CERT_EXPIRED = 8, TP_CONNECTION_STATUS_REASON_CERT_NOT_ACTIVATED = 9, TP_CONNECTION_STATUS_REASON_CERT_HOSTNAME_MISMATCH = 10, TP_CONNECTION_STATUS_REASON_CERT_FINGERPRINT_MISMATCH = 11, TP_CONNECTION_STATUS_REASON_CERT_SELF_SIGNED = 12, TP_CONNECTION_STATUS_REASON_CERT_OTHER_ERROR = 13, } TpConnectionStatusReason;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CONNECTION_STATUS_REASONS
1 higher than the highest valid value of TpConnectionStatusReason.
typedef enum { TP_CONNECTION_ALIAS_FLAG_USER_SET = 1, } TpConnectionAliasFlags;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CONNECTION_CAPABILITY_FLAG_CREATE = 1, TP_CONNECTION_CAPABILITY_FLAG_INVITE = 2, } TpConnectionCapabilityFlags;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CONNECTION_PRESENCE_TYPE_UNSET = 0, TP_CONNECTION_PRESENCE_TYPE_OFFLINE = 1, TP_CONNECTION_PRESENCE_TYPE_AVAILABLE = 2, TP_CONNECTION_PRESENCE_TYPE_AWAY = 3, TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY = 4, TP_CONNECTION_PRESENCE_TYPE_HIDDEN = 5, } TpConnectionPresenceType;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CONNECTION_PRESENCE_TYPES
1 higher than the highest valid value of TpConnectionPresenceType.
typedef enum { TP_DTMF_EVENT_DIGIT_0 = 0, TP_DTMF_EVENT_DIGIT_1 = 1, TP_DTMF_EVENT_DIGIT_2 = 2, TP_DTMF_EVENT_DIGIT_3 = 3, TP_DTMF_EVENT_DIGIT_4 = 4, TP_DTMF_EVENT_DIGIT_5 = 5, TP_DTMF_EVENT_DIGIT_6 = 6, TP_DTMF_EVENT_DIGIT_7 = 7, TP_DTMF_EVENT_DIGIT_8 = 8, TP_DTMF_EVENT_DIGIT_9 = 9, TP_DTMF_EVENT_ASTERISK = 10, TP_DTMF_EVENT_HASH = 11, TP_DTMF_EVENT_LETTER_A = 12, TP_DTMF_EVENT_LETTER_B = 13, TP_DTMF_EVENT_LETTER_C = 14, TP_DTMF_EVENT_LETTER_D = 15, } TpDTMFEvent;
Enumeration generated from the Telepathy specification.
typedef enum { TP_MEDIA_STREAM_TYPE_AUDIO = 0, TP_MEDIA_STREAM_TYPE_VIDEO = 1, } TpMediaStreamType;
Enumeration generated from the Telepathy specification.
#define NUM_TP_MEDIA_STREAM_TYPES
1 higher than the highest valid value of TpMediaStreamType.
typedef enum { TP_MEDIA_STREAM_STATE_DISCONNECTED = 0, TP_MEDIA_STREAM_STATE_CONNECTING = 1, TP_MEDIA_STREAM_STATE_CONNECTED = 2, } TpMediaStreamState;
Enumeration generated from the Telepathy specification.
#define NUM_TP_MEDIA_STREAM_STATES
1 higher than the highest valid value of TpMediaStreamState.
typedef enum { TP_MEDIA_STREAM_DIRECTION_NONE = 0, TP_MEDIA_STREAM_DIRECTION_SEND = 1, TP_MEDIA_STREAM_DIRECTION_RECEIVE = 2, TP_MEDIA_STREAM_DIRECTION_BIDIRECTIONAL = 3, } TpMediaStreamDirection;
Enumeration generated from the Telepathy specification.
#define NUM_TP_MEDIA_STREAM_DIRECTIONS
1 higher than the highest valid value of TpMediaStreamDirection.
typedef enum { TP_MEDIA_STREAM_PENDING_LOCAL_SEND = 1, TP_MEDIA_STREAM_PENDING_REMOTE_SEND = 2, } TpMediaStreamPendingSend;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CHANNEL_MEDIA_CAPABILITY_AUDIO = 1, TP_CHANNEL_MEDIA_CAPABILITY_VIDEO = 2, TP_CHANNEL_MEDIA_CAPABILITY_NAT_TRAVERSAL_STUN = 4, TP_CHANNEL_MEDIA_CAPABILITY_NAT_TRAVERSAL_GTALK_P2P = 8, } TpChannelMediaCapabilities;
The channel-type-specific capability flags used for Channel.Type.StreamedMedia in the Connection.Interface.Capabilities interface.
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CHANNEL_TEXT_SEND_ERROR_UNKNOWN = 0, TP_CHANNEL_TEXT_SEND_ERROR_OFFLINE = 1, TP_CHANNEL_TEXT_SEND_ERROR_INVALID_CONTACT = 2, TP_CHANNEL_TEXT_SEND_ERROR_PERMISSION_DENIED = 3, TP_CHANNEL_TEXT_SEND_ERROR_TOO_LONG = 4, TP_CHANNEL_TEXT_SEND_ERROR_NOT_IMPLEMENTED = 5, } TpChannelTextSendError;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CHANNEL_TEXT_SEND_ERRORS
1 higher than the highest valid value of TpChannelTextSendError.
typedef enum { TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL = 0, TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION = 1, TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE = 2, TP_CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY = 3, } TpChannelTextMessageType;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CHANNEL_TEXT_MESSAGE_TYPES
1 higher than the highest valid value of TpChannelTextMessageType.
typedef enum { TP_CHANNEL_TEXT_MESSAGE_FLAG_TRUNCATED = 1, } TpChannelTextMessageFlags;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CHANNEL_CHAT_STATE_GONE = 0, TP_CHANNEL_CHAT_STATE_INACTIVE = 1, TP_CHANNEL_CHAT_STATE_ACTIVE = 2, TP_CHANNEL_CHAT_STATE_PAUSED = 3, TP_CHANNEL_CHAT_STATE_COMPOSING = 4, } TpChannelChatState;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CHANNEL_CHAT_STATES
1 higher than the highest valid value of TpChannelChatState.
typedef enum { TP_CHANNEL_GROUP_FLAG_CAN_ADD = 1, TP_CHANNEL_GROUP_FLAG_CAN_REMOVE = 2, TP_CHANNEL_GROUP_FLAG_CAN_RESCIND = 4, TP_CHANNEL_GROUP_FLAG_MESSAGE_ADD = 8, TP_CHANNEL_GROUP_FLAG_MESSAGE_REMOVE = 16, TP_CHANNEL_GROUP_FLAG_MESSAGE_ACCEPT = 32, TP_CHANNEL_GROUP_FLAG_MESSAGE_REJECT = 64, TP_CHANNEL_GROUP_FLAG_MESSAGE_RESCIND = 128, TP_CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES = 256, TP_CHANNEL_GROUP_FLAG_ONLY_ONE_GROUP = 512, TP_CHANNEL_GROUP_FLAG_HANDLE_OWNERS_NOT_AVAILABLE = 1024, } TpChannelGroupFlags;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_CHANNEL_GROUP_CHANGE_REASON_NONE = 0, TP_CHANNEL_GROUP_CHANGE_REASON_OFFLINE = 1, TP_CHANNEL_GROUP_CHANGE_REASON_KICKED = 2, TP_CHANNEL_GROUP_CHANGE_REASON_BUSY = 3, TP_CHANNEL_GROUP_CHANGE_REASON_INVITED = 4, TP_CHANNEL_GROUP_CHANGE_REASON_BANNED = 5, TP_CHANNEL_GROUP_CHANGE_REASON_ERROR = 6, TP_CHANNEL_GROUP_CHANGE_REASON_INVALID_CONTACT = 7, TP_CHANNEL_GROUP_CHANGE_REASON_NO_ANSWER = 8, TP_CHANNEL_GROUP_CHANGE_REASON_RENAMED = 9, TP_CHANNEL_GROUP_CHANGE_REASON_PERMISSION_DENIED = 10, } TpChannelGroupChangeReason;
Enumeration generated from the Telepathy specification.
#define NUM_TP_CHANNEL_GROUP_CHANGE_REASONS
1 higher than the highest valid value of TpChannelGroupChangeReason.
typedef enum { TP_CHANNEL_PASSWORD_FLAG_PROVIDE = 8, } TpChannelPasswordFlags;
Bitfield/set of flags generated from the Telepathy specification.
typedef enum { TP_MEDIA_STREAM_ERROR_UNKNOWN = 0, TP_MEDIA_STREAM_ERROR_EOS = 1, } TpMediaStreamError;
Enumeration generated from the Telepathy specification.
#define NUM_TP_MEDIA_STREAM_ERRORS
1 higher than the highest valid value of TpMediaStreamError.
typedef enum { TP_MEDIA_STREAM_BASE_PROTO_UDP = 0, TP_MEDIA_STREAM_BASE_PROTO_TCP = 1, } TpMediaStreamBaseProto;
Enumeration generated from the Telepathy specification.
#define NUM_TP_MEDIA_STREAM_BASE_PROTOS
1 higher than the highest valid value of TpMediaStreamBaseProto.
typedef enum { TP_MEDIA_STREAM_TRANSPORT_TYPE_LOCAL = 0, TP_MEDIA_STREAM_TRANSPORT_TYPE_DERIVED = 1, TP_MEDIA_STREAM_TRANSPORT_TYPE_RELAY = 2, } TpMediaStreamTransportType;
Enumeration generated from the Telepathy specification.
#define NUM_TP_MEDIA_STREAM_TRANSPORT_TYPES
1 higher than the highest valid value of TpMediaStreamTransportType.