| | 1 | ;; -*- scheme -*- |
|---|
| | 2 | ; boxed definitions ... |
|---|
| | 3 | |
|---|
| | 4 | ; interface definitions ... |
|---|
| | 5 | |
|---|
| | 6 | (define-interface Account |
|---|
| | 7 | (in-module "Tny") |
|---|
| | 8 | (c-name "TnyAccount") |
|---|
| | 9 | (gtype-id "TNY_TYPE_ACCOUNT") |
|---|
| | 10 | (prerequisite "GObject") |
|---|
| | 11 | ) |
|---|
| | 12 | |
|---|
| | 13 | (define-interface AccountStore |
|---|
| | 14 | (in-module "Tny") |
|---|
| | 15 | (c-name "TnyAccountStore") |
|---|
| | 16 | (gtype-id "TNY_TYPE_ACCOUNT_STORE") |
|---|
| | 17 | (prerequisite "GObject") |
|---|
| | 18 | ) |
|---|
| | 19 | |
|---|
| | 20 | (define-interface ConnectionPolicy |
|---|
| | 21 | (in-module "Tny") |
|---|
| | 22 | (c-name "TnyConnectionPolicy") |
|---|
| | 23 | (gtype-id "TNY_TYPE_CONNECTION_POLICY") |
|---|
| | 24 | ) |
|---|
| | 25 | |
|---|
| | 26 | (define-interface Device |
|---|
| | 27 | (in-module "Tny") |
|---|
| | 28 | (c-name "TnyDevice") |
|---|
| | 29 | (gtype-id "TNY_TYPE_DEVICE") |
|---|
| | 30 | (prerequisite "GObject") |
|---|
| | 31 | ) |
|---|
| | 32 | |
|---|
| | 33 | (define-interface Folder |
|---|
| | 34 | (in-module "Tny") |
|---|
| | 35 | (c-name "TnyFolder") |
|---|
| | 36 | (gtype-id "TNY_TYPE_FOLDER") |
|---|
| | 37 | (prerequisite "GObject") |
|---|
| | 38 | ) |
|---|
| | 39 | |
|---|
| | 40 | (define-interface FolderObserver |
|---|
| | 41 | (in-module "Tny") |
|---|
| | 42 | (c-name "TnyFolderObserver") |
|---|
| | 43 | (gtype-id "TNY_TYPE_FOLDER_OBSERVER") |
|---|
| | 44 | ) |
|---|
| | 45 | |
|---|
| | 46 | (define-interface FolderStore |
|---|
| | 47 | (in-module "Tny") |
|---|
| | 48 | (c-name "TnyFolderStore") |
|---|
| | 49 | (gtype-id "TNY_TYPE_FOLDER_STORE") |
|---|
| | 50 | ) |
|---|
| | 51 | |
|---|
| | 52 | (define-interface FolderStoreObserver |
|---|
| | 53 | (in-module "Tny") |
|---|
| | 54 | (c-name "TnyFolderStoreObserver") |
|---|
| | 55 | (gtype-id "TNY_TYPE_FOLDER_STORE_OBSERVER") |
|---|
| | 56 | ) |
|---|
| | 57 | |
|---|
| | 58 | (define-interface Header |
|---|
| | 59 | (in-module "Tny") |
|---|
| | 60 | (c-name "TnyHeader") |
|---|
| | 61 | (gtype-id "TNY_TYPE_HEADER") |
|---|
| | 62 | (prerequisite "GObject") |
|---|
| | 63 | ) |
|---|
| | 64 | |
|---|
| | 65 | (define-interface Iterator |
|---|
| | 66 | (in-module "Tny") |
|---|
| | 67 | (c-name "TnyIterator") |
|---|
| | 68 | (gtype-id "TNY_TYPE_ITERATOR") |
|---|
| | 69 | ) |
|---|
| | 70 | |
|---|
| | 71 | (define-interface List |
|---|
| | 72 | (in-module "Tny") |
|---|
| | 73 | (c-name "TnyList") |
|---|
| | 74 | (gtype-id "TNY_TYPE_LIST") |
|---|
| | 75 | ) |
|---|
| | 76 | |
|---|
| | 77 | (define-interface Lockable |
|---|
| | 78 | (in-module "Tny") |
|---|
| | 79 | (c-name "TnyLockable") |
|---|
| | 80 | (gtype-id "TNY_TYPE_LOCKABLE") |
|---|
| | 81 | ) |
|---|
| | 82 | |
|---|
| | 83 | (define-interface MimePart |
|---|
| | 84 | (in-module "Tny") |
|---|
| | 85 | (c-name "TnyMimePart") |
|---|
| | 86 | (gtype-id "TNY_TYPE_MIME_PART") |
|---|
| | 87 | ) |
|---|
| | 88 | |
|---|
| | 89 | (define-interface Msg |
|---|
| | 90 | (in-module "Tny") |
|---|
| | 91 | (c-name "TnyMsg") |
|---|
| | 92 | (gtype-id "TNY_TYPE_MSG") |
|---|
| | 93 | (prerequisite "TnyMimePart") |
|---|
| | 94 | (prerequisite "GObject") |
|---|
| | 95 | ) |
|---|
| | 96 | |
|---|
| | 97 | (define-interface MsgReceiveStrategy |
|---|
| | 98 | (in-module "Tny") |
|---|
| | 99 | (c-name "TnyMsgReceiveStrategy") |
|---|
| | 100 | (gtype-id "TNY_TYPE_MSG_RECEIVE_STRATEGY") |
|---|
| | 101 | ) |
|---|
| | 102 | |
|---|
| | 103 | (define-interface MsgRemoveStrategy |
|---|
| | 104 | (in-module "Tny") |
|---|
| | 105 | (c-name "TnyMsgRemoveStrategy") |
|---|
| | 106 | (gtype-id "TNY_TYPE_MSG_REMOVE_STRATEGY") |
|---|
| | 107 | ) |
|---|
| | 108 | |
|---|
| | 109 | (define-interface PasswordGetter |
|---|
| | 110 | (in-module "Tny") |
|---|
| | 111 | (c-name "TnyPasswordGetter") |
|---|
| | 112 | (gtype-id "TNY_TYPE_PASSWORD_GETTER") |
|---|
| | 113 | ) |
|---|
| | 114 | |
|---|
| | 115 | (define-interface Seekable |
|---|
| | 116 | (in-module "Tny") |
|---|
| | 117 | (c-name "TnySeekable") |
|---|
| | 118 | (gtype-id "TNY_TYPE_SEEKABLE") |
|---|
| | 119 | ) |
|---|
| | 120 | |
|---|
| | 121 | (define-interface SendQueue |
|---|
| | 122 | (in-module "Tny") |
|---|
| | 123 | (c-name "TnySendQueue") |
|---|
| | 124 | (gtype-id "TNY_TYPE_SEND_QUEUE") |
|---|
| | 125 | (prerequisite "GObject") |
|---|
| | 126 | ) |
|---|
| | 127 | |
|---|
| | 128 | (define-interface StoreAccount |
|---|
| | 129 | (in-module "Tny") |
|---|
| | 130 | (c-name "TnyStoreAccount") |
|---|
| | 131 | (gtype-id "TNY_TYPE_STORE_ACCOUNT") |
|---|
| | 132 | (prerequisite "TnyAccount") |
|---|
| | 133 | (prerequisite "TnyFolderStore") |
|---|
| | 134 | (prerequisite "GObject") |
|---|
| | 135 | ) |
|---|
| | 136 | |
|---|
| | 137 | (define-interface Stream |
|---|
| | 138 | (in-module "Tny") |
|---|
| | 139 | (c-name "TnyStream") |
|---|
| | 140 | (gtype-id "TNY_TYPE_STREAM") |
|---|
| | 141 | ) |
|---|
| | 142 | |
|---|
| | 143 | (define-interface TransportAccount |
|---|
| | 144 | (in-module "Tny") |
|---|
| | 145 | (c-name "TnyTransportAccount") |
|---|
| | 146 | (gtype-id "TNY_TYPE_TRANSPORT_ACCOUNT") |
|---|
| | 147 | (prerequisite "TnyAccount") |
|---|
| | 148 | (prerequisite "GObject") |
|---|
| | 149 | ) |
|---|
| | 150 | |
|---|
| | 151 | ; object definitions ... |
|---|
| | 152 | |
|---|
| | 153 | (define-object CombinedAccount |
|---|
| | 154 | (in-module "Tny") |
|---|
| | 155 | (parent "GObject") |
|---|
| | 156 | (c-name "TnyCombinedAccount") |
|---|
| | 157 | (gtype-id "TNY_TYPE_COMBINED_ACCOUNT") |
|---|
| | 158 | (implements "TnyAccount") |
|---|
| | 159 | (implements "TnyFolderStore") |
|---|
| | 160 | (implements "TnyStoreAccount") |
|---|
| | 161 | (implements "TnyTransportAccount") |
|---|
| | 162 | ) |
|---|
| | 163 | |
|---|
| | 164 | (define-object FolderChange |
|---|
| | 165 | (in-module "Tny") |
|---|
| | 166 | (parent "GObject") |
|---|
| | 167 | (c-name "TnyFolderChange") |
|---|
| | 168 | (gtype-id "TNY_TYPE_FOLDER_CHANGE") |
|---|
| | 169 | ) |
|---|
| | 170 | |
|---|
| | 171 | (define-object FolderMonitor |
|---|
| | 172 | (in-module "Tny") |
|---|
| | 173 | (parent "GObject") |
|---|
| | 174 | (c-name "TnyFolderMonitor") |
|---|
| | 175 | (gtype-id "TNY_TYPE_FOLDER_MONITOR") |
|---|
| | 176 | (implements "TnyFolderObserver") |
|---|
| | 177 | ) |
|---|
| | 178 | |
|---|
| | 179 | (define-object FolderStats |
|---|
| | 180 | (in-module "Tny") |
|---|
| | 181 | (parent "GObject") |
|---|
| | 182 | (c-name "TnyFolderStats") |
|---|
| | 183 | (gtype-id "TNY_TYPE_FOLDER_STATS") |
|---|
| | 184 | ) |
|---|
| | 185 | |
|---|
| | 186 | (define-object FolderStoreChange |
|---|
| | 187 | (in-module "Tny") |
|---|
| | 188 | (parent "GObject") |
|---|
| | 189 | (c-name "TnyFolderStoreChange") |
|---|
| | 190 | (gtype-id "TNY_TYPE_FOLDER_STORE_CHANGE") |
|---|
| | 191 | ) |
|---|
| | 192 | |
|---|
| | 193 | (define-object FolderStoreQuery |
|---|
| | 194 | (in-module "Tny") |
|---|
| | 195 | (parent "GObject") |
|---|
| | 196 | (c-name "TnyFolderStoreQuery") |
|---|
| | 197 | (gtype-id "TNY_TYPE_FOLDER_STORE_QUERY") |
|---|
| | 198 | ) |
|---|
| | 199 | |
|---|
| | 200 | (define-object FolderStoreQueryItem |
|---|
| | 201 | (in-module "Tny") |
|---|
| | 202 | (parent "GObject") |
|---|
| | 203 | (c-name "TnyFolderStoreQueryItem") |
|---|
| | 204 | (gtype-id "TNY_TYPE_FOLDER_STORE_QUERY_ITEM") |
|---|
| | 205 | ) |
|---|
| | 206 | |
|---|
| | 207 | (define-object FsStream |
|---|
| | 208 | (in-module "Tny") |
|---|
| | 209 | (parent "GObject") |
|---|
| | 210 | (c-name "TnyFsStream") |
|---|
| | 211 | (gtype-id "TNY_TYPE_FS_STREAM") |
|---|
| | 212 | (implements "TnySeekable") |
|---|
| | 213 | (implements "TnyStream") |
|---|
| | 214 | ) |
|---|
| | 215 | |
|---|
| | 216 | (define-object MergeFolder |
|---|
| | 217 | (in-module "Tny") |
|---|
| | 218 | (parent "GObject") |
|---|
| | 219 | (c-name "TnyMergeFolder") |
|---|
| | 220 | (gtype-id "TNY_TYPE_MERGE_FOLDER") |
|---|
| | 221 | (implements "TnyFolder") |
|---|
| | 222 | (implements "TnyFolderObserver") |
|---|
| | 223 | ) |
|---|
| | 224 | |
|---|
| | 225 | (define-object NoopLockable |
|---|
| | 226 | (in-module "Tny") |
|---|
| | 227 | (parent "GObject") |
|---|
| | 228 | (c-name "TnyNoopLockable") |
|---|
| | 229 | (gtype-id "TNY_TYPE_NOOP_LOCKABLE") |
|---|
| | 230 | (implements "TnyLockable") |
|---|
| | 231 | ) |
|---|
| | 232 | |
|---|
| | 233 | (define-object Pair |
|---|
| | 234 | (in-module "Tny") |
|---|
| | 235 | (parent "GObject") |
|---|
| | 236 | (c-name "TnyPair") |
|---|
| | 237 | (gtype-id "TNY_TYPE_PAIR") |
|---|
| | 238 | ) |
|---|
| | 239 | |
|---|
| | 240 | (define-object SimpleList |
|---|
| | 241 | (in-module "Tny") |
|---|
| | 242 | (parent "GObject") |
|---|
| | 243 | (c-name "TnySimpleList") |
|---|
| | 244 | (gtype-id "TNY_TYPE_SIMPLE_LIST") |
|---|
| | 245 | (implements "TnyList") |
|---|
| | 246 | ) |
|---|
| | 247 | |
|---|
| | 248 | ; pointer definitions ... |
|---|
| | 249 | |
|---|
| | 250 | ;; Enumerations and Flags ... |
|---|
| | 251 | |
|---|
| | 252 | (define-enum AccountSignal |
|---|
| | 253 | (in-module "Tny") |
|---|
| | 254 | (c-name "TnyAccountSignal") |
|---|
| | 255 | (gtype-id "TNY_TYPE_ACCOUNT_SIGNAL") |
|---|
| | 256 | (values |
|---|
| | 257 | '("connection_status_changed" "TNY_ACCOUNT_CONNECTION_STATUS_CHANGED") |
|---|
| | 258 | '("changed" "TNY_ACCOUNT_CHANGED") |
|---|
| | 259 | '("last_signal" "TNY_ACCOUNT_LAST_SIGNAL") |
|---|
| | 260 | ) |
|---|
| | 261 | ) |
|---|
| | 262 | |
|---|
| | 263 | (define-enum AccountType |
|---|
| | 264 | (in-module "Tny") |
|---|
| | 265 | (c-name "TnyAccountType") |
|---|
| | 266 | (gtype-id "TNY_TYPE_ACCOUNT_TYPE") |
|---|
| | 267 | (values |
|---|
| | 268 | '("store" "TNY_ACCOUNT_TYPE_STORE") |
|---|
| | 269 | '("transport" "TNY_ACCOUNT_TYPE_TRANSPORT") |
|---|
| | 270 | ) |
|---|
| | 271 | ) |
|---|
| | 272 | |
|---|
| | 273 | (define-enum AlertType |
|---|
| | 274 | (in-module "Tny") |
|---|
| | 275 | (c-name "TnyAlertType") |
|---|
| | 276 | (gtype-id "TNY_TYPE_ALERT_TYPE") |
|---|
| | 277 | (values |
|---|
| | 278 | '("info" "TNY_ALERT_TYPE_INFO") |
|---|
| | 279 | '("warning" "TNY_ALERT_TYPE_WARNING") |
|---|
| | 280 | '("error" "TNY_ALERT_TYPE_ERROR") |
|---|
| | 281 | ) |
|---|
| | 282 | ) |
|---|
| | 283 | |
|---|
| | 284 | (define-enum ConnectionStatus |
|---|
| | 285 | (in-module "Tny") |
|---|
| | 286 | (c-name "TnyConnectionStatus") |
|---|
| | 287 | (gtype-id "TNY_TYPE_CONNECTION_STATUS") |
|---|
| | 288 | (values |
|---|
| | 289 | '("disconnected" "TNY_CONNECTION_STATUS_DISCONNECTED") |
|---|
| | 290 | '("disconnected-broken" "TNY_CONNECTION_STATUS_DISCONNECTED_BROKEN") |
|---|
| | 291 | '("connected-broken" "TNY_CONNECTION_STATUS_CONNECTED_BROKEN") |
|---|
| | 292 | '("connected" "TNY_CONNECTION_STATUS_CONNECTED") |
|---|
| | 293 | '("reconnecting" "TNY_CONNECTION_STATUS_RECONNECTING") |
|---|
| | 294 | '("init" "TNY_CONNECTION_STATUS_INIT") |
|---|
| | 295 | ) |
|---|
| | 296 | ) |
|---|
| | 297 | |
|---|
| | 298 | (define-enum FolderSignal |
|---|
| | 299 | (in-module "Tny") |
|---|
| | 300 | (c-name "TnyFolderSignal") |
|---|
| | 301 | (gtype-id "TNY_TYPE_FOLDER_SIGNAL") |
|---|
| | 302 | (values |
|---|
| | 303 | '("inserted" "TNY_FOLDER_FOLDER_INSERTED") |
|---|
| | 304 | '("reloaded" "TNY_FOLDER_FOLDERS_RELOADED") |
|---|
| | 305 | '("last-signal" "TNY_FOLDER_LAST_SIGNAL") |
|---|
| | 306 | ) |
|---|
| | 307 | ) |
|---|
| | 308 | |
|---|
| | 309 | (define-enum FolderType |
|---|
| | 310 | (in-module "Tny") |
|---|
| | 311 | (c-name "TnyFolderType") |
|---|
| | 312 | (gtype-id "TNY_TYPE_FOLDER_TYPE") |
|---|
| | 313 | (values |
|---|
| | 314 | '("unknown" "TNY_FOLDER_TYPE_UNKNOWN") |
|---|
| | 315 | '("normal" "TNY_FOLDER_TYPE_NORMAL") |
|---|
| | 316 | '("inbox" "TNY_FOLDER_TYPE_INBOX") |
|---|
| | 317 | '("outbox" "TNY_FOLDER_TYPE_OUTBOX") |
|---|
| | 318 | '("trash" "TNY_FOLDER_TYPE_TRASH") |
|---|
| | 319 | '("junk" "TNY_FOLDER_TYPE_JUNK") |
|---|
| | 320 | '("sent" "TNY_FOLDER_TYPE_SENT") |
|---|
| | 321 | '("root" "TNY_FOLDER_TYPE_ROOT") |
|---|
| | 322 | '("notes" "TNY_FOLDER_TYPE_NOTES") |
|---|
| | 323 | '("drafts" "TNY_FOLDER_TYPE_DRAFTS") |
|---|
| | 324 | '("contacts" "TNY_FOLDER_TYPE_CONTACTS") |
|---|
| | 325 | '("calendar" "TNY_FOLDER_TYPE_CALENDAR") |
|---|
| | 326 | '("archive" "TNY_FOLDER_TYPE_ARCHIVE") |
|---|
| | 327 | '("merge" "TNY_FOLDER_TYPE_MERGE") |
|---|
| | 328 | ) |
|---|
| | 329 | ) |
|---|
| | 330 | |
|---|
| | 331 | (define-enum GetAccountsRequestType |
|---|
| | 332 | (in-module "Tny") |
|---|
| | 333 | (c-name "TnyGetAccountsRequestType") |
|---|
| | 334 | (gtype-id "TNY_TYPE_GET_ACCOUNTS_REQUEST_TYPE") |
|---|
| | 335 | (values |
|---|
| | 336 | '("transport" "TNY_ACCOUNT_STORE_TRANSPORT_ACCOUNTS") |
|---|
| | 337 | '("store" "TNY_ACCOUNT_STORE_STORE_ACCOUNTS") |
|---|
| | 338 | '("both" "TNY_ACCOUNT_STORE_BOTH") |
|---|
| | 339 | ) |
|---|
| | 340 | ) |
|---|
| | 341 | |
|---|
| | 342 | (define-enum StatusCode |
|---|
| | 343 | (in-module "Tny") |
|---|
| | 344 | (c-name "TnyStatusCode") |
|---|
| | 345 | (gtype-id "TNY_TYPE_STATUS_CODE") |
|---|
| | 346 | (values |
|---|
| | 347 | '("folder_status_code_refresh" "TNY_FOLDER_STATUS_CODE_REFRESH") |
|---|
| | 348 | '("folder_status_code_get_msg" "TNY_FOLDER_STATUS_CODE_GET_MSG") |
|---|
| | 349 | '("get_msg_queue_status_get_msg" "TNY_GET_MSG_QUEUE_STATUS_GET_MSG") |
|---|
| | 350 | '("xfer-msgs" "TNY_FOLDER_STATUS_CODE_XFER_MSGS") |
|---|
| | 351 | '("copy-folder" "TNY_FOLDER_STATUS_CODE_COPY_FOLDER") |
|---|
| | 352 | '("get-secure-auth" "TNY_GET_SUPPORTED_SECURE_AUTH_STATUS_GET_SECURE_AUTH") |
|---|
| | 353 | '("code-sync" "TNY_FOLDER_STATUS_CODE_SYNC") |
|---|
| | 354 | ) |
|---|
| | 355 | ) |
|---|
| | 356 | |
|---|
| | 357 | (define-enum StatusDomain |
|---|
| | 358 | (in-module "Tny") |
|---|
| | 359 | (c-name "TnyStatusDomain") |
|---|
| | 360 | (gtype-id "TNY_TYPE_STATUS_DOMAIN") |
|---|
| | 361 | (values |
|---|
| | 362 | '("folder_status" "TNY_FOLDER_STATUS") |
|---|
| | 363 | '("get_msg_queue_status" "TNY_GET_MSG_QUEUE_STATUS") |
|---|
| | 364 | '("secured-auth-status" "TNY_GET_SUPPORTED_SECURE_AUTH_STATUS") |
|---|
| | 365 | ) |
|---|
| | 366 | ) |
|---|
| | 367 | |
|---|
| | 368 | (define-flags FolderCaps |
|---|
| | 369 | (in-module "Tny") |
|---|
| | 370 | (c-name "TnyFolderCaps") |
|---|
| | 371 | (gtype-id "TNY_TYPE_FOLDER_CAPS") |
|---|
| | 372 | (values |
|---|
| | 373 | '("writable" "TNY_FOLDER_CAPS_WRITABLE") |
|---|
| | 374 | '("pushemail" "TNY_FOLDER_CAPS_PUSHEMAIL") |
|---|
| | 375 | ) |
|---|
| | 376 | ) |
|---|
| | 377 | |
|---|
| | 378 | (define-flags FolderChangeChanged |
|---|
| | 379 | (in-module "Tny") |
|---|
| | 380 | (c-name "TnyFolderChangeChanged") |
|---|
| | 381 | (gtype-id "TNY_TYPE_FOLDER_CHANGE_CHANGED") |
|---|
| | 382 | (values |
|---|
| | 383 | '("all-count" "TNY_FOLDER_CHANGE_CHANGED_ALL_COUNT") |
|---|
| | 384 | '("unread-count" "TNY_FOLDER_CHANGE_CHANGED_UNREAD_COUNT") |
|---|
| | 385 | '("added-headers" "TNY_FOLDER_CHANGE_CHANGED_ADDED_HEADERS") |
|---|
| | 386 | '("expunged-headers" "TNY_FOLDER_CHANGE_CHANGED_EXPUNGED_HEADERS") |
|---|
| | 387 | '("rename" "TNY_FOLDER_CHANGE_CHANGED_FOLDER_RENAME") |
|---|
| | 388 | '("received" "TNY_FOLDER_CHANGE_CHANGED_MSG_RECEIVED") |
|---|
| | 389 | ) |
|---|
| | 390 | ) |
|---|
| | 391 | |
|---|
| | 392 | (define-flags FolderStoreChangeChanged |
|---|
| | 393 | (in-module "Tny") |
|---|
| | 394 | (c-name "TnyFolderStoreChangeChanged") |
|---|
| | 395 | (gtype-id "TNY_TYPE_FOLDER_STORE_CHANGE_CHANGED") |
|---|
| | 396 | (values |
|---|
| | 397 | '("created-folders" "TNY_FOLDER_STORE_CHANGE_CHANGED_CREATED_FOLDERS") |
|---|
| | 398 | '("removed-folders" "TNY_FOLDER_STORE_CHANGE_CHANGED_REMOVED_FOLDERS") |
|---|
| | 399 | ) |
|---|
| | 400 | ) |
|---|
| | 401 | |
|---|
| | 402 | (define-flags FolderStoreQueryOption |
|---|
| | 403 | (in-module "Tny") |
|---|
| | 404 | (c-name "TnyFolderStoreQueryOption") |
|---|
| | 405 | (gtype-id "TNY_TYPE_FOLDER_STORE_QUERY_OPTION") |
|---|
| | 406 | (values |
|---|
| | 407 | '("subscribed" "TNY_FOLDER_STORE_QUERY_OPTION_SUBSCRIBED") |
|---|
| | 408 | '("unsubscribed" "TNY_FOLDER_STORE_QUERY_OPTION_UNSUBSCRIBED") |
|---|
| | 409 | '("match_on_name" "TNY_FOLDER_STORE_QUERY_OPTION_MATCH_ON_NAME") |
|---|
| | 410 | '("match_on_id" "TNY_FOLDER_STORE_QUERY_OPTION_MATCH_ON_ID") |
|---|
| | 411 | '("pattern_is_case_insensitive" "TNY_FOLDER_STORE_QUERY_OPTION_PATTERN_IS_CASE_INSENSITIVE") |
|---|
| | 412 | '("pattern_is_regex" "TNY_FOLDER_STORE_QUERY_OPTION_PATTERN_IS_REGEX") |
|---|
| | 413 | ) |
|---|
| | 414 | ) |
|---|
| | 415 | |
|---|
| | 416 | (define-flags HeaderFlags |
|---|
| | 417 | (in-module "Tny") |
|---|
| | 418 | (c-name "TnyHeaderFlags") |
|---|
| | 419 | (gtype-id "TNY_TYPE_HEADER_FLAGS") |
|---|
| | 420 | (values |
|---|
| | 421 | '("answered" "TNY_HEADER_FLAG_ANSWERED") |
|---|
| | 422 | '("deleted" "TNY_HEADER_FLAG_DELETED") |
|---|
| | 423 | '("draft" "TNY_HEADER_FLAG_DRAFT") |
|---|
| | 424 | '("flagged" "TNY_HEADER_FLAG_FLAGGED") |
|---|
| | 425 | '("seen" "TNY_HEADER_FLAG_SEEN") |
|---|
| | 426 | '("attachments" "TNY_HEADER_FLAG_ATTACHMENTS") |
|---|
| | 427 | '("cached" "TNY_HEADER_FLAG_CACHED") |
|---|
| | 428 | '("partial" "TNY_HEADER_FLAG_PARTIAL") |
|---|
| | 429 | '("expunged" "TNY_HEADER_FLAG_EXPUNGED") |
|---|
| | 430 | '("high-priority" "TNY_HEADER_FLAG_HIGH_PRIORITY") |
|---|
| | 431 | '("normal-priority" "TNY_HEADER_FLAG_NORMAL_PRIORITY") |
|---|
| | 432 | '("low-priority" "TNY_HEADER_FLAG_LOW_PRIORITY") |
|---|
| | 433 | '("suspended" "TNY_HEADER_FLAG_SUSPENDED") |
|---|
| | 434 | ) |
|---|
| | 435 | ) |
|---|
| | 436 | |
|---|
| | 437 | |
|---|
| | 438 | ;; From tny-account-store.h |
|---|
| | 439 | |
|---|
| | 440 | (define-function account_store_get_type |
|---|
| | 441 | (c-name "tny_account_store_get_type") |
|---|
| | 442 | (return-type "GType") |
|---|
| | 443 | ) |
|---|
| | 444 | |
|---|
| | 445 | (define-function get_accounts_request_type_get_type |
|---|
| | 446 | (c-name "tny_get_accounts_request_type_get_type") |
|---|
| | 447 | (return-type "GType") |
|---|
| | 448 | ) |
|---|
| | 449 | |
|---|
| | 450 | (define-function alert_type_get_type |
|---|
| | 451 | (c-name "tny_alert_type_get_type") |
|---|
| | 452 | (return-type "GType") |
|---|
| | 453 | ) |
|---|
| | 454 | |
|---|
| | 455 | (define-method get_accounts |
|---|
| | 456 | (of-object "TnyAccountStore") |
|---|
| | 457 | (c-name "tny_account_store_get_accounts") |
|---|
| | 458 | (return-type "none") |
|---|
| | 459 | (parameters |
|---|
| | 460 | '("TnyList*" "list") |
|---|
| | 461 | '("TnyGetAccountsRequestType" "types") |
|---|
| | 462 | ) |
|---|
| | 463 | ) |
|---|
| | 464 | |
|---|
| | 465 | (define-method get_cache_dir |
|---|
| | 466 | (of-object "TnyAccountStore") |
|---|
| | 467 | (c-name "tny_account_store_get_cache_dir") |
|---|
| | 468 | (return-type "const-gchar*") |
|---|
| | 469 | ) |
|---|
| | 470 | |
|---|
| | 471 | (define-method get_device |
|---|
| | 472 | (of-object "TnyAccountStore") |
|---|
| | 473 | (c-name "tny_account_store_get_device") |
|---|
| | 474 | (return-type "TnyDevice*") |
|---|
| | 475 | ) |
|---|
| | 476 | |
|---|
| | 477 | (define-method alert |
|---|
| | 478 | (of-object "TnyAccountStore") |
|---|
| | 479 | (c-name "tny_account_store_alert") |
|---|
| | 480 | (return-type "gboolean") |
|---|
| | 481 | (parameters |
|---|
| | 482 | '("TnyAccount*" "account") |
|---|
| | 483 | '("TnyAlertType" "type") |
|---|
| | 484 | '("gboolean" "question") |
|---|
| | 485 | '("GError*" "error") |
|---|
| | 486 | ) |
|---|
| | 487 | ) |
|---|
| | 488 | |
|---|
| | 489 | (define-method find_account |
|---|
| | 490 | (of-object "TnyAccountStore") |
|---|
| | 491 | (c-name "tny_account_store_find_account") |
|---|
| | 492 | (return-type "TnyAccount*") |
|---|
| | 493 | (parameters |
|---|
| | 494 | '("const-gchar*" "url_string") |
|---|
| | 495 | ) |
|---|
| | 496 | ) |
|---|
| | 497 | |
|---|
| | 498 | (define-virtual get_accounts |
|---|
| | 499 | (of-object "TnyAccountStore") |
|---|
| | 500 | (return-type "none") |
|---|
| | 501 | (parameters |
|---|
| | 502 | '("TnyList*" "list") |
|---|
| | 503 | '("TnyGetAccountsRequestType" "types") |
|---|
| | 504 | ) |
|---|
| | 505 | ) |
|---|
| | 506 | |
|---|
| | 507 | (define-virtual get_cache_dir |
|---|
| | 508 | (of-object "TnyAccountStore") |
|---|
| | 509 | (return-type "const-gchar*") |
|---|
| | 510 | ) |
|---|
| | 511 | |
|---|
| | 512 | (define-virtual get_device |
|---|
| | 513 | (of-object "TnyAccountStore") |
|---|
| | 514 | (return-type "TnyDevice*") |
|---|
| | 515 | ) |
|---|
| | 516 | |
|---|
| | 517 | (define-virtual alert |
|---|
| | 518 | (of-object "TnyAccountStore") |
|---|
| | 519 | (return-type "gboolean") |
|---|
| | 520 | (parameters |
|---|
| | 521 | '("TnyAccount*" "account") |
|---|
| | 522 | '("TnyAlertType" "type") |
|---|
| | 523 | '("gboolean" "question") |
|---|
| | 524 | '("GError*" "error") |
|---|
| | 525 | ) |
|---|
| | 526 | ) |
|---|
| | 527 | |
|---|
| | 528 | (define-virtual find_account |
|---|
| | 529 | (of-object "TnyAccountStore") |
|---|
| | 530 | (return-type "TnyAccount*") |
|---|
| | 531 | (parameters |
|---|
| | 532 | '("const-gchar*" "url_string") |
|---|
| | 533 | ) |
|---|
| | 534 | ) |
|---|
| | 535 | |
|---|
| | 536 | (define-virtual connecting_started |
|---|
| | 537 | (of-object "TnyAccountStore") |
|---|
| | 538 | (return-type "none") |
|---|
| | 539 | ) |
|---|
| | 540 | |
|---|
| | 541 | |
|---|
| | 542 | |
|---|
| | 543 | ;; From tny-account.h |
|---|
| | 544 | |
|---|
| | 545 | (define-function account_get_type |
|---|
| | 546 | (c-name "tny_account_get_type") |
|---|
| | 547 | (return-type "GType") |
|---|
| | 548 | ) |
|---|
| | 549 | |
|---|
| | 550 | (define-function account_type_get_type |
|---|
| | 551 | (c-name "tny_account_type_get_type") |
|---|
| | 552 | (return-type "GType") |
|---|
| | 553 | ) |
|---|
| | 554 | |
|---|
| | 555 | (define-function connection_status_get_type |
|---|
| | 556 | (c-name "tny_connection_status_get_type") |
|---|
| | 557 | (return-type "GType") |
|---|
| | 558 | ) |
|---|
| | 559 | |
|---|
| | 560 | (define-function account_signal_type_get_type |
|---|
| | 561 | (c-name "tny_account_signal_type_get_type") |
|---|
| | 562 | (return-type "GType") |
|---|
| | 563 | ) |
|---|
| | 564 | |
|---|
| | 565 | (define-method get_connection_status |
|---|
| | 566 | (of-object "TnyAccount") |
|---|
| | 567 | (c-name "tny_account_get_connection_status") |
|---|
| | 568 | (return-type "TnyConnectionStatus") |
|---|
| | 569 | ) |
|---|
| | 570 | |
|---|
| | 571 | (define-method set_id |
|---|
| | 572 | (of-object "TnyAccount") |
|---|
| | 573 | (c-name "tny_account_set_id") |
|---|
| | 574 | (return-type "none") |
|---|
| | 575 | (parameters |
|---|
| | 576 | '("const-gchar*" "id") |
|---|
| | 577 | ) |
|---|
| | 578 | ) |
|---|
| | 579 | |
|---|
| | 580 | (define-method set_name |
|---|
| | 581 | (of-object "TnyAccount") |
|---|
| | 582 | (c-name "tny_account_set_name") |
|---|
| | 583 | (return-type "none") |
|---|
| | 584 | (parameters |
|---|
| | 585 | '("const-gchar*" "name") |
|---|
| | 586 | ) |
|---|
| | 587 | ) |
|---|
| | 588 | |
|---|
| | 589 | (define-method set_secure_auth_mech |
|---|
| | 590 | (of-object "TnyAccount") |
|---|
| | 591 | (c-name "tny_account_set_secure_auth_mech") |
|---|
| | 592 | (return-type "none") |
|---|
| | 593 | (parameters |
|---|
| | 594 | '("const-gchar*" "mech") |
|---|
| | 595 | ) |
|---|
| | 596 | ) |
|---|
| | 597 | |
|---|
| | 598 | (define-method set_proto |
|---|
| | 599 | (of-object "TnyAccount") |
|---|
| | 600 | (c-name "tny_account_set_proto") |
|---|
| | 601 | (return-type "none") |
|---|
| | 602 | (parameters |
|---|
| | 603 | '("const-gchar*" "proto") |
|---|
| | 604 | ) |
|---|
| | 605 | ) |
|---|
| | 606 | |
|---|
| | 607 | (define-method set_user |
|---|
| | 608 | (of-object "TnyAccount") |
|---|
| | 609 | (c-name "tny_account_set_user") |
|---|
| | 610 | (return-type "none") |
|---|
| | 611 | (parameters |
|---|
| | 612 | '("const-gchar*" "user") |
|---|
| | 613 | ) |
|---|
| | 614 | ) |
|---|
| | 615 | |
|---|
| | 616 | (define-method set_hostname |
|---|
| | 617 | (of-object "TnyAccount") |
|---|
| | 618 | (c-name "tny_account_set_hostname") |
|---|
| | 619 | (return-type "none") |
|---|
| | 620 | (parameters |
|---|
| | 621 | '("const-gchar*" "host") |
|---|
| | 622 | ) |
|---|
| | 623 | ) |
|---|
| | 624 | |
|---|
| | 625 | (define-method set_port |
|---|
| | 626 | (of-object "TnyAccount") |
|---|
| | 627 | (c-name "tny_account_set_port") |
|---|
| | 628 | (return-type "none") |
|---|
| | 629 | (parameters |
|---|
| | 630 | '("guint" "port") |
|---|
| | 631 | ) |
|---|
| | 632 | ) |
|---|
| | 633 | |
|---|
| | 634 | (define-method set_pass_func |
|---|
| | 635 | (of-object "TnyAccount") |
|---|
| | 636 | (c-name "tny_account_set_pass_func") |
|---|
| | 637 | (return-type "none") |
|---|
| | 638 | (parameters |
|---|
| | 639 | '("TnyGetPassFunc" "get_pass_func") |
|---|
| | 640 | ) |
|---|
| | 641 | ) |
|---|
| | 642 | |
|---|
| | 643 | (define-method set_url_string |
|---|
| | 644 | (of-object "TnyAccount") |
|---|
| | 645 | (c-name "tny_account_set_url_string") |
|---|
| | 646 | (return-type "none") |
|---|
| | 647 | (parameters |
|---|
| | 648 | '("const-gchar*" "url_string") |
|---|
| | 649 | ) |
|---|
| | 650 | ) |
|---|
| | 651 | |
|---|
| | 652 | (define-method get_account_type |
|---|
| | 653 | (of-object "TnyAccount") |
|---|
| | 654 | (c-name "tny_account_get_account_type") |
|---|
| | 655 | (return-type "TnyAccountType") |
|---|
| | 656 | ) |
|---|
| | 657 | |
|---|
| | 658 | (define-method get_id |
|---|
| | 659 | (of-object "TnyAccount") |
|---|
| | 660 | (c-name "tny_account_get_id") |
|---|
| | 661 | (return-type "const-gchar*") |
|---|
| | 662 | ) |
|---|
| | 663 | |
|---|
| | 664 | (define-method get_name |
|---|
| | 665 | (of-object "TnyAccount") |
|---|
| | 666 | (c-name "tny_account_get_name") |
|---|
| | 667 | (return-type "const-gchar*") |
|---|
| | 668 | ) |
|---|
| | 669 | |
|---|
| | 670 | (define-method get_secure_auth_mech |
|---|
| | 671 | (of-object "TnyAccount") |
|---|
| | 672 | (c-name "tny_account_get_secure_auth_mech") |
|---|
| | 673 | (return-type "const-gchar*") |
|---|
| | 674 | ) |
|---|
| | 675 | |
|---|
| | 676 | (define-method get_proto |
|---|
| | 677 | (of-object "TnyAccount") |
|---|
| | 678 | (c-name "tny_account_get_proto") |
|---|
| | 679 | (return-type "const-gchar*") |
|---|
| | 680 | ) |
|---|
| | 681 | |
|---|
| | 682 | (define-method get_user |
|---|
| | 683 | (of-object "TnyAccount") |
|---|
| | 684 | (c-name "tny_account_get_user") |
|---|
| | 685 | (return-type "const-gchar*") |
|---|
| | 686 | ) |
|---|
| | 687 | |
|---|
| | 688 | (define-method get_hostname |
|---|
| | 689 | (of-object "TnyAccount") |
|---|
| | 690 | (c-name "tny_account_get_hostname") |
|---|
| | 691 | (return-type "const-gchar*") |
|---|
| | 692 | ) |
|---|
| | 693 | |
|---|
| | 694 | (define-method get_port |
|---|
| | 695 | (of-object "TnyAccount") |
|---|
| | 696 | (c-name "tny_account_get_port") |
|---|
| | 697 | (return-type "guint") |
|---|
| | 698 | ) |
|---|
| | 699 | |
|---|
| | 700 | (define-method get_url_string |
|---|
| | 701 | (of-object "TnyAccount") |
|---|
| | 702 | (c-name "tny_account_get_url_string") |
|---|
| | 703 | (return-type "gchar*") |
|---|
| | 704 | ) |
|---|
| | 705 | |
|---|
| | 706 | (define-method get_pass_func |
|---|
| | 707 | (of-object "TnyAccount") |
|---|
| | 708 | (c-name "tny_account_get_pass_func") |
|---|
| | 709 | (return-type "TnyGetPassFunc") |
|---|
| | 710 | ) |
|---|
| | 711 | |
|---|
| | 712 | (define-method set_forget_pass_func |
|---|
| | 713 | (of-object "TnyAccount") |
|---|
| | 714 | (c-name "tny_account_set_forget_pass_func") |
|---|
| | 715 | (return-type "none") |
|---|
| | 716 | (parameters |
|---|
| | 717 | '("TnyForgetPassFunc" "forget_pass_func") |
|---|
| | 718 | ) |
|---|
| | 719 | ) |
|---|
| | 720 | |
|---|
| | 721 | (define-method get_forget_pass_func |
|---|
| | 722 | (of-object "TnyAccount") |
|---|
| | 723 | (c-name "tny_account_get_forget_pass_func") |
|---|
| | 724 | (return-type "TnyForgetPassFunc") |
|---|
| | 725 | ) |
|---|
| | 726 | |
|---|
| | 727 | (define-method cancel |
|---|
| | 728 | (of-object "TnyAccount") |
|---|
| | 729 | (c-name "tny_account_cancel") |
|---|
| | 730 | (return-type "none") |
|---|
| | 731 | ) |
|---|
| | 732 | |
|---|
| | 733 | (define-method matches_url_string |
|---|
| | 734 | (of-object "TnyAccount") |
|---|
| | 735 | (c-name "tny_account_matches_url_string") |
|---|
| | 736 | (return-type "gboolean") |
|---|
| | 737 | (parameters |
|---|
| | 738 | '("const-gchar*" "url_string") |
|---|
| | 739 | ) |
|---|
| | 740 | ) |
|---|
| | 741 | |
|---|
| | 742 | (define-method start_operation |
|---|
| | 743 | (of-object "TnyAccount") |
|---|
| | 744 | (c-name "tny_account_start_operation") |
|---|
| | 745 | (return-type "none") |
|---|
| | 746 | (parameters |
|---|
| | 747 | '("TnyStatusDomain" "domain") |
|---|
| | 748 | '("TnyStatusCode" "code") |
|---|
| | 749 | '("TnyStatusCallback" "status_callback") |
|---|
| | 750 | '("gpointer" "status_user_data") |
|---|
| | 751 | ) |
|---|
| | 752 | ) |
|---|
| | 753 | |
|---|
| | 754 | (define-method stop_operation |
|---|
| | 755 | (of-object "TnyAccount") |
|---|
| | 756 | (c-name "tny_account_stop_operation") |
|---|
| | 757 | (return-type "none") |
|---|
| | 758 | (parameters |
|---|
| | 759 | '("gboolean*" "cancelled") |
|---|
| | 760 | ) |
|---|
| | 761 | ) |
|---|
| | 762 | |
|---|
| | 763 | (define-method is_ready |
|---|
| | 764 | (of-object "TnyAccount") |
|---|
| | 765 | (c-name "tny_account_is_ready") |
|---|
| | 766 | (return-type "gboolean") |
|---|
| | 767 | ) |
|---|
| | 768 | |
|---|
| | 769 | (define-method get_connection_policy |
|---|
| | 770 | (of-object "TnyAccount") |
|---|
| | 771 | (c-name "tny_account_get_connection_policy") |
|---|
| | 772 | (return-type "TnyConnectionPolicy*") |
|---|
| | 773 | ) |
|---|
| | 774 | |
|---|
| | 775 | (define-method set_connection_policy |
|---|
| | 776 | (of-object "TnyAccount") |
|---|
| | 777 | (c-name "tny_account_set_connection_policy") |
|---|
| | 778 | (return-type "none") |
|---|
| | 779 | (parameters |
|---|
| | 780 | '("TnyConnectionPolicy*" "policy") |
|---|
| | 781 | ) |
|---|
| | 782 | ) |
|---|
| | 783 | |
|---|
| | 784 | (define-virtual get_connection_status |
|---|
| | 785 | (of-object "TnyAccount") |
|---|
| | 786 | (return-type "TnyConnectionStatus") |
|---|
| | 787 | ) |
|---|
| | 788 | |
|---|
| | 789 | (define-virtual set_id |
|---|
| | 790 | (of-object "TnyAccount") |
|---|
| | 791 | (return-type "none") |
|---|
| | 792 | (parameters |
|---|
| | 793 | '("const-gchar*" "id") |
|---|
| | 794 | ) |
|---|
| | 795 | ) |
|---|
| | 796 | |
|---|
| | 797 | (define-virtual set_name |
|---|
| | 798 | (of-object "TnyAccount") |
|---|
| | 799 | (return-type "none") |
|---|
| | 800 | (parameters |
|---|
| | 801 | '("const-gchar*" "name") |
|---|
| | 802 | ) |
|---|
| | 803 | ) |
|---|
| | 804 | |
|---|
| | 805 | (define-virtual set_secure_auth_mech |
|---|
| | 806 | (of-object "TnyAccount") |
|---|
| | 807 | (return-type "none") |
|---|
| | 808 | (parameters |
|---|
| | 809 | '("const-gchar*" "mech") |
|---|
| | 810 | ) |
|---|
| | 811 | ) |
|---|
| | 812 | |
|---|
| | 813 | (define-virtual set_proto |
|---|
| | 814 | (of-object "TnyAccount") |
|---|
| | 815 | (return-type "none") |
|---|
| | 816 | (parameters |
|---|
| | 817 | '("const-gchar*" "proto") |
|---|
| | 818 | ) |
|---|
| | 819 | ) |
|---|
| | 820 | |
|---|
| | 821 | (define-virtual set_user |
|---|
| | 822 | (of-object "TnyAccount") |
|---|
| | 823 | (return-type "none") |
|---|
| | 824 | (parameters |
|---|
| | 825 | '("const-gchar*" "user") |
|---|
| | 826 | ) |
|---|
| | 827 | ) |
|---|
| | 828 | |
|---|
| | 829 | (define-virtual set_hostname |
|---|
| | 830 | (of-object "TnyAccount") |
|---|
| | 831 | (return-type "none") |
|---|
| | 832 | (parameters |
|---|
| | 833 | '("const-gchar*" "host") |
|---|
| | 834 | ) |
|---|
| | 835 | ) |
|---|
| | 836 | |
|---|
| | 837 | (define-virtual set_port |
|---|
| | 838 | (of-object "TnyAccount") |
|---|
| | 839 | (return-type "none") |
|---|
| | 840 | (parameters |
|---|
| | 841 | '("guint" "port") |
|---|
| | 842 | ) |
|---|
| | 843 | ) |
|---|
| | 844 | |
|---|
| | 845 | (define-virtual set_url_string |
|---|
| | 846 | (of-object "TnyAccount") |
|---|
| | 847 | (return-type "none") |
|---|
| | 848 | (parameters |
|---|
| | 849 | '("const-gchar*" "url_string") |
|---|
| | 850 | ) |
|---|
| | 851 | ) |
|---|
| | 852 | |
|---|
| | 853 | (define-virtual set_pass_func |
|---|
| | 854 | (of-object "TnyAccount") |
|---|
| | 855 | (return-type "none") |
|---|
| | 856 | (parameters |
|---|
| | 857 | '("TnyGetPassFunc" "get_pass_func") |
|---|
| | 858 | ) |
|---|
| | 859 | ) |
|---|
| | 860 | |
|---|
| | 861 | (define-virtual set_forget_pass_func |
|---|
| | 862 | (of-object "TnyAccount") |
|---|
| | 863 | (return-type "none") |
|---|
| | 864 | (parameters |
|---|
| | 865 | '("TnyForgetPassFunc" "forget_pass_func") |
|---|
| | 866 | ) |
|---|
| | 867 | ) |
|---|
| | 868 | |
|---|
| | 869 | (define-virtual get_pass_func |
|---|
| | 870 | (of-object "TnyAccount") |
|---|
| | 871 | (return-type "TnyGetPassFunc") |
|---|
| | 872 | ) |
|---|
| | 873 | |
|---|
| | 874 | (define-virtual get_forget_pass_func |
|---|
| | 875 | (of-object "TnyAccount") |
|---|
| | 876 | (return-type "TnyForgetPassFunc") |
|---|
| | 877 | ) |
|---|
| | 878 | |
|---|
| | 879 | (define-virtual get_id |
|---|
| | 880 | (of-object "TnyAccount") |
|---|
| | 881 | (return-type "const-gchar*") |
|---|
| | 882 | ) |
|---|
| | 883 | |
|---|
| | 884 | (define-virtual get_name |
|---|
| | 885 | (of-object "TnyAccount") |
|---|
| | 886 | (return-type "const-gchar*") |
|---|
| | 887 | ) |
|---|
| | 888 | |
|---|
| | 889 | (define-virtual get_secure_auth_mech |
|---|
| | 890 | (of-object "TnyAccount") |
|---|
| | 891 | (return-type "const-gchar*") |
|---|
| | 892 | ) |
|---|
| | 893 | |
|---|
| | 894 | (define-virtual get_proto |
|---|
| | 895 | (of-object "TnyAccount") |
|---|
| | 896 | (return-type "const-gchar*") |
|---|
| | 897 | ) |
|---|
| | 898 | |
|---|
| | 899 | (define-virtual get_user |
|---|
| | 900 | (of-object "TnyAccount") |
|---|
| | 901 | (return-type "const-gchar*") |
|---|
| | 902 | ) |
|---|
| | 903 | |
|---|
| | 904 | (define-virtual get_hostname |
|---|
| | 905 | (of-object "TnyAccount") |
|---|
| | 906 | (return-type "const-gchar*") |
|---|
| | 907 | ) |
|---|
| | 908 | |
|---|
| | 909 | (define-virtual get_port |
|---|
| | 910 | (of-object "TnyAccount") |
|---|
| | 911 | (return-type "guint") |
|---|
| | 912 | ) |
|---|
| | 913 | |
|---|
| | 914 | (define-virtual get_url_string |
|---|
| | 915 | (of-object "TnyAccount") |
|---|
| | 916 | (return-type "gchar*") |
|---|
| | 917 | ) |
|---|
| | 918 | |
|---|
| | 919 | (define-virtual get_account_type |
|---|
| | 920 | (of-object "TnyAccount") |
|---|
| | 921 | (return-type "TnyAccountType") |
|---|
| | 922 | ) |
|---|
| | 923 | |
|---|
| | 924 | (define-virtual cancel |
|---|
| | 925 | (of-object "TnyAccount") |
|---|
| | 926 | (return-type "none") |
|---|
| | 927 | ) |
|---|
| | 928 | |
|---|
| | 929 | (define-virtual matches_url_string |
|---|
| | 930 | (of-object "TnyAccount") |
|---|
| | 931 | (return-type "gboolean") |
|---|
| | 932 | (parameters |
|---|
| | 933 | '("const-gchar*" "url_string") |
|---|
| | 934 | ) |
|---|
| | 935 | ) |
|---|
| | 936 | |
|---|
| | 937 | (define-virtual start_operation |
|---|
| | 938 | (of-object "TnyAccount") |
|---|
| | 939 | (return-type "none") |
|---|
| | 940 | (parameters |
|---|
| | 941 | '("TnyStatusDomain" "domain") |
|---|
| | 942 | '("TnyStatusCode" "code") |
|---|
| | 943 | '("TnyStatusCallback" "status_callback") |
|---|
| | 944 | '("gpointer" "status_user_data") |
|---|
| | 945 | ) |
|---|
| | 946 | ) |
|---|
| | 947 | |
|---|
| | 948 | (define-virtual stop_operation |
|---|
| | 949 | (of-object "TnyAccount") |
|---|
| | 950 | (return-type "none") |
|---|
| | 951 | (parameters |
|---|
| | 952 | '("gboolean*" "cancelled") |
|---|
| | 953 | ) |
|---|
| | 954 | ) |
|---|
| | 955 | |
|---|
| | 956 | (define-virtual is_ready |
|---|
| | 957 | (of-object "TnyAccount") |
|---|
| | 958 | (return-type "gboolean") |
|---|
| | 959 | ) |
|---|
| | 960 | |
|---|
| | 961 | (define-virtual get_connection_policy |
|---|
| | 962 | (of-object "TnyAccount") |
|---|
| | 963 | (return-type "TnyConnectionPolicy*") |
|---|
| | 964 | ) |
|---|
| | 965 | |
|---|
| | 966 | (define-virtual set_connection_policy |
|---|
| | 967 | (of-object "TnyAccount") |
|---|
| | 968 | (return-type "none") |
|---|
| | 969 | (parameters |
|---|
| | 970 | '("TnyConnectionPolicy*" "policy") |
|---|
| | 971 | ) |
|---|
| | 972 | ) |
|---|
| | 973 | |
|---|
| | 974 | (define-virtual connection_status_changed |
|---|
| | 975 | (of-object "TnyAccount") |
|---|
| | 976 | (return-type "none") |
|---|
| | 977 | (parameters |
|---|
| | 978 | '("TnyConnectionStatus" "status") |
|---|
| | 979 | ) |
|---|
| | 980 | ) |
|---|
| | 981 | |
|---|
| | 982 | (define-virtual changed |
|---|
| | 983 | (of-object "TnyAccount") |
|---|
| | 984 | (return-type "none") |
|---|
| | 985 | ) |
|---|
| | 986 | |
|---|
| | 987 | |
|---|
| | 988 | |
|---|
| | 989 | ;; From tny-combined-account.h |
|---|
| | 990 | |
|---|
| | 991 | (define-function combined_account_get_type |
|---|
| | 992 | (c-name "tny_combined_account_get_type") |
|---|
| | 993 | (return-type "GType") |
|---|
| | 994 | ) |
|---|
| | 995 | |
|---|
| | 996 | (define-function combined_account_new |
|---|
| | 997 | (c-name "tny_combined_account_new") |
|---|
| | 998 | (is-constructor-of "TnyCombinedAccount") |
|---|
| | 999 | (return-type "TnyAccount*") |
|---|
| | 1000 | (parameters |
|---|
| | 1001 | '("TnyTransportAccount*" "ta") |
|---|
| | 1002 | '("TnyStoreAccount*" "sa") |
|---|
| | 1003 | ) |
|---|
| | 1004 | ) |
|---|
| | 1005 | |
|---|
| | 1006 | (define-method get_transport_account |
|---|
| | 1007 | (of-object "TnyCombinedAccount") |
|---|
| | 1008 | (c-name "tny_combined_account_get_transport_account") |
|---|
| | 1009 | (return-type "TnyTransportAccount*") |
|---|
| | 1010 | ) |
|---|
| | 1011 | |
|---|
| | 1012 | (define-method get_store_account |
|---|
| | 1013 | (of-object "TnyCombinedAccount") |
|---|
| | 1014 | (c-name "tny_combined_account_get_store_account") |
|---|
| | 1015 | (return-type "TnyStoreAccount*") |
|---|
| | 1016 | ) |
|---|
| | 1017 | |
|---|
| | 1018 | |
|---|
| | 1019 | |
|---|
| | 1020 | ;; From tny-connection-policy.h |
|---|
| | 1021 | |
|---|
| | 1022 | (define-function connection_policy_get_type |
|---|
| | 1023 | (c-name "tny_connection_policy_get_type") |
|---|
| | 1024 | (return-type "GType") |
|---|
| | 1025 | ) |
|---|
| | 1026 | |
|---|
| | 1027 | (define-method on_connect |
|---|
| | 1028 | (of-object "TnyConnectionPolicy") |
|---|
| | 1029 | (c-name "tny_connection_policy_on_connect") |
|---|
| | 1030 | (return-type "none") |
|---|
| | 1031 | (parameters |
|---|
| | 1032 | '("TnyAccount*" "account") |
|---|
| | 1033 | ) |
|---|
| | 1034 | ) |
|---|
| | 1035 | |
|---|
| | 1036 | (define-method on_disconnect |
|---|
| | 1037 | (of-object "TnyConnectionPolicy") |
|---|
| | 1038 | (c-name "tny_connection_policy_on_disconnect") |
|---|
| | 1039 | (return-type "none") |
|---|
| | 1040 | (parameters |
|---|
| | 1041 | '("TnyAccount*" "account") |
|---|
| | 1042 | ) |
|---|
| | 1043 | ) |
|---|
| | 1044 | |
|---|
| | 1045 | (define-method on_connection_broken |
|---|
| | 1046 | (of-object "TnyConnectionPolicy") |
|---|
| | 1047 | (c-name "tny_connection_policy_on_connection_broken") |
|---|
| | 1048 | (return-type "none") |
|---|
| | 1049 | (parameters |
|---|
| | 1050 | '("TnyAccount*" "account") |
|---|
| | 1051 | ) |
|---|
| | 1052 | ) |
|---|
| | 1053 | |
|---|
| | 1054 | (define-method set_current |
|---|
| | 1055 | (of-object "TnyConnectionPolicy") |
|---|
| | 1056 | (c-name "tny_connection_policy_set_current") |
|---|
| | 1057 | (return-type "none") |
|---|
| | 1058 | (parameters |
|---|
| | 1059 | '("TnyAccount*" "account") |
|---|
| | 1060 | '("TnyFolder*" "folder") |
|---|
| | 1061 | ) |
|---|
| | 1062 | ) |
|---|
| | 1063 | |
|---|
| | 1064 | (define-virtual on_connect |
|---|
| | 1065 | (of-object "TnyConnectionPolicy") |
|---|
| | 1066 | (return-type "none") |
|---|
| | 1067 | (parameters |
|---|
| | 1068 | '("TnyAccount*" "account") |
|---|
| | 1069 | ) |
|---|
| | 1070 | ) |
|---|
| | 1071 | |
|---|
| | 1072 | (define-virtual on_connection_broken |
|---|
| | 1073 | (of-object "TnyConnectionPolicy") |
|---|
| | 1074 | (return-type "none") |
|---|
| | 1075 | (parameters |
|---|
| | 1076 | '("TnyAccount*" "account") |
|---|
| | 1077 | ) |
|---|
| | 1078 | ) |
|---|
| | 1079 | |
|---|
| | 1080 | (define-virtual on_disconnect |
|---|
| | 1081 | (of-object "TnyConnectionPolicy") |
|---|
| | 1082 | (return-type "none") |
|---|
| | 1083 | (parameters |
|---|
| | 1084 | '("TnyAccount*" "account") |
|---|
| | 1085 | ) |
|---|
| | 1086 | ) |
|---|
| | 1087 | |
|---|
| | 1088 | (define-virtual set_current |
|---|
| | 1089 | (of-object "TnyConnectionPolicy") |
|---|
| | 1090 | (return-type "none") |
|---|
| | 1091 | (parameters |
|---|
| | 1092 | '("TnyAccount*" "account") |
|---|
| | 1093 | '("TnyFolder*" "folder") |
|---|
| | 1094 | ) |
|---|
| | 1095 | ) |
|---|
| | 1096 | |
|---|
| | 1097 | |
|---|
| | 1098 | |
|---|
| | 1099 | ;; From tny-device.h |
|---|
| | 1100 | |
|---|
| | 1101 | (define-function device_get_type |
|---|
| | 1102 | (c-name "tny_device_get_type") |
|---|
| | 1103 | (return-type "GType") |
|---|
| | 1104 | ) |
|---|
| | 1105 | |
|---|
| < |
|---|