Changeset 3275

Show
Ignore:
Timestamp:
01/17/08 11:16:18
Author:
mdoff
Message:

Modify .defs to take account of changes in API.
Start to wrap missing callback functions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3268 r3275  
     12008-01-16  Mark Doffman  <mark.doffman@codethink.co.uk> 
     2        * bindings/python/*.defs: Regenerate .defs files for updated API. 
     3 
     4        * bindings/python/*.override: Add missing headers and Gtk types. 
     5 
     6        * bindings/python/tinymail.override: Begin adding wrappers for 
     7        callbacks. 
     8 
    192008-01-16  Jürg Billeter  <j@bitron.ch> 
    210 
  • trunk/bindings/python/gendefs/Makefile.am

    r2772 r3275  
    1313# 
    1414tinymail_h_files = \ 
    15         $(top_srcdir)/libtinymail/tny-account.h \ 
    16         $(top_srcdir)/libtinymail/tny-account-store.h \ 
    17         $(top_srcdir)/libtinymail/tny-combined-account.h \ 
    18         $(top_srcdir)/libtinymail/tny-device.h \ 
    19         $(top_srcdir)/libtinymail/tny-enums.h \ 
    20         $(top_srcdir)/libtinymail/tny-error.h \ 
    21         $(top_srcdir)/libtinymail/tny-folder-change.h \ 
    22         $(top_srcdir)/libtinymail/tny-folder.h \ 
    23         $(top_srcdir)/libtinymail/tny-folder-monitor.h \ 
    24         $(top_srcdir)/libtinymail/tny-folder-observer.h \ 
    25         $(top_srcdir)/libtinymail/tny-folder-stats.h \ 
    26         $(top_srcdir)/libtinymail/tny-folder-store-change.h \ 
    27         $(top_srcdir)/libtinymail/tny-folder-store.h \ 
    28         $(top_srcdir)/libtinymail/tny-folder-store-observer.h \ 
    29         $(top_srcdir)/libtinymail/tny-folder-store-query.h \ 
    30         $(top_srcdir)/libtinymail/tny-fs-stream.h \ 
    31         $(top_srcdir)/libtinymail/tny-header.h \ 
    32         $(top_srcdir)/libtinymail/tny-iterator.h \ 
    33         $(top_srcdir)/libtinymail/tny-list.h \ 
    34         $(top_srcdir)/libtinymail/tny-lockable.h \ 
    35         $(top_srcdir)/libtinymail/tny-merge-folder.h \ 
    36         $(top_srcdir)/libtinymail/tny-mime-part.h \ 
    37         $(top_srcdir)/libtinymail/tny-msg.h \ 
    38         $(top_srcdir)/libtinymail/tny-msg-receive-strategy.h \ 
    39         $(top_srcdir)/libtinymail/tny-msg-remove-strategy.h \ 
    40         $(top_srcdir)/libtinymail/tny-noop-lockable.h \ 
    41         $(top_srcdir)/libtinymail/tny-pair.h \ 
    42         $(top_srcdir)/libtinymail/tny-password-getter.h \ 
    43         $(top_srcdir)/libtinymail/tny-send-queue.h \ 
    44         $(top_srcdir)/libtinymail/tny-shared.h \ 
    45         $(top_srcdir)/libtinymail/tny-signals-marshal.h \ 
    46         $(top_srcdir)/libtinymail/tny-simple-list.h \ 
    47         $(top_srcdir)/libtinymail/tny-status.h \ 
    48         $(top_srcdir)/libtinymail/tny-store-account.h \ 
    49         $(top_srcdir)/libtinymail/tny-stream.h \ 
    50         $(top_srcdir)/libtinymail/tny-transport-account.h 
     15        $(top_srcdir)/libtinymail/tny-account.h \ 
     16        $(top_srcdir)/libtinymail/tny-account-store.h \ 
     17        $(top_srcdir)/libtinymail/tny-combined-account.h \ 
     18        $(top_srcdir)/libtinymail/tny-connection-policy.h \ 
     19        $(top_srcdir)/libtinymail/tny-device.h \ 
     20        $(top_srcdir)/libtinymail/tny-enums.h \ 
     21        $(top_srcdir)/libtinymail/tny-error.h \ 
     22        $(top_srcdir)/libtinymail/tny-folder-change.h \ 
     23        $(top_srcdir)/libtinymail/tny-folder.h \ 
     24        $(top_srcdir)/libtinymail/tny-folder-monitor.h \ 
     25        $(top_srcdir)/libtinymail/tny-folder-observer.h \ 
     26        $(top_srcdir)/libtinymail/tny-folder-stats.h \ 
     27        $(top_srcdir)/libtinymail/tny-folder-store-change.h \ 
     28        $(top_srcdir)/libtinymail/tny-folder-store.h \ 
     29        $(top_srcdir)/libtinymail/tny-folder-store-observer.h \ 
     30        $(top_srcdir)/libtinymail/tny-folder-store-query.h \ 
     31        $(top_srcdir)/libtinymail/tny-fs-stream.h \ 
     32        $(top_srcdir)/libtinymail/tny.h \ 
     33        $(top_srcdir)/libtinymail/tny-header.h \ 
     34        $(top_srcdir)/libtinymail/tny-iterator.h \ 
     35        $(top_srcdir)/libtinymail/tny-list.h \ 
     36        $(top_srcdir)/libtinymail/tny-lockable.h \ 
     37        $(top_srcdir)/libtinymail/tny-merge-folder.h \ 
     38        $(top_srcdir)/libtinymail/tny-mime-part.h \ 
     39        $(top_srcdir)/libtinymail/tny-msg.h \ 
     40        $(top_srcdir)/libtinymail/tny-msg-receive-strategy.h \ 
     41        $(top_srcdir)/libtinymail/tny-msg-remove-strategy.h \ 
     42        $(top_srcdir)/libtinymail/tny-noop-lockable.h \ 
     43        $(top_srcdir)/libtinymail/tny-pair.h \ 
     44        $(top_srcdir)/libtinymail/tny-password-getter.h \ 
     45        $(top_srcdir)/libtinymail/tny-send-queue.h \ 
     46        $(top_srcdir)/libtinymail/tny-shared.h \ 
     47        $(top_srcdir)/libtinymail/tny-signals-marshal.h \ 
     48        $(top_srcdir)/libtinymail/tny-simple-list.h \ 
     49        $(top_srcdir)/libtinymail/tny-status.h \ 
     50        $(top_srcdir)/libtinymail/tny-store-account.h \ 
     51        $(top_srcdir)/libtinymail/tny-stream.h \ 
     52        $(top_srcdir)/libtinymail/tny-transport-account.h  
    5153 
    5254tinymail-base.defs: $(tinymail_h_files) $(top_srcdir)/bindings/python/gendefs/defsgen.py 
     
    5456 
    5557tinymailui_h_files = \ 
    56         $(top_srcdir)/libtinymailui/tny-account-store-view.h \ 
    57         $(top_srcdir)/libtinymailui/tny-header-view.h \ 
    58         $(top_srcdir)/libtinymailui/tny-mime-part-saver.h \ 
    59         $(top_srcdir)/libtinymailui/tny-mime-part-save-strategy.h \ 
    60         $(top_srcdir)/libtinymailui/tny-mime-part-view.h \ 
    61         $(top_srcdir)/libtinymailui/tny-msg-view.h \ 
    62         $(top_srcdir)/libtinymailui/tny-msg-window.h \ 
    63         $(top_srcdir)/libtinymailui/tny-platform-factory.h \ 
    64         $(top_srcdir)/libtinymailui/tny-summary-view.h 
     58        $(top_srcdir)/libtinymailui/tny-account-store-view.h \ 
     59        $(top_srcdir)/libtinymailui/tny-header-view.h \ 
     60        $(top_srcdir)/libtinymailui/tny-mime-part-saver.h \ 
     61        $(top_srcdir)/libtinymailui/tny-mime-part-save-strategy.h \ 
     62        $(top_srcdir)/libtinymailui/tny-mime-part-view.h \ 
     63        $(top_srcdir)/libtinymailui/tny-msg-view.h \ 
     64        $(top_srcdir)/libtinymailui/tny-msg-window.h \ 
     65        $(top_srcdir)/libtinymailui/tny-platform-factory.h \ 
     66        $(top_srcdir)/libtinymailui/tny-summary-view.h \ 
     67        $(top_srcdir)/libtinymailui/tnyui.h  
    6568 
    6669tinymailui-base.defs: $(tinymailui_h_files) $(top_srcdir)/bindings/python/gendefs/defsgen.py 
     
    6871 
    6972tinymailui_gtk_h_files = \ 
    70         $(top_srcdir)/libtinymailui-gtk/tny-gtk-account-list-model.h \ 
    71         $(top_srcdir)/libtinymailui-gtk/tny-gtk-attach-list-model.h \ 
    72         $(top_srcdir)/libtinymailui-gtk/tny-gtk-attachment-mime-part-view.h \ 
    73         $(top_srcdir)/libtinymailui-gtk/tny-gtk-enums.h \ 
    74         $(top_srcdir)/libtinymailui-gtk/tny-gtk-folder-store-tree-model.h \ 
    75         $(top_srcdir)/libtinymailui-gtk/tny-gtk-header-list-model.h \ 
    76         $(top_srcdir)/libtinymailui-gtk/tny-gtk-header-view.h \ 
    77         $(top_srcdir)/libtinymailui-gtk/tny-gtk-lockable.h \ 
    78         $(top_srcdir)/libtinymailui-gtk/tny-gtk-mime-part-save-strategy.h \ 
    79         $(top_srcdir)/libtinymailui-gtk/tny-gtk-msg-view.h \ 
    80         $(top_srcdir)/libtinymailui-gtk/tny-gtk-msg-window.h \ 
    81         $(top_srcdir)/libtinymailui-gtk/tny-gtk-password-dialog.h \ 
    82         $(top_srcdir)/libtinymailui-gtk/tny-gtk-text-buffer-stream.h \ 
    83         $(top_srcdir)/libtinymailui-gtk/tny-gtk-text-mime-part-view.h 
     73        $(top_srcdir)/libtinymailui-gtk/tny-gtk-account-list-model.h \ 
     74        $(top_srcdir)/libtinymailui-gtk/tny-gtk-attach-list-model.h \ 
     75        $(top_srcdir)/libtinymailui-gtk/tny-gtk-attachment-mime-part-view.h \ 
     76        $(top_srcdir)/libtinymailui-gtk/tny-gtk-enums.h \ 
     77        $(top_srcdir)/libtinymailui-gtk/tny-gtk-expander-mime-part-view.h \ 
     78        $(top_srcdir)/libtinymailui-gtk/tny-gtk-folder-store-tree-model.h \ 
     79        $(top_srcdir)/libtinymailui-gtk/tny-gtk-header-list-model.h \ 
     80        $(top_srcdir)/libtinymailui-gtk/tny-gtk-header-view.h \ 
     81        $(top_srcdir)/libtinymailui-gtk/tny-gtk-image-mime-part-view.h \ 
     82        $(top_srcdir)/libtinymailui-gtk/tny-gtk-lockable.h \ 
     83        $(top_srcdir)/libtinymailui-gtk/tny-gtk-mime-part-save-strategy.h \ 
     84        $(top_srcdir)/libtinymailui-gtk/tny-gtk-msg-view.h \ 
     85        $(top_srcdir)/libtinymailui-gtk/tny-gtk-msg-window.h \ 
     86        $(top_srcdir)/libtinymailui-gtk/tny-gtk-password-dialog.h \ 
     87        $(top_srcdir)/libtinymailui-gtk/tny-gtk-pixbuf-stream.h \ 
     88        $(top_srcdir)/libtinymailui-gtk/tny-gtk-text-buffer-stream.h \ 
     89        $(top_srcdir)/libtinymailui-gtk/tny-gtk-text-mime-part-view.h  
    8490 
    8591tinymailui-gtk-base.defs: $(tinymailui_gtk_h_files) $(top_srcdir)/bindings/python/gendefs/defsgen.py 
     
    8793 
    8894tinymail_camel_h_files = \ 
    89         $(top_srcdir)/libtinymail-camel/tny-camel-account.h \ 
    90         $(top_srcdir)/libtinymail-camel/tny-camel-folder.h \ 
    91         $(top_srcdir)/libtinymail-camel/tny-camel-full-msg-receive-strategy.h \ 
    92         $(top_srcdir)/libtinymail-camel/tny-camel-header.h \ 
    93         $(top_srcdir)/libtinymail-camel/tny-camel-imap-folder.h \ 
    94         $(top_srcdir)/libtinymail-camel/tny-camel-imap-store-account.h \ 
    95         $(top_srcdir)/libtinymail-camel/tny-camel-mem-stream.h \ 
    96         $(top_srcdir)/libtinymail-camel/tny-camel-mime-part.h \ 
    97         $(top_srcdir)/libtinymail-camel/tny-camel-msg.h \ 
    98         $(top_srcdir)/libtinymail-camel/tny-camel-msg-remove-strategy.h \ 
    99         $(top_srcdir)/libtinymail-camel/tny-camel-nntp-folder.h \ 
    100         $(top_srcdir)/libtinymail-camel/tny-camel-nntp-store-account.h \ 
    101         $(top_srcdir)/libtinymail-camel/tny-camel-partial-msg-receive-strategy.h \ 
    102         $(top_srcdir)/libtinymail-camel/tny-camel-pop-folder.h \ 
    103         $(top_srcdir)/libtinymail-camel/tny-camel-pop-remote-msg-remove-strategy.h \ 
    104         $(top_srcdir)/libtinymail-camel/tny-camel-pop-store-account.h \ 
    105         $(top_srcdir)/libtinymail-camel/tny-camel-send-queue.h \ 
    106         $(top_srcdir)/libtinymail-camel/tny-camel-shared.h \ 
    107         $(top_srcdir)/libtinymail-camel/tny-camel-store-account.h \ 
    108         $(top_srcdir)/libtinymail-camel/tny-camel-stream.h \ 
    109         $(top_srcdir)/libtinymail-camel/tny-camel-transport-account.h \ 
    110         $(top_srcdir)/libtinymail-camel/tny-session-camel.h      
     95        $(top_srcdir)/libtinymail-camel/tny-camel-account.h \ 
     96        $(top_srcdir)/libtinymail-camel/tny-camel-bs-mime-part.h \ 
     97        $(top_srcdir)/libtinymail-camel/tny-camel-bs-msg.h \ 
     98        $(top_srcdir)/libtinymail-camel/tny-camel-bs-msg-receive-strategy.h \ 
     99        $(top_srcdir)/libtinymail-camel/tny-camel-default-connection-policy.h \ 
     100        $(top_srcdir)/libtinymail-camel/tny-camel-folder.h \ 
     101        $(top_srcdir)/libtinymail-camel/tny-camel-full-msg-receive-strategy.h \ 
     102        $(top_srcdir)/libtinymail-camel/tny-camel-header.h \ 
     103        $(top_srcdir)/libtinymail-camel/tny-camel-imap-folder.h \ 
     104        $(top_srcdir)/libtinymail-camel/tny-camel-imap-store-account.h \ 
     105        $(top_srcdir)/libtinymail-camel/tny-camel-mem-stream.h \ 
     106        $(top_srcdir)/libtinymail-camel/tny-camel-mime-part.h \ 
     107        $(top_srcdir)/libtinymail-camel/tny-camel-msg.h \ 
     108        $(top_srcdir)/libtinymail-camel/tny-camel-msg-remove-strategy.h \ 
     109        $(top_srcdir)/libtinymail-camel/tny-camel-nntp-folder.h \ 
     110        $(top_srcdir)/libtinymail-camel/tny-camel-nntp-store-account.h \ 
     111        $(top_srcdir)/libtinymail-camel/tny-camel-partial-msg-receive-strategy.h \ 
     112        $(top_srcdir)/libtinymail-camel/tny-camel-pop-folder.h \ 
     113        $(top_srcdir)/libtinymail-camel/tny-camel-pop-remote-msg-remove-strategy.h \ 
     114        $(top_srcdir)/libtinymail-camel/tny-camel-pop-store-account.h \ 
     115        $(top_srcdir)/libtinymail-camel/tny-camel-recover-connection-policy.h \ 
     116        $(top_srcdir)/libtinymail-camel/tny-camel-send-queue.h \ 
     117        $(top_srcdir)/libtinymail-camel/tny-camel-shared.h \ 
     118        $(top_srcdir)/libtinymail-camel/tny-camel-store-account.h \ 
     119        $(top_srcdir)/libtinymail-camel/tny-camel-stream.h \ 
     120        $(top_srcdir)/libtinymail-camel/tny-camel-transport-account.h \ 
     121        $(top_srcdir)/libtinymail-camel/tny-session-camel.h \ 
     122        $(top_srcdir)/libtinymail-camel/tny-stream-camel.h  
    111123 
    112124tinymail-camel-base.defs : $(tinymail_camel_h_files) $(top_srcdir)/bindings/python/gendefs/defsgen.py 
  • trunk/bindings/python/tinymail-base.defs

    r3269 r3275  
    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 Device 
    21   (in-module "Tny") 
    22   (c-name "TnyDevice") 
    23   (gtype-id "TNY_TYPE_DEVICE") 
    24   (prerequisite "GObject") 
    25 ) 
    26  
    27 (define-interface Folder 
    28   (in-module "Tny") 
    29   (c-name "TnyFolder") 
    30   (gtype-id "TNY_TYPE_FOLDER") 
    31   (prerequisite "GObject") 
    32 ) 
    33  
    34 (define-interface FolderObserver 
    35   (in-module "Tny") 
    36   (c-name "TnyFolderObserver") 
    37   (gtype-id "TNY_TYPE_FOLDER_OBSERVER") 
    38 ) 
    39  
    40 (define-interface FolderStore 
    41   (in-module "Tny") 
    42   (c-name "TnyFolderStore") 
    43   (gtype-id "TNY_TYPE_FOLDER_STORE") 
    44 ) 
    45  
    46 (define-interface FolderStoreObserver 
    47   (in-module "Tny") 
    48   (c-name "TnyFolderStoreObserver") 
    49   (gtype-id "TNY_TYPE_FOLDER_STORE_OBSERVER") 
    50 ) 
    51  
    52 (define-interface Header 
    53   (in-module "Tny") 
    54   (c-name "TnyHeader") 
    55   (gtype-id "TNY_TYPE_HEADER") 
    56   (prerequisite "GObject") 
    57 ) 
    58  
    59 (define-interface Iterator 
    60   (in-module "Tny") 
    61   (c-name "TnyIterator") 
    62   (gtype-id "TNY_TYPE_ITERATOR") 
    63 ) 
    64  
    65 (define-interface List 
    66   (in-module "Tny") 
    67   (c-name "TnyList") 
    68   (gtype-id "TNY_TYPE_LIST") 
    69 ) 
    70  
    71 (define-interface Lockable 
    72   (in-module "Tny") 
    73   (c-name "TnyLockable") 
    74   (gtype-id "TNY_TYPE_LOCKABLE") 
    75 ) 
    76  
    77 (define-interface MimePart 
    78   (in-module "Tny") 
    79   (c-name "TnyMimePart") 
    80   (gtype-id "TNY_TYPE_MIME_PART") 
    81 ) 
    82  
    83 (define-interface Msg 
    84   (in-module "Tny") 
    85   (c-name "TnyMsg") 
    86   (gtype-id "TNY_TYPE_MSG") 
    87   (prerequisite "TnyMimePart") 
    88   (prerequisite "GObject") 
    89 ) 
    90  
    91 (define-interface MsgReceiveStrategy 
    92   (in-module "Tny") 
    93   (c-name "TnyMsgReceiveStrategy") 
    94   (gtype-id "TNY_TYPE_MSG_RECEIVE_STRATEGY") 
    95 ) 
    96  
    97 (define-interface MsgRemoveStrategy 
    98   (in-module "Tny") 
    99   (c-name "TnyMsgRemoveStrategy") 
    100   (gtype-id "TNY_TYPE_MSG_REMOVE_STRATEGY") 
    101 ) 
    102  
    103 (define-interface PasswordGetter 
    104   (in-module "Tny") 
    105   (c-name "TnyPasswordGetter") 
    106   (gtype-id "TNY_TYPE_PASSWORD_GETTER") 
    107 ) 
    108  
    109 (define-interface SendQueue 
    110   (in-module "Tny") 
    111   (c-name "TnySendQueue") 
    112   (gtype-id "TNY_TYPE_SEND_QUEUE") 
    113   (prerequisite "GObject") 
    114 ) 
    115  
    116 (define-interface StoreAccount 
    117   (in-module "Tny") 
    118   (c-name "TnyStoreAccount") 
    119   (gtype-id "TNY_TYPE_STORE_ACCOUNT") 
    120   (prerequisite "TnyAccount") 
    121   (prerequisite "TnyFolderStore") 
    122   (prerequisite "GObject") 
    123 ) 
    124  
    125 (define-interface Stream 
    126   (in-module "Tny") 
    127   (c-name "TnyStream") 
    128   (gtype-id "TNY_TYPE_STREAM") 
    129 ) 
    130  
    131 (define-interface TransportAccount 
    132   (in-module "Tny") 
    133   (c-name "TnyTransportAccount") 
    134   (gtype-id "TNY_TYPE_TRANSPORT_ACCOUNT") 
    135   (prerequisite "TnyAccount") 
    136   (prerequisite "GObject") 
    137 ) 
    138  
    139 ; object definitions ... 
    140  
    141 (define-object CombinedAccount 
    142   (in-module "Tny") 
    143   (parent "GObject") 
    144   (c-name "TnyCombinedAccount") 
    145   (gtype-id "TNY_TYPE_COMBINED_ACCOUNT") 
    146   (implements "TnyAccount") 
    147   (implements "TnyFolderStore") 
    148   (implements "TnyStoreAccount") 
    149   (implements "TnyTransportAccount") 
    150 ) 
    151  
    152 (define-object FolderChange 
    153   (in-module "Tny") 
    154   (parent "GObject") 
    155   (c-name "TnyFolderChange") 
    156   (gtype-id "TNY_TYPE_FOLDER_CHANGE") 
    157 ) 
    158  
    159 (define-object FolderMonitor 
    160   (in-module "Tny") 
    161   (parent "GObject") 
    162   (c-name "TnyFolderMonitor") 
    163   (gtype-id "TNY_TYPE_FOLDER_MONITOR") 
    164   (implements "TnyFolderObserver") 
    165 ) 
    166  
    167 (define-object FolderStats 
    168   (in-module "Tny") 
    169   (parent "GObject") 
    170   (c-name "TnyFolderStats") 
    171   (gtype-id "TNY_TYPE_FOLDER_STATS") 
    172 ) 
    173  
    174 (define-object FolderStoreChange 
    175   (in-module "Tny") 
    176   (parent "GObject") 
    177   (c-name "TnyFolderStoreChange") 
    178   (gtype-id "TNY_TYPE_FOLDER_STORE_CHANGE") 
    179 ) 
    180  
    181 (define-object FolderStoreQuery 
    182   (in-module "Tny") 
    183   (parent "GObject") 
    184   (c-name "TnyFolderStoreQuery") 
    185   (gtype-id "TNY_TYPE_FOLDER_STORE_QUERY") 
    186 ) 
    187  
    188 (define-object FolderStoreQueryItem 
    189   (in-module "Tny") 
    190   (parent "GObject") 
    191   (c-name "TnyFolderStoreQueryItem") 
    192   (gtype-id "TNY_TYPE_FOLDER_STORE_QUERY_ITEM") 
    193 ) 
    194  
    195 (define-object FsStream 
    196   (in-module "Tny") 
    197   (parent "GObject") 
    198   (c-name "TnyFsStream") 
    199   (gtype-id "TNY_TYPE_FS_STREAM") 
    200   (implements "TnyStream") 
    201 ) 
    202  
    203 (define-object MergeFolder 
    204   (in-module "Tny") 
    205   (parent "GObject") 
    206   (c-name "TnyMergeFolder") 
    207   (gtype-id "TNY_TYPE_MERGE_FOLDER") 
    208   (implements "TnyFolder") 
    209   (implements "TnyFolderObserver") 
    210 ) 
    211  
    212 (define-object NoopLockable 
    213   (in-module "Tny") 
    214   (parent "GObject") 
    215   (c-name "TnyNoopLockable") 
    216   (gtype-id "TNY_TYPE_NOOP_LOCKABLE") 
    217   (implements "TnyLockable") 
    218 ) 
    219  
    220 (define-object Pair 
    221   (in-module "Tny") 
    222   (parent "GObject") 
    223   (c-name "TnyPair") 
    224   (gtype-id "TNY_TYPE_PAIR") 
    225 ) 
    226  
    227 (define-object SimpleList 
    228   (in-module "Tny") 
    229   (parent "GObject") 
    230   (c-name "TnySimpleList") 
    231   (gtype-id "TNY_TYPE_SIMPLE_LIST") 
    232   (implements "TnyList") 
    233 ) 
    234  
    235 ; pointer definitions ... 
    236  
    237 ;; Enumerations and Flags ... 
    238  
    239 (define-enum AccountType 
    240   (in-module "Tny") 
    241   (c-name "TnyAccountType") 
    242   (gtype-id "TNY_TYPE_ACCOUNT_TYPE") 
    243   (values 
    244     '("store" "TNY_ACCOUNT_TYPE_STORE") 
    245     '("transport" "TNY_ACCOUNT_TYPE_TRANSPORT") 
    246   ) 
    247 ) 
    248  
    249 (define-enum AlertType 
    250   (in-module "Tny") 
    251   (c-name "TnyAlertType") 
    252   (gtype-id "TNY_TYPE_ALERT_TYPE") 
    253   (values 
    254     '("info" "TNY_ALERT_TYPE_INFO") 
    255     '("warning" "TNY_ALERT_TYPE_WARNING") 
    256     '("error" "TNY_ALERT_TYPE_ERROR") 
    257   ) 
    258 ) 
    259  
    260 (define-enum Error 
    261   (in-module "Tny") 
    262   (c-name "TnyError") 
    263   (gtype-id "TNY_TYPE_ERROR") 
    264   (values 
    265     '("error_unspec" "TNY_ERROR_UNSPEC") 
    266     '("folder_error_sync" "TNY_FOLDER_ERROR_SYNC") 
    267     '("folder_error_remove_msg" "TNY_FOLDER_ERROR_REMOVE_MSG") 
    268     '("folder_error_remove_msgs" "TNY_FOLDER_ERROR_REMOVE_MSGS") 
    269     '("folder_error_add_msg" "TNY_FOLDER_ERROR_ADD_MSG") 
    270     '("folder_error_refresh" "TNY_FOLDER_ERROR_REFRESH") 
    271     '("folder_error_get_msg" "TNY_FOLDER_ERROR_GET_MSG") 
    272     '("folder_error_transfer_msgs" "TNY_FOLDER_ERROR_TRANSFER_MSGS") 
    273     '("folder_error_set_name" "TNY_FOLDER_ERROR_SET_NAME") 
    274     '("folder_error_copy" "TNY_FOLDER_ERROR_COPY") 
    275     '("folder_store_error_remove_folder" "TNY_FOLDER_STORE_ERROR_REMOVE_FOLDER") 
    276     '("folder_store_error_get_folders" "TNY_FOLDER_STORE_ERROR_GET_FOLDERS") 
    277     '("folder_store_error_create_folder" "TNY_FOLDER_STORE_ERROR_CREATE_FOLDER") 
    278     '("transport_account_error_send" "TNY_TRANSPORT_ACCOUNT_ERROR_SEND") 
    279     '("transport_account_error_send_host_lookup_failed" "TNY_TRANSPORT_ACCOUNT_ERROR_SEND_HOST_LOOKUP_FAILED") 
    280     '("transport_account_error_send_service_unavailable" "TNY_TRANSPORT_ACCOUNT_ERROR_SEND_SERVICE_UNAVAILABLE") 
    281     '("transport_account_error_send_authentication_not_supported" "TNY_TRANSPORT_ACCOUNT_ERROR_SEND_AUTHENTICATION_NOT_SUPPORTED") 
    282     '("transport_account_error_send_user_cancel" "TNY_ACCOUNT_ERROR_TRY_CONNECT_SEND_USER_CANCEL") 
    283     '("account_error_try_connect" "TNY_ACCOUNT_ERROR_TRY_CONNECT") 
    284     '("account_error_try_connect_host_lookup_failed" "TNY_ACCOUNT_ERROR_TRY_CONNECT_HOST_LOOKUP_FAILED") 
    285     '("account_error_try_connect_service_unavailable" "TNY_ACCOUNT_ERROR_TRY_CONNECT_SERVICE_UNAVAILABLE") 
    286     '("account_error_try_connect_authentication_not_supported" "TNY_ACCOUNT_ERROR_TRY_CONNECT_AUTHENTICATION_NOT_SUPPORTED") 
    287     '("account_error_try_connect_certificate" "TNY_ACCOUNT_ERROR_TRY_CONNECT_CERTIFICATE") 
    288     '("account_error_try_connect_user_cancel" "TNY_ACCOUNT_ERROR_TRY_CONNECT_USER_CANCEL") 
    289     '("account_store_error_unknown_alert" "TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT") 
    290     '("send_queue_error_add" "TNY_SEND_QUEUE_ERROR_ADD") 
    291     '("account_store_cancel_alert" "TNY_ACCOUNT_STORE_ERROR_CANCEL_ALERT") 
    292     '("account_get_supported_auth" "TNY_ACCOUNT_ERROR_GET_SUPPORTED_AUTH") 
    293   ) 
    294 ) 
    295  
    296 (define-enum ErrorDomain 
    297   (in-module "Tny") 
    298   (c-name "TnyErrorDomain") 
    299   (gtype-id "TNY_TYPE_ERROR_DOMAIN") 
    300   (values 
    301     '("folder_error" "TNY_FOLDER_ERROR") 
    302     '("folder_store_error" "TNY_FOLDER_STORE_ERROR") 
    303     '("transport_account_error" "TNY_TRANSPORT_ACCOUNT_ERROR") 
    304     '("account_error" "TNY_ACCOUNT_ERROR") 
    305     '("account_store_error" "TNY_ACCOUNT_STORE_ERROR") 
    306     '("send_queue_error" "TNY_SEND_QUEUE_ERROR") 
    307   ) 
    308 ) 
    309  
    310 (define-enum FolderType 
    311   (in-module "Tny") 
    312   (c-name "TnyFolderType") 
    313   (gtype-id "TNY_TYPE_FOLDER_TYPE") 
    314   (values 
    315     '("unknown" "TNY_FOLDER_TYPE_UNKNOWN") 
    316     '("normal" "TNY_FOLDER_TYPE_NORMAL") 
    317     '("inbox" "TNY_FOLDER_TYPE_INBOX") 
    318     '("outbox" "TNY_FOLDER_TYPE_OUTBOX") 
    319     '("trash" "TNY_FOLDER_TYPE_TRASH") 
    320     '("junk" "TNY_FOLDER_TYPE_JUNK") 
    321     '("sent" "TNY_FOLDER_TYPE_SENT") 
    322     '("root" "TNY_FOLDER_TYPE_ROOT") 
    323     '("notes" "TNY_FOLDER_TYPE_NOTES") 
    324     '("drafts" "TNY_FOLDER_TYPE_DRAFTS") 
    325     '("contacts" "TNY_FOLDER_TYPE_CONTACTS") 
    326     '("calendar" "TNY_FOLDER_TYPE_CALENDAR") 
    327     '("archive" "TNY_FOLDER_TYPE_ARCHIVE") 
    328     '("merge" "TNY_FOLDER_TYPE_MERGE") 
    329   ) 
    330 ) 
    331  
    332 (define-enum GetAccountsRequestType 
    333   (in-module "Tny") 
    334   (c-name "TnyGetAccountsRequestType") 
    335   (gtype-id "TNY_TYPE_GET_ACCOUNTS_REQUEST_TYPE") 
    336   (values 
    337     '("transport" "TNY_ACCOUNT_STORE_TRANSPORT_ACCOUNTS") 
    338     '("store" "TNY_ACCOUNT_STORE_STORE_ACCOUNTS") 
    339     '("both" "TNY_ACCOUNT_STORE_BOTH") 
    340   ) 
    341 ) 
    342  
    343 (define-enum StatusCode 
    344   (in-module "Tny") 
    345   (c-name "TnyStatusCode") 
    346   (gtype-id "TNY_TYPE_STATUS_CODE") 
    347   (values 
    348     '("folder_status_code_refresh" "TNY_FOLDER_STATUS_CODE_REFRESH") 
    349     '("folder_status_code_get_msg" "TNY_FOLDER_STATUS_CODE_GET_MSG") 
    350     '("get_msg_queue_status_get_msg" "TNY_GET_MSG_QUEUE_STATUS_GET_MSG") 
    351     '("xfer-msgs" "TNY_FOLDER_STATUS_CODE_XFER_MSGS") 
    352     '("copy-folder" "TNY_FOLDER_STATUS_CODE_COPY_FOLDER") 
    353     '("get-secure-auth" "TNY_GET_SUPPORTED_SECURE_AUTH_STATUS_GET_SECURE_AUTH") 
    354     '("code-sync" "TNY_FOLDER_STATUS_CODE_SYNC") 
    355   ) 
    356 ) 
    357  
    358 (define-enum StatusDomain 
    359   (in-module "Tny") 
    360   (c-name "TnyStatusDomain") 
    361   (gtype-id "TNY_TYPE_STATUS_DOMAIN") 
    362   (values 
    363     '("folder_status" "TNY_FOLDER_STATUS") 
    364     '("get_msg_queue_status" "TNY_GET_MSG_QUEUE_STATUS") 
    365     '("secured-auth-status" "TNY_GET_SUPPORTED_SECURE_AUTH_STATUS") 
    366   ) 
    367 ) 
    368  
    369 (define-flags FolderStoreQueryOption 
    370   (in-module "Tny") 
    371   (c-name "TnyFolderStoreQueryOption") 
    372   (gtype-id "TNY_TYPE_FOLDER_STORE_QUERY_OPTION") 
    373   (values 
    374     '("subscribed" "TNY_FOLDER_STORE_QUERY_OPTION_SUBSCRIBED") 
    375     '("unsubscribed" "TNY_FOLDER_STORE_QUERY_OPTION_UNSUBSCRIBED") 
    376     '("match_on_name" "TNY_FOLDER_STORE_QUERY_OPTION_MATCH_ON_NAME") 
    377     '("match_on_id" "TNY_FOLDER_STORE_QUERY_OPTION_MATCH_ON_ID") 
    378     '("pattern_is_case_insensitive" "TNY_FOLDER_STORE_QUERY_OPTION_PATTERN_IS_CASE_INSENSITIVE") 
    379     '("pattern_is_regex" "TNY_FOLDER_STORE_QUERY_OPTION_PATTERN_IS_REGEX") 
    380   ) 
    381 ) 
    382  
    383 (define-flags HeaderFlags 
    384   (in-module "Tny") 
    385   (c-name "TnyHeaderFlags") 
    386   (gtype-id "TNY_TYPE_HEADER_FLAGS") 
    387   (values 
    388     '("answered" "TNY_HEADER_FLAG_ANSWERED") 
    389     '("deleted" "TNY_HEADER_FLAG_DELETED") 
    390     '("draft" "TNY_HEADER_FLAG_DRAFT") 
    391     '("flagged" "TNY_HEADER_FLAG_FLAGGED") 
    392     '("seen" "TNY_HEADER_FLAG_SEEN") 
    393     '("attachments" "TNY_HEADER_FLAG_ATTACHMENTS") 
    394     '("cached" "TNY_HEADER_FLAG_CACHED") 
    395     '("partial" "TNY_HEADER_FLAG_PARTIAL") 
    396     '("expunged" "TNY_HEADER_FLAG_EXPUNGED") 
    397     '("priority" "TNY_HEADER_FLAG_PRIORITY") 
    398   ) 
    399 ) 
    400  
    401  
    402 ;; From tny-account-store.h 
    403  
    404 (define-function account_store_get_type 
    405   (c-name "tny_account_store_get_type") 
    406   (return-type "GType") 
    407 ) 
    408  
    409 (define-function get_accounts_request_type_get_type 
    410   (c-name "tny_get_accounts_request_type_get_type") 
    411   (return-type "GType") 
    412 ) 
    413  
    414 (define-function alert_type_get_type 
    415   (c-name "tny_alert_type_get_type") 
    416   (return-type "GType") 
    417 ) 
    418  
    419 (define-method get_accounts 
    420   (of-object "TnyAccountStore") 
    421   (c-name "tny_account_store_get_accounts") 
    422   (return-type "none") 
    423   (parameters 
    424     '("TnyList*" "list") 
    425     '("TnyGetAccountsRequestType" "types") 
    426   ) 
    427 ) 
    428  
    429 (define-method get_cache_dir 
    430   (of-object "TnyAccountStore") 
    431   (c-name "tny_account_store_get_cache_dir") 
    432   (return-type "const-gchar*") 
    433 ) 
    434  
    435 (define-method get_device 
    436   (of-object "TnyAccountStore") 
    437   (c-name "tny_account_store_get_device") 
    438   (return-type "TnyDevice*") 
    439 ) 
    440  
    441 (define-method alert 
    442   (of-object "TnyAccountStore") 
    443   (c-name "tny_account_store_alert") 
    444   (return-type "gboolean") 
    445   (parameters 
    446     '("TnyAccount*" "account") 
    447     '("TnyAlertType" "type") 
    448     '("gboolean" "question") 
    449     '("const-GError*" "error") 
    450   ) 
    451 ) 
    452  
    453 (define-method find_account 
    454   (of-object "TnyAccountStore") 
    455   (c-name "tny_account_store_find_account") 
    456   (return-type "TnyAccount*") 
    457   (parameters 
    458     '("const-gchar*" "url_string") 
    459   ) 
    460 ) 
    461  
    462 (define-virtual get_accounts_func 
    463   (of-object "TnyAccountStore") 
    464   (return-type "none") 
    465   (parameters 
    466     '("TnyList*" "list") 
    467     '("TnyGetAccountsRequestType" "types") 
    468   ) 
    469 ) 
    470  
    471 (define-virtual get_cache_dir_func 
    472   (of-object "TnyAccountStore") 
    473   (return-type "const-gchar*") 
    474 ) 
    475  
    476 (define-virtual get_device_func 
    477   (of-object "TnyAccountStore") 
    478   (return-type "TnyDevice*") 
    479 ) 
    480  
    481 (define-virtual alert_func 
    482   (of-object "TnyAccountStore") 
    483   (return-type "gboolean") 
    484   (parameters 
    485     '("TnyAccount*" "account") 
    486     '("TnyAlertType" "type") 
    487     '("gboolean" "question") 
    488     '("const-GError*" "error") 
    489   ) 
    490 ) 
    491  
    492 (define-virtual find_account_func 
    493   (of-object "TnyAccountStore") 
    494   (return-type "TnyAccount*") 
    495   (parameters 
    496     '("const-gchar*" "url_string") 
    497   ) 
    498 ) 
    499  
    500 (define-virtual connecting_started 
    501   (of-object "TnyAccountStore") 
    502   (return-type "none") 
    503 ) 
    504  
    505  
    506  
    507 ;; From tny-account.h 
    508  
    509 (define-function account_get_type 
    510   (c-name "tny_account_get_type") 
    511   (return-type "GType") 
    512 ) 
    513  
    514 (define-function account_type_get_type 
    515   (c-name "tny_account_type_get_type") 
    516   (return-type "GType") 
    517 ) 
    518  
    519 (define-method get_connection_status 
    520   (of-object "TnyAccount") 
    521   (c-name "tny_account_get_connection_status") 
    522   (return-type "TnyConnectionStatus") 
    523 ) 
    524  
    525 (define-method set_id 
    526   (of-object "TnyAccount") 
    527   (c-name "tny_account_set_id") 
    528   (return-type "none") 
    529   (parameters 
    530     '("const-gchar*" "id") 
    531   ) 
    532 ) 
    533  
    534 (define-method set_name 
    535   (of-object "TnyAccount") 
    536   (c-name "tny_account_set_name") 
    537   (return-type "none") 
    538   (parameters 
    539     '("const-gchar*" "name") 
    540   ) 
    541 ) 
    542  
    543 (define-method set_secure_auth_mech 
    544   (of-object "TnyAccount") 
    545   (c-name "tny_account_set_secure_auth_mech") 
    546   (return-type "none") 
    547   (parameters 
    548     '("const-gchar*" "mech") 
    549   ) 
    550 ) 
    551  
    552 (define-method set_proto 
    553   (of-object "TnyAccount") 
    554   (c-name "tny_account_set_proto") 
    555   (return-type "none") 
    556   (parameters 
    557     '("const-gchar*" "proto") 
    558   ) 
    559 ) 
    560  
    561 (define-method set_user 
    562   (of-object "TnyAccount") 
    563   (c-name "tny_account_set_user") 
    564   (return-type "none") 
    565   (parameters 
    566     '("const-gchar*" "user") 
    567   ) 
    568 ) 
    569  
    570 (define-method set_hostname 
    571   (of-object "TnyAccount") 
    572   (c-name "tny_account_set_hostname") 
    573   (return-type "none") 
    574   (parameters 
    575     '("const-gchar*" "host") 
    576   ) 
    577 ) 
    578  
    579 (define-method set_port 
    580   (of-object "TnyAccount") 
    581   (c-name "tny_account_set_port") 
    582   (return-type "none") 
    583   (parameters 
    584     '("guint" "port") 
    585   ) 
    586 ) 
    587  
    588 (define-method set_pass_func 
    589   (of-object "TnyAccount") 
    590   (c-name "tny_account_set_pass_func") 
    591   (return-type "none") 
    592   (parameters 
    593     '("TnyGetPassFunc" "get_pass_func") 
    594   ) 
    595 ) 
    596  
    597 (define-method set_url_string 
    598   (of-object "TnyAccount") 
    599   (c-name "tny_account_set_url_string") 
    600   (return-type "none") 
    601   (parameters 
    602     '("const-gchar*" "url_string") 
    603   ) 
    604 ) 
    605  
    606 (define-method get_account_type 
    607   (of-object "TnyAccount") 
    608   (c-name "tny_account_get_account_type") 
    609   (return-type "TnyAccountType") 
    610 ) 
    611  
    612 (define-method get_id 
    613   (of-object "TnyAccount") 
    614   (c-name "tny_account_get_id") 
    615   (return-type "const-gchar*") 
    616 ) 
    617  
    618 (define-method get_name 
    619   (of-object "TnyAccount") 
    620   (c-name "tny_account_get_name") 
    621   (return-type "const-gchar*") 
    622 ) 
    623  
    624 (define-method get_secure_auth_mech 
    625   (of-object "TnyAccount") 
    626   (c-name "tny_account_get_secure_auth_mech") 
    627   (return-type "const-gchar*") 
    628 ) 
    629  
    630 (define-method get_proto 
    631   (of-object "TnyAccount") 
    632   (c-name "tny_account_get_proto") 
    633   (return-type "const-gchar*") 
    634 ) 
    635  
    636 (define-method get_user 
    637   (of-object "TnyAccount") 
    638   (c-name "tny_account_get_user") 
    639   (return-type "const-gchar*") 
    640 ) 
    641  
    642 (define-method get_hostname 
    643   (of-object "TnyAccount") 
    644   (c-name "tny_account_get_hostname") 
    645   (return-type "const-gchar*") 
    646 ) 
    647  
    648 (define-method get_port 
    649   (of-object "TnyAccount") 
    650   (c-name "tny_account_get_port") 
    651   (return-type "guint") 
    652 ) 
    653  
    654 (define-method get_url_string 
    655   (of-object "TnyAccount") 
    656   (c-name "tny_account_get_url_string") 
    657   (return-type "gchar*") 
    658 ) 
    659  
    660 (define-method get_pass_func 
    661   (of-object "TnyAccount") 
    662   (c-name "tny_account_get_pass_func") 
    663   (return-type "TnyGetPassFunc") 
    664 ) 
    665  
    666 (define-method set_forget_pass_func 
    667   (of-object "TnyAccount") 
    668   (c-name "tny_account_set_forget_pass_func") 
    669   (return-type "none") 
    670   (parameters 
    671     '("TnyForgetPassFunc" "forget_pass_func") 
    672   ) 
    673 ) 
    674  
    675 (define-method get_forget_pass_func 
    676   (of-object "TnyAccount") 
    677   (c-name "tny_account_get_forget_pass_func") 
    678   (return-type "TnyForgetPassFunc") 
    679 ) 
    680  
    681 (define-method cancel 
    682   (of-object "TnyAccount") 
    683   (c-name "tny_account_cancel") 
    684   (return-type "none") 
    685 ) 
    686  
    687 (define-method matches_url_string 
    688   (of-object "TnyAccount") 
    689   (c-name "tny_account_matches_url_string") 
    690   (return-type "gboolean") 
    691   (parameters 
    692     '("const-gchar*" "url_string") 
    693   ) 
    694 ) 
    695  
    696 (define-method start_operation 
    697   (of-object "TnyAccount") 
    698   (c-name "tny_account_start_operation") 
    699   (return-type "none") 
    700   (parameters 
    701     '("TnyStatusDomain" "domain") 
    702     '("TnyStatusCode" "code") 
    703     '("TnyStatusCallback" "status_callback") 
    704     '("gpointer" "status_user_data") 
    705   ) 
    706 ) 
    707  
    708 (define-method stop_operation 
    709   (of-object "TnyAccount") 
    710   (c-name "tny_account_stop_operation") 
    711   (return-type "none") 
    712   (parameters 
    713     '("gboolean*" "canceled") 
    714   ) 
    715 ) 
    716  
    717 (define-method is_ready 
    718   (of-object "TnyAccount") 
    719   (c-name "tny_account_is_ready") 
    720   (return-type "gboolean") 
    721 ) 
    722  
    723 (define-virtual get_connection_status_func 
    724   (of-object "TnyAccount") 
    725   (return-type "TnyConnectionStatus") 
    726 ) 
    727  
    728 (define-virtual set_id_func 
    729   (of-object "TnyAccount") 
    730   (return-type "none") 
    731   (parameters 
    732     '("const-gchar*" "id") 
    733   ) 
    734 ) 
    735  
    736 (define-virtual set_name_func 
    737   (of-object "TnyAccount") 
    738   (return-type "none") 
    739   (parameters 
    740     '("const-gchar*" "name") 
    741   ) 
    742 ) 
    743  
    744 (define-virtual set_secure_auth_mech_func 
    745   (of-object "TnyAccount") 
    746   (return-type "none") 
    747   (parameters 
    748     '("const-gchar*" "mech") 
    749   ) 
    750 ) 
    751  
    752 (define-virtual set_proto_func 
    753   (of-object "TnyAccount") 
    754   (return-type "none") 
    755   (parameters 
    756     '("const-gchar*" "proto") 
    757   ) 
    758 ) 
    759  
    760 (define-virtual set_user_func 
    761   (of-object "TnyAccount") 
    762   (return-type "none") 
    763   (parameters 
    764     '("const-gchar*" "user") 
    765   ) 
    766 ) 
    767  
    768 (define-virtual set_hostname_func 
    769   (of-object "TnyAccount") 
    770   (return-type "none") 
    771   (parameters 
    772     '("const-gchar*" "host") 
    773   ) 
    774 ) 
    775  
    776 (define-virtual set_port_func 
    777   (of-object "TnyAccount") 
    778   (return-type "none") 
    779   (parameters 
    780     '("guint" "port") 
    781   ) 
    782 ) 
    783  
    784 (define-virtual set_url_string_func 
    785   (of-object "TnyAccount") 
    786   (return-type "none") 
    787   (parameters 
    788     '("const-gchar*" "url_string") 
    789   ) 
    790 ) 
    791  
    792 (define-virtual set_pass_func_func 
    793   (of-object "TnyAccount") 
    794   (return-type "none") 
    795   (parameters 
    796     '("TnyGetPassFunc" "get_pass_func") 
    797   ) 
    798 ) 
    799  
    800 (define-virtual set_forget_pass_func_func 
    801   (of-object "TnyAccount") 
    802   (return-type "none") 
    803   (parameters 
    804     '("TnyForgetPassFunc" "get_forget_pass_func") 
    805   ) 
    806 ) 
    807  
    808 (define-virtual get_pass_func_func 
    809   (of-object "TnyAccount") 
    810   (return-type "TnyGetPassFunc") 
    811 ) 
    812  
    813 (define-virtual get_forget_pass_func_func 
    814   (of-object "TnyAccount") 
    815   (return-type "TnyForgetPassFunc") 
    816 ) 
    817  
    818 (define-virtual get_id_func 
    819   (of-object "TnyAccount") 
    820   (return-type "const-gchar*") 
    821 ) 
    822  
    823 (define-virtual get_name_func 
    824   (of-object "TnyAccount") 
    825   (return-type "const-gchar*") 
    826 ) 
    827  
    828 (define-virtual get_secure_auth_mech_func 
    829   (of-object "TnyAccount") 
    830   (return-type "const-gchar*") 
    831 ) 
    832  
    833 (define-virtual get_proto_func 
    834   (of-object "TnyAccount") 
    835   (return-type "const-gchar*") 
    836 ) 
    837  
    838 (define-virtual get_user_func 
    839   (of-object "TnyAccount") 
    840   (return-type "const-gchar*") 
    841 ) 
    842  
    843 (define-virtual get_hostname_func 
    844   (of-object "TnyAccount") 
    845   (return-type "const-gchar*") 
    846 ) 
    847  
    848 (define-virtual get_port_func 
    849   (of-object "TnyAccount") 
    850   (return-type "guint") 
    851 ) 
    852  
    853 (define-virtual get_url_string_func 
    854   (of-object "TnyAccount") 
    855   (return-type "gchar*") 
    856 ) 
    857  
    858 (define-virtual get_account_type_func 
    859   (of-object "TnyAccount") 
    860   (return-type "TnyAccountType") 
    861 ) 
    862  
    863 (define-virtual cancel_func 
    864   (of-object "TnyAccount") 
    865   (return-type "none") 
    866 ) 
    867  
    868 (define-virtual matches_url_string_func 
    869   (of-object "TnyAccount") 
    870   (return-type "gboolean") 
    871   (parameters 
    872     '("const-gchar*" "url_string") 
    873   ) 
    874 ) 
    875  
    876 (define-virtual start_operation_func 
    877   (of-object "TnyAccount") 
    878   (return-type "none") 
    879   (parameters 
    880     '("TnyStatusDomain" "domain") 
    881     '("TnyStatusCode" "code") 
    882     '("TnyStatusCallback" "status_callback") 
    883     '("gpointer" "status_user_data") 
    884   ) 
    885 ) 
    886  
    887 (define-virtual stop_operation_func 
    888   (of-object "TnyAccount") 
    889   (return-type "none") 
    890   (parameters 
    891     '("gboolean*" "canceled") 
    892   ) 
    893 ) 
    894  
    895 (define-virtual is_ready_func 
    896   (of-object "TnyAccount") 
    897   (return-type "gboolean") 
    898 ) 
    899  
    900 (define-virtual connection_status_changed 
    901   (of-object "TnyAccount") 
    902   (return-type "none") 
    903   (parameters 
    904     '("TnyConnectionStatus" "status") 
    905   ) 
    906 ) 
    907  
    908 (define-virtual changed 
    909   (of-object "TnyAccount") 
    910   (return-type "none") 
    911 ) 
    912  
    913  
    914  
    915 ;; From tny-combined-account.h 
    916  
    917 (define-function combined_account_get_type 
    918   (c-name "tny_combined_account_get_type") 
    919   (return-type "GType") 
    920 ) 
    921  
    922 (define-function combined_account_new 
    923   (c-name "tny_combined_account_new") 
    924   (is-constructor-of "TnyCombinedAccount") 
    925   (return-type "TnyAccount*") 
    926   (parameters 
    927     '("TnyTransportAccount*" "ta") 
    928     '("TnyStoreAccount*" "sa") 
    929   ) 
    930 ) 
    931  
    932 (define-method get_transport_account 
    933   (of-object "TnyCombinedAccount") 
    934   (c-name "tny_combined_account_get_transport_account") 
    935   (return-type "TnyTransportAccount*") 
    936 ) 
    937  
    938 (define-method get_store_account 
    939   (of-object "TnyCombinedAccount") 
    940   (c-name "tny_combined_account_get_store_account")