1 /* |
|
2 * tp-constants.h - constants used in telepathy |
|
3 * Copyright (C) 2005 Collabora Ltd. |
|
4 * |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Lesser General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2.1 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Lesser General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Lesser General Public |
|
17 * License along with this library; if not, write to the Free Software |
|
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
19 */ |
|
20 |
|
21 #ifndef __TELEPATHY_CONSTANTS_H__ |
|
22 #define __TELEPATHY_CONSTANTS_H__ |
|
23 |
|
24 #include <glib.h> |
|
25 G_BEGIN_DECLS |
|
26 |
|
27 typedef enum { |
|
28 TP_CONN_ALIAS_FLAG_USER_SET = 1, |
|
29 LAST_TP_CONN_ALIAS_FLAG |
|
30 } ConnectionAliasFlags; |
|
31 |
|
32 typedef enum { |
|
33 TP_CONN_CAPABILITY_TYPE_CREATE = 0, |
|
34 TP_CONN_CAPABILITY_TYPE_INVITE = 1, |
|
35 LAST_TP_CONN_CAPABILITY_TYPE |
|
36 } TelepathyConnectionCapabilityType; |
|
37 |
|
38 typedef enum { |
|
39 TP_CONN_HANDLE_TYPE_NONE = 0, |
|
40 TP_CONN_HANDLE_TYPE_CONTACT = 1, |
|
41 TP_CONN_HANDLE_TYPE_ROOM = 2, |
|
42 TP_CONN_HANDLE_TYPE_LIST = 3, |
|
43 LAST_TP_CONN_HANDLE_TYPE |
|
44 } TelepathyConnectionHandleType; |
|
45 |
|
46 typedef enum { |
|
47 TP_CONN_PRESENCE_TYPE_UNSET = 0, |
|
48 TP_CONN_PRESENCE_TYPE_OFFLINE = 1, |
|
49 TP_CONN_PRESENCE_TYPE_AVAILABLE = 2, |
|
50 TP_CONN_PRESENCE_TYPE_AWAY = 3, |
|
51 TP_CONN_PRESENCE_TYPE_EXTENDED_AWAY = 4, |
|
52 TP_CONN_PRESENCE_TYPE_HIDDEN = 5, |
|
53 LAST_TP_CONN_PRESENCE_TYPE |
|
54 } TelepathyConnectionPresenceType; |
|
55 |
|
56 typedef enum { |
|
57 TP_CONN_STATUS_CONNECTED = 0, |
|
58 TP_CONN_STATUS_CONNECTING = 1, |
|
59 TP_CONN_STATUS_DISCONNECTED = 2, |
|
60 LAST_TP_CONN_STATUS |
|
61 } TelepathyConnectionStatus; |
|
62 |
|
63 typedef enum { |
|
64 TP_CONN_STATUS_REASON_NONE_SPECIFIED = 0, |
|
65 TP_CONN_STATUS_REASON_REQUESTED = 1, |
|
66 TP_CONN_STATUS_REASON_NETWORK_ERROR = 2, |
|
67 TP_CONN_STATUS_REASON_AUTHENTICATION_FAILED = 3, |
|
68 TP_CONN_STATUS_REASON_ENCRYPTION_ERROR = 4, |
|
69 TP_CONN_STATUS_REASON_NAME_IN_USE = 5, |
|
70 TP_CONN_STATUS_REASON_CERT_NOT_PROVIDED = 6, |
|
71 TP_CONN_STATUS_REASON_CERT_UNTRUSTED = 7, |
|
72 TP_CONN_STATUS_REASON_CERT_EXPIRED = 8, |
|
73 TP_CONN_STATUS_REASON_CERT_NOT_ACTIVATED = 9, |
|
74 TP_CONN_STATUS_REASON_CERT_HOSTNAME_MISMATCH = 10, |
|
75 TP_CONN_STATUS_REASON_CERT_FINGERPRINT_MISMATCH = 11, |
|
76 TP_CONN_STATUS_REASON_CERT_SELF_SIGNED = 12, |
|
77 TP_CONN_STATUS_REASON_CERT_OTHER_ERROR = 13, |
|
78 LAST_TP_CONN_STATUS_REASON |
|
79 } TelepathyConnectionStatusReason; |
|
80 |
|
81 typedef enum { |
|
82 TP_CHANNEL_CONTACT_SEARCH_STATE_BEFORE = 0, |
|
83 TP_CHANNEL_CONTACT_SEARCH_STATE_DURING = 1, |
|
84 TP_CHANNEL_CONTACT_SEARCH_STATE_AFTER = 2, |
|
85 LAST_TP_CHANNEL_CONTACT_SEARCH_STATE |
|
86 } TelepathyChannelContactSearchState; |
|
87 |
|
88 typedef enum { |
|
89 TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL = 0, |
|
90 TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION = 1, |
|
91 TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE = 2, |
|
92 TP_CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY = 3, |
|
93 LAST_TP_CHANNEL_TEXT_MESSAGE_TYPE |
|
94 } TelepathyChannelTextMessageType; |
|
95 |
|
96 typedef enum { |
|
97 TP_CHANNEL_TEXT_SEND_ERROR_UNKNOWN = 0, |
|
98 TP_CHANNEL_TEXT_SEND_ERROR_OFFLINE = 1, |
|
99 TP_CHANNEL_TEXT_SEND_ERROR_INVALID_CONTACT = 2, |
|
100 TP_CHANNEL_TEXT_SEND_ERROR_PERMISSION_DENIED = 3, |
|
101 TP_CHANNEL_TEXT_SEND_ERROR_TOO_LONG = 4, |
|
102 LAST_TP_CHANNEL_TEXT_SEND_ERROR |
|
103 } TelepathyChannelTextSendError; |
|
104 |
|
105 typedef enum { |
|
106 TP_CHANNEL_GROUP_FLAG_CAN_ADD = 1, |
|
107 TP_CHANNEL_GROUP_FLAG_CAN_REMOVE = 2, |
|
108 TP_CHANNEL_GROUP_FLAG_CAN_RESCIND = 4, |
|
109 TP_CHANNEL_GROUP_FLAG_MESSAGE_ADD = 8, |
|
110 TP_CHANNEL_GROUP_FLAG_MESSAGE_REMOVE = 16, |
|
111 TP_CHANNEL_GROUP_FLAG_MESSAGE_ACCEPT = 32, |
|
112 TP_CHANNEL_GROUP_FLAG_MESSAGE_REJECT = 64, |
|
113 TP_CHANNEL_GROUP_FLAG_MESSAGE_RESCIND = 128, |
|
114 TP_CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES = 256, |
|
115 LAST_TP_CHANNEL_GROUP_FLAG |
|
116 } TelepathyChannelGroupFlags; |
|
117 |
|
118 typedef enum { |
|
119 TP_CHANNEL_HOLD_STATE_NONE = 0, |
|
120 TP_CHANNEL_HOLD_STATE_SEND_ONLY = 1, |
|
121 TP_CHANNEL_HOLD_STATE_RECV_ONLY = 2, |
|
122 TP_CHANNEL_HOLD_STATE_BOTH = 3, |
|
123 LAST_TP_CHANNEL_HOLD_STATE |
|
124 } TelepathyChannelHoldState; |
|
125 |
|
126 typedef enum { |
|
127 TP_CHANNEL_PASSWORD_FLAG_REQUIRED = 1, |
|
128 TP_CHANNEL_PASSWORD_FLAG_VISIBLE = 2, |
|
129 TP_CHANNEL_PASSWORD_FLAG_MODIFIABLE = 4, |
|
130 TP_CHANNEL_PASSWORD_FLAG_PROVIDE = 8, |
|
131 LAST_TP_CHANNEL_PASSWORD_FLAG |
|
132 } TelepathyChannelPasswordFlags; |
|
133 |
|
134 typedef enum { |
|
135 TP_CHANNEL_SUBJECT_FLAG_PRESENT = 1, |
|
136 TP_CHANNEL_SUBJECT_FLAG_MODIFIABLE = 2, |
|
137 LAST_TP_CHANNEL_SUBJECT_FLAG |
|
138 } TelepathyChannelSubjectFlags; |
|
139 |
|
140 typedef enum { |
|
141 TP_MEDIA_STREAM_TYPE_AUDIO = 0, |
|
142 TP_MEDIA_STREAM_TYPE_VIDEO = 1, |
|
143 LAST_TP_MEDIA_STREAM_TYPE |
|
144 } TelepathyMediaStreamType; |
|
145 |
|
146 typedef enum { |
|
147 TP_MEDIA_STREAM_DIRECTION_NONE = 0, |
|
148 TP_MEDIA_STREAM_DIRECTION_SEND = 1, |
|
149 TP_MEDIA_STREAM_DIRECTION_RECIEVE = 2, |
|
150 TP_MEDIA_STREAM_DIRECTION_BIDIRECTIONAL = 3, |
|
151 LAST_TP_MEDIA_STREAM_DIRECTION |
|
152 } TelepathyMediaStreamDirection; |
|
153 |
|
154 typedef enum { |
|
155 TP_MEDIA_STREAM_ERROR_UNKNOWN = 0, |
|
156 TP_MEDIA_STREAM_ERROR_EOS = 1, |
|
157 LAST_TP_MEDIA_STREAM_ERROR |
|
158 } TelepathyMediaStreamError; |
|
159 |
|
160 typedef enum { |
|
161 TP_MEDIA_STREAM_PROTO_UDP = 0, |
|
162 TP_MEDIA_STREAM_PROTO_TCP = 1, |
|
163 LAST_TP_MEDIA_STREAM_PROTO |
|
164 } TelepathyMediaStreamProto; |
|
165 |
|
166 typedef enum { |
|
167 TP_MEDIA_STREAM_TRANSPORT_TYPE_LOCAL = 0, |
|
168 TP_MEDIA_STREAM_TRANSPORT_TYPE_DERIVED = 1, |
|
169 TP_MEDIA_STREAM_TRANSPORT_TYPE_RELAY = 2, |
|
170 LAST_TP_MEDIA_STREAM_TRANSPORT_TYPE |
|
171 } TelepathyMediaStreamTransportType; |
|
172 |
|
173 typedef enum { |
|
174 TP_CODEC_MEDIA_TYPE_AUDIO = 0, |
|
175 TP_CODEC_MEDIA_TYPE_VIDEO = 1, |
|
176 } TelepathyCodecMediaType; |
|
177 |
|
178 typedef enum { |
|
179 TP_MEDIA_STREAM_STATE_STOPPED = 0, |
|
180 TP_MEDIA_STREAM_STATE_PLAYING = 1, |
|
181 TP_MEDIA_STREAM_STATE_CONNECTING = 2, |
|
182 TP_MEDIA_STREAM_STATE_CONNECTED = 3 |
|
183 } TelepathyMediaStreamState; |
|
184 |
|
185 typedef enum { |
|
186 TP_PROPERTY_FLAG_READ = 1, |
|
187 TP_PROPERTY_FLAG_WRITE = 2 |
|
188 } TelepathyPropertyFlags; |
|
189 |
|
190 G_END_DECLS |
|
191 |
|
192 |
|
193 #endif |
|