Changeset 817
- Timestamp:
- 08/29/06 14:23:40
- Files:
-
- trunk/docs/devel/reference/tmpl/tny-header-view-iface.sgml (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-msg-view-iface.sgml (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-msg-window-iface.sgml (modified) (1 diff)
- trunk/libtinymail/tny-account-iface.c (modified) (11 diffs)
- trunk/libtinymail/tny-account-store-iface.c (modified) (4 diffs)
- trunk/libtinymail/tny-device-iface.c (modified) (1 diff)
- trunk/libtinymail/tny-folder-iface.c (modified) (14 diffs)
- trunk/libtinymail/tny-folder-iface.h (modified) (2 diffs)
- trunk/libtinymail/tny-folder-store-iface.c (modified) (5 diffs)
- trunk/libtinymail/tny-folder-store-query.c (modified) (5 diffs)
- trunk/libtinymail/tny-header-iface.c (modified) (2 diffs)
- trunk/libtinymail/tny-list-iface.c (modified) (1 diff)
- trunk/libtinymail/tny-msg-iface.c (modified) (2 diffs)
- trunk/libtinymailui/tny-account-store-view-iface.c (modified) (1 diff)
- trunk/libtinymailui/tny-account-store-view-iface.h (modified) (1 diff)
- trunk/libtinymailui/tny-header-view-iface.c (modified) (2 diffs)
- trunk/libtinymailui/tny-msg-view-iface.c (modified) (4 diffs)
- trunk/libtinymailui/tny-msg-view-iface.h (modified) (1 diff)
- trunk/libtinymailui/tny-msg-window-iface.h (modified) (1 diff)
- trunk/libtinymailui/tny-platform-factory-iface.c (modified) (3 diffs)
- trunk/libtinymailui/tny-platform-factory-iface.h (modified) (1 diff)
- trunk/libtinymailui/tny-save-strategy-iface.c (modified) (1 diff)
- trunk/libtinymailui/tny-save-strategy-iface.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/devel/reference/tmpl/tny-header-view-iface.sgml
r806 r817 3 3 4 4 <!-- ##### SECTION Short_Description ##### --> 5 A type for showing a #TnyHeaderIface5 A type for showing a header 6 6 7 7 <!-- ##### SECTION Long_Description ##### --> 8 8 <para> 9 A type for showing a #TnyHeaderIface to the user 9 A type for showing a #TnyHeaderIface implementation to the user. This type is often used in a composition 10 with a #TnyMsgViewIface implementation. 10 11 </para> 11 12 12 13 <!-- ##### SECTION See_Also ##### --> 13 14 <para> 14 #TnyHeaderIface 15 #TnyHeaderIface, #TnyMsgViewIface, #TnyMsgWindowIface, #TnyMsgView, #TnyMsgWindow 15 16 </para> 16 17 trunk/docs/devel/reference/tmpl/tny-msg-view-iface.sgml
r806 r817 3 3 4 4 <!-- ##### SECTION Short_Description ##### --> 5 A type that defines a message view5 A type that defines a view for a message 6 6 7 7 <!-- ##### SECTION Long_Description ##### --> 8 8 <para> 9 A view for a message. Implementations of this type should show a message10 to the user.9 A type that defines a view for a #TnyMsgIface implementation. The type is sometimes decorated by a 10 #TnyMsgWindowIface implementation. 11 11 </para> 12 12 13 13 <!-- ##### SECTION See_Also ##### --> 14 14 <para> 15 #TnyMsgIface, #TnyMsgMimePartIface 15 #TnyMsgIface, #TnyMsgMimePartIface, #TnyMsgWindowIface, #TnyMsgView, #TnyMsgWindow 16 16 </para> 17 17 trunk/docs/devel/reference/tmpl/tny-msg-window-iface.sgml
r388 r817 3 3 4 4 <!-- ##### SECTION Short_Description ##### --> 5 A type that defines a message window5 A type that defines a window for showing a message 6 6 7 7 <!-- ##### SECTION Long_Description ##### --> 8 8 <para> 9 A type that shows a new window in which you can view a message 9 A type that shows a new window in which you can view a #TnyMsgIface implementation. The implementation of this type 10 is often designed as a decorator of a #TnyMsgViewIface implementation. It usually wraps the #TnyMsgViewIface 11 implementation with the API and implementation of a window. 10 12 </para> 11 13 12 14 <!-- ##### SECTION See_Also ##### --> 13 15 <para> 14 #TnyMsgIface 16 #TnyMsgIface, #TnyMsgViewIface, #TnyMsgWindow, #TnyMsgView 15 17 </para> 16 18 trunk/libtinymail/tny-account-iface.c
r758 r817 27 27 * @self: a #TnyAccountIface object 28 28 * 29 * Get the account type 29 * Get the account type. There's two account types: a store and a transport 30 * account type. A store account will implement the #TnyFolderStoreIface 31 * interfaces which defines that the type contains folders. 32 * 33 * A transport account has a send method for sending #TnyMsgIface instances 34 * using the transport protocol of the account (for example using SMTP). 30 35 * 31 36 * Return value: The account type … … 47 52 * @self: a #TnyAccountIface object 48 53 * 54 * Get the connection status of an account 55 * 49 56 * Return value: whether or not the account is connected 50 57 **/ … … 65 72 * @self: a #TnyAccountIface object 66 73 * 67 * Get an unique id for the account. 68 * 69 * Return value: Unique id. 74 * Get an unique id for the account. The only certainty you have is that the 75 * id is unique. The format of the id isn't specified. The implementor of the 76 * #TnyAccountStoreIface will set this id using tny_account_iface_set_id. 77 * 78 * Return value: Unique id 70 79 **/ 71 80 const gchar* … … 105 114 * @id: the id 106 115 * 107 * Set the account's unique id. You need to set this property 108 * before you can start using the account. 116 * Set the account's unique id. You need to set this property before you can 117 * start using the account. The id must be unique and is typically set in the 118 * implementation of a #TnyAccountStoreIface. 109 119 * 110 120 **/ … … 129 139 * therefore can be forgotten by the password store. 130 140 * 131 * You need to set this property before you can start using the account. 141 * You need to set this property before you can start using the account. This 142 * property is typically set in the implementation of a #TnyAccountStoreIface. 132 143 * 133 144 * Also see #TnyForgetPassFunc for more information about the function itself. … … 170 181 * 171 182 * Set the url string of an account. You don't need to use this for imap and pop 172 * where you can use the simplified API (set_proto, set_hostname, etc). 183 * where you can use the simplified API (set_proto, set_hostname, etc). This 184 * property is typically set in the implementation of a #TnyAccountStoreIface. 173 185 * 174 186 **/ … … 190 202 * @proto: the protocol (ex. "imap") 191 203 * 192 * Set the protocol of an account. You need to set this property 193 * before you can start using the account. 204 * Set the protocol of an account. You need to set this property before you can 205 * start using the account. This property is typically set in the implementation 206 * of a #TnyAccountStoreIface. 194 207 * 195 208 **/ … … 211 224 * @user: the username 212 225 * 213 * Set the user or login of an account. You need to set this property 214 * before you can start using the account. 226 * Set the user or login of an account. You need to set this property before you 227 * can start using the account. This property is typically set in the 228 * implementation of a #TnyAccountStoreIface. 215 229 * 216 230 **/ … … 232 246 * @host: the hostname 233 247 * 234 * Set the hostname of an account. You need to set this property 235 * before you can start using the account. 248 * Set the hostname of an account. You need to set this property before you can 249 * start using the account. This property is typically set in the implementation 250 * of a #TnyAccountStoreIface. 251 * 236 252 **/ 237 253 void … … 256 272 * function should return the password for a specific account. 257 273 * 258 * You need to set this property before you can start using the account. 274 * You need to set this property before you can start using the account. This 275 * property is typically set in the implementation of a #TnyAccountStoreIface. 259 276 * 260 277 * Also see #TnyGetPassFunc for more information about the function itself. … … 379 396 * tny_account_iface_get_pass_func: 380 397 * @self: a #TnyAccountIface object 381 *382 *383 398 * 384 399 * Return value: A pointer to the get-password function trunk/libtinymail/tny-account-store-iface.c
r758 r817 44 44 * as prompt. It will return TRUE if the reply was affirmative. Or FALSE if not. 45 45 * 46 * When implementing a platform-specific library, you need to implement this47 * method. For example in Gtk+ by using the GtkDialog API.46 * Implementors: when implementing a platform-specific library, you must 47 * implement this method. For example in Gtk+ by using the GtkDialog API. 48 48 * 49 49 * Return value: Whether the user pressed Ok/Yes (TRUE) or Cancel/No (FALSE) … … 66 66 * This method returns a #TnyDeviceIface instance 67 67 * 68 * When implementing a platform-specific library, you need to implement this69 * method and a #TnyDeviceIface implementation.68 * Implementors: when implementing a platform-specific library, you must 69 * implement this method and a #TnyDeviceIface implementation. 70 70 * 71 71 * Return value: the device attached to this account store … … 88 88 * Get the local path that will be used for storing the disk cache 89 89 * 90 * When implementing a platform-specific library, you need to implement this 91 * method. You can simply let it return the path to some folder on the file 92 * system. Note that the callers of this method will not free the result. You 90 * Implementors: when implementing a platform-specific library, you must 91 * implement this method. You can for example let it return the path to some 92 * folder on the file system. 93 * 94 * Note that the callers of this method will not free the result. You 93 95 * are responsible of freeing it up. For example when destroying the 94 96 * #TnyAccountStoreIface implementation instance. … … 114 116 * @types: a #TnyGetAccountsRequestType that describes which account types are needed 115 117 * 116 * Get a read-only list of accounts in the store. 117 * 118 * When implementing a platform-specific library, you need to implement this 119 * method. It is allowed to cache the list (but not required). If you are 120 * implementing an account store for account implementations from libtinymail-camel, 121 * you must register the created accounts with a #TnySessionCamel instance. 122 * 123 * Each created account must also be informed about the #TnySessionCamel instance 124 * being used. Read more about this at tny_account_set_session of #TnyAccount 125 * and tny_session_camel_set_current_accounts of #TnySessionCamel. Note that 126 * this is specific for the libtinymail-camel implementation and isn't a contract 127 * requirement of the interfaces. 128 * 129 * There's multiple samples of #TnyAccountStoreIface implementations in 118 * Get a read-only list of accounts in the store 119 * 120 * Implementors: when implementing a platform-specific library, you must 121 * implement this method. 122 * 123 * It is allowed to cache the list (but not required). If you are implementing 124 * an account store for account implementations from libtinymail-camel, you must 125 * register the created accounts with a #TnySessionCamel instance using the 126 * libtinymail-camel specific tny_session_camel_set_current_accounts API. 127 * 128 * The implementation must fillup @list with instances to the available accounts. 129 * Note that if you cache the list, you must add a reference to each account 130 * added to the list (they will be unreferenced and if the reference count 131 * would reaches zero, an account would no longer be cached). 132 * 133 * With libtinymail-camel each created account must also be informed about the 134 * #TnySessionCamel instance being used. Read more about this at 135 * tny_account_set_session of the libtinymail-camel specific #TnyAccount. 136 * 137 * There are multiple samples of #TnyAccountStoreIface implementations in 130 138 * libtinymail-gnome-desktop, libtinymail-olpc, libtinymail-gpe, 131 139 * libtinymail-maemo and tests/shared/account-store.c which is being used by trunk/libtinymail/tny-device-iface.c
r723 r817 37 37 * @self: a #TnyDeviceIface object 38 38 * 39 * Reset status 39 * Reset status (unforce the status) 40 40 **/ 41 41 void trunk/libtinymail/tny-folder-iface.c
r813 r817 33 33 * Sync changes made to a folder to its backing store, expunging deleted 34 34 * messages (the ones marked with TNY_HEADER_FLAG_DELETED) as well. 35 * 35 36 **/ 36 37 void … … 61 62 * removed message in the list until the expunge happened. You are advised to 62 63 * hide messages that have been marked as being deleted from your summary view. 64 * 63 65 * In Gtk+ for the #GtkTreeView component, you can do this using the 64 66 * #GtkTreeModelFilter tree model filtering model. … … 91 93 * called. 92 94 * 93 * Under a #GMainLoop will this method callback using g_idle_add_full. Without94 * a #GMainLoop, which the framework detects using (g_main_depth > 0), the95 * callbacks will happen in a worker thread at an unknown moment in time (check96 * your locking).97 * 98 * Under a #GMainLoopthe callback doesn't need gdk_threads_enter and95 * When using a #GMainLoop this method will callback using g_idle_add_full. 96 * Without a #GMainLoop, which the libtinymail-camel implementation detects 97 * using (g_main_depth > 0), the callbacks will happen in a worker thread at an 98 * unknown moment in time (check your locking). 99 * 100 * When using Gtk+, the callback doesn't need gdk_threads_enter and 99 101 * gdk_threads_leave in Gtk+. 100 102 * … … 118 120 * @self: a TnyFolderIface object 119 121 * 120 * Refresh the folder. This gets the summary information from the IMAPservice121 * to the ondisk cache and updates it if there was cache already.122 * Refresh the folder. This gets the summary information from the E-Mail service 123 * and writes it to the the on-disk cache or updates it. 122 124 * 123 125 * After this method, tny_folder_iface_get_all_count and … … 125 127 * 126 128 * Also read about tny_folder_iface_get_headers. 129 * 127 130 **/ 128 131 void … … 189 192 * 190 193 * Return value: amount of unread messages 194 * 191 195 **/ 192 196 guint … … 209 213 * 210 214 * Return value: amount of messages 215 * 211 216 **/ 212 217 guint … … 228 233 * 229 234 * Return value: the account of this folder 230 **/ 231 TnyAccountIface* 235 * 236 **/ 237 TnyStoreAccountIface* 232 238 tny_folder_iface_get_account (TnyFolderIface *self) 233 239 { … … 250 256 * 251 257 * Return value: The message instance or NULL on failure 258 * 252 259 **/ 253 260 TnyMsgIface* … … 271 278 * Get a list of message header instances that are in this folder. Also read 272 279 * about tny_folder_iface_refresh. 280 * 273 281 **/ 274 282 void … … 296 304 * 297 305 * Return value: A unique id 306 * 298 307 **/ 299 308 const gchar* … … 316 325 * 317 326 * Return value: The folder name 327 * 318 328 **/ 319 329 const gchar* … … 336 346 * Rename a folder. Most services require the name to be unique in the 337 347 * parent folder. 348 * 338 349 **/ 339 350 void … … 358 369 * 359 370 * Return value: The folder type as a #TnyFolderType enum 371 * 360 372 **/ 361 373 TnyFolderType trunk/libtinymail/tny-folder-iface.h
r813 r817 79 79 const gchar* (*get_name_func) (TnyFolderIface *self); 80 80 const gchar* (*get_id_func) (TnyFolderIface *self); 81 Tny AccountIface* (*get_account_func) (TnyFolderIface *self);81 TnyStoreAccountIface* (*get_account_func) (TnyFolderIface *self); 82 82 void (*set_name_func) (TnyFolderIface *self, const gchar *name); 83 83 TnyFolderType (*get_folder_type_func) (TnyFolderIface *self); … … 97 97 TnyMsgIface* tny_folder_iface_get_message (TnyFolderIface *self, TnyHeaderIface *header); 98 98 void tny_folder_iface_get_headers (TnyFolderIface *self, TnyListIface *headers, gboolean refresh); 99 Tny AccountIface* tny_folder_iface_get_account (TnyFolderIface *self);99 TnyStoreAccountIface* tny_folder_iface_get_account (TnyFolderIface *self); 100 100 const gchar* tny_folder_iface_get_id (TnyFolderIface *self); 101 101 const gchar* tny_folder_iface_get_name (TnyFolderIface *self); trunk/libtinymail/tny-folder-store-iface.c
r812 r817 28 28 * @folder: The folder to remove 29 29 * 30 * Removes folder fromself30 * Removes a folder represented by @folder from the folder store @self 31 31 * 32 32 **/ … … 48 48 * @name: The folder name to create 49 49 * 50 * Creates a new folder in self50 * Creates a new folder in folder store @self 51 51 * 52 52 * Return value: A new folder instance representing the folder that was created 53 * 53 54 **/ 54 55 TnyFolderIface * … … 67 68 * @self: a #TnyFolderStoreIface object 68 69 * @list: A #TnyListIface to fillup 69 * @query: A #TnyFolderStoreQuery object 70 * @query: A #TnyFolderStoreQuery object or NULL 70 71 * 71 * Get a list of child folders from this folder store 72 * Get a list of child folders from the folder store @self. You can use @query to 73 * limit the list of folders with only folders that match the query. 72 74 * 73 75 **/ … … 93 95 * @user_data: user data for the callback 94 96 * 95 * Get a list of child folders from th is folder storeand call back when97 * Get a list of child folders from the folder store @self and call back when 96 98 * finished. 97 99 * … … 100 102 * called. 101 103 * 102 * Under a #GMainLoop will this method callback using g_idle_add_full. Without103 * a #GMainLoop, which the framework detects using (g_main_depth > 0), the104 * callbacks will happen in a worker thread at an unknown moment in time (check105 * your locking).104 * When using a #GMainLoop, this method will callback using g_idle_add_full. 105 * Without a #GMainLoop, which the libtinymail-camel implementations detect 106 * using (g_main_depth > 0), the callbacks will happen in a worker thread at an 107 * unknown moment in time (check your locking). 106 108 * 107 * Under a #GMainLoopthe callback doesn't need gdk_threads_enter and109 * When using Gtk+ the callback doesn't need gdk_threads_enter and 108 110 * gdk_threads_leave in Gtk+. 109 111 * trunk/libtinymail/tny-folder-store-query.c
r802 r817 29 29 static GObjectClass *item_parent_class; 30 30 31 /** 32 * tny_folder_store_query_new: 33 * 34 * Return value: a new #TnyFolderStoreQuery instance 35 * 36 **/ 31 37 TnyFolderStoreQuery* 32 38 tny_folder_store_query_new (void) … … 173 179 } 174 180 181 /** 182 * tny_folder_store_query_add_item: 183 * @query: a #TnyFolderStoreQuery object 184 * @pattern: a regular expression 185 * @options: a #TnyFolderStoreQueryOption enum 186 * 187 * Add a "AND" query-item to the query. 188 * 189 * If the options contain TNY_FOLDER_STORE_QUERY_OPTION_MATCH_ON_NAME or 190 * TNY_FOLDER_STORE_QUERY_OPTION_MATCH_ON_ID then pattern will be used as 191 * regular expression for matching the property of the folders. 192 * 193 * The tny_folder_iface_get_name and tny_folder_iface_get_id properties will 194 * then be used. 195 * 196 * For the options TNY_FOLDER_STORE_QUERY_OPTION_SUBSCRIBED and 197 * TNY_FOLDER_STORE_QUERY_OPTION_UNSUBSCRIBED, the folder subscription status 198 * is used. 199 * 200 **/ 175 201 void 176 202 tny_folder_store_query_add_item (TnyFolderStoreQuery *query, const gchar *pattern, TnyFolderStoreQueryOption options) … … 209 235 } 210 236 237 /** 238 * tny_folder_store_query_get_items: 239 * @query: a #TnyFolderStoreQuery object 240 * 241 * Get a list of AND query items 242 * 243 * Return value: a list of AND query items 244 **/ 211 245 TnyListIface* 212 246 tny_folder_store_query_get_items (TnyFolderStoreQuery *query) … … 216 250 217 251 252 /** 253 * tny_folder_store_query_item_get_options: 254 * @item: a #TnyFolderStoreQueryItem object 255 * 256 * Get the options of the AND query item @item 257 * 258 * Return value: the options of a AND query item 259 * 260 **/ 218 261 TnyFolderStoreQueryOption 219 262 tny_folder_store_query_item_get_options (TnyFolderStoreQueryItem *item) … … 223 266 224 267 268 /** 269 * tny_folder_store_query_item_get_regex: 270 * @item: a #TnyFolderStoreQueryItem object 271 * 272 * Get the compiled regular expression of the AND query item @item 273 * 274 * Return value: the compiled regular expression of a AND query item 275 * 276 **/ 225 277 regex_t* 226 278 tny_folder_store_query_item_get_regex (TnyFolderStoreQueryItem *item) trunk/libtinymail/tny-header-iface.c
r760 r817 67 67 * @bcc: the bcc header in a comma separated list 68 68 * 69 * Set the bcc header. Also look at the to header for more information69 * Set the bcc header. Look at the to header for more information 70 70 * about formatting. 71 71 * … … 88 88 * @cc: the cc header in a comma separated list 89 89 * 90 * Set the cc header. Also look at the to header for more information90 * Set the cc header. Look at the to header for more information 91 91 * about formatting. 92 92 * trunk/libtinymail/tny-list-iface.c
r760 r817 117 117 * An iterator is a position indicator for a list. It keeps the position 118 118 * state of a list iteration. The list itself does not keep any position 119 * information. This makes it possible to create multiple iterations consuming120 * multiple iterator instances simultanously.119 * information. This makes it possible to have multiple list-iterations by 120 * consuming multiple iterator instances simultanously. 121 121 * 122 122 * The reason why the method isn't called get_iterator is because it's a trunk/libtinymail/tny-msg-iface.c
r803 r817 30 30 * unreferenced after use. 31 31 * 32 * Return value: The parent folder of this message 32 * Return value: The parent folder of this message or NULL if none 33 33 **/ 34 34 TnyFolderIface* … … 94 94 * 95 95 * Return value: The id of the added mime-part 96 * 96 97 **/ 97 98 gint trunk/libtinymailui/tny-account-store-view-iface.c
r520 r817 28 28 * @account_store: A #TnyAccountStoreIface instace 29 29 * 30 * Set the account store 30 * Set the account store of the view 31 31 * 32 32 **/ trunk/libtinymailui/tny-account-store-view-iface.h
r387 r817 45 45 }; 46 46 47 GType tny_account_store_view_iface_get_type (void);47 GType tny_account_store_view_iface_get_type (void); 48 48 49 49 void tny_account_store_view_iface_set_account_store (TnyAccountStoreViewIface *self, TnyAccountStoreIface *account_store); trunk/libtinymailui/tny-header-view-iface.c
r805 r817 22 22 #include <tny-header-view-iface.h> 23 23 24 25 /** 26 * tny_header_view_iface_clear: 27 * @self: A #TnyHeaderViewIface instance 28 * 29 * Clear the view @self (show nothing) 30 * 31 * Implementors: this method should clear @self (display nothing) 32 * 33 **/ 24 34 void 25 35 tny_header_view_iface_clear (TnyHeaderViewIface *self) … … 40 50 * @header: A #TnyHeaderIface instace 41 51 * 42 * Set header to view52 * Set header of the view @self (show nothing) 43 53 * 54 * Implementors: this method should cause the view @self to show the header 55 * @header to the user. Often this means showing the from, to, subject, date 56 * and cc labels. 57 * 58 * #TnyHeaderViewIface is often used in a composition with the #TnyMsgViewIface 59 * type (the #TnyMsgViewIface implementation contains a #TnyHeaderViewIface). 60 * 44 61 **/ 45 62 void trunk/libtinymailui/tny-msg-view-iface.c
r805 r817 27 27 * @self: A #TnyMsgViewIface instance 28 28 * 29 * Clear the view (show nothing)29 * Clear the view @self (show nothing) 30 30 * 31 * Implementors: this method should clear @self (display nothing) 32 * 31 33 **/ 32 34 void … … 47 49 * @self: A #TnyMsgViewIface instance 48 50 * 49 * Set the view to display the factthat the message was unavailable51 * Set the view @self to display that the message was unavailable 50 52 * 53 * Implementors: this method should set @self to display a message like 54 * "Message unavailable" or any other indication that a specific message 55 * isn't available. 56 * 51 57 **/ 52 58 void … … 70 76 * Set the strategy used for saving mime-parts 71 77 * 78 * Implementors: This method should set the strategy for saving a mime-part. 79 * The user interface of the view can for example have a popup menu in its 80 * attachment viewer that will have to use this strategy for saving the 81 * mime-part. 82 * 83 * The idea is that devices can have a specific such strategy. For example a 84 * strategy that sends it to another computer or a strategy that saves it to 85 * a flash disk. However. In the message view component, you don't care about 86 * that. You only care about the API of the save-strategy interface. 87 * 72 88 **/ 73 89 void … … 91 107 * @msg: A #TnyMsgIface instace 92 108 * 93 * Set message to view109 * Set message of the view @self 94 110 * 111 * Implementors: this method should cause the view @self to show the message 112 * @msg to the user. This includes showing the header (for which you can 113 * make a composition with a #TnyHeaderViewIface), the message body and the 114 * attachments. 115 * 116 * You can get a list of mime-parts using the tny_msg_iface_get_parts API of 117 * the #TnyMsgIface type. If the mime-part has as content type a type that your 118 * viewer supports and recognises as an E-mail body (you can check the content 119 * type if a mime-part using tny_mime_part_iface_content_type_is), the view 120 * should show it. 121 * 122 * It's advised to use the #TnyStreamIface API for streaming the decoded content 123 * of the mime-part to the model of your view that will display the body. 124 * Examples are #TnyMsgView in libtinymailui-gtk and #TnyMozEmbedMsgView in 125 * libtinymailui-mozembed. If you don't decode the content of the mime-part, 126 * for example using tny_mime_part_iface_decode_to_stream, the content might be 127 * encoded in a format suitable for data transfer over for example SMTP. 128 * 95 129 **/ 96 130 void trunk/libtinymailui/tny-msg-view-iface.h
r805 r817 44 44 GTypeInterface parent; 45 45 46 void (*set_msg_func) (TnyMsgViewIface *self, TnyMsgIface *msg);46 void (*set_msg_func) (TnyMsgViewIface *self, TnyMsgIface *msg); 47 47 void (*set_save_strategy_func) (TnyMsgViewIface *self, TnySaveStrategyIface *strategy); 48 void (*set_unavailable_func) (TnyMsgViewIface *self);49 void (*clear_func) (TnyMsgViewIface *self);48 void (*set_unavailable_func) (TnyMsgViewIface *self); 49 void (*clear_func) (TnyMsgViewIface *self); 50 50 51 51 }; 52 52 53 GType tny_msg_view_iface_get_type (void);53 GType tny_msg_view_iface_get_type (void); 54 54 55 void tny_msg_view_iface_set_msg (TnyMsgViewIface *self, TnyMsgIface *msg);55 void tny_msg_view_iface_set_msg (TnyMsgViewIface *self, TnyMsgIface *msg); 56 56 void tny_msg_view_iface_set_save_strategy (TnyMsgViewIface *self, TnySaveStrategyIface *strategy); 57 void tny_msg_view_iface_set_unavailable (TnyMsgViewIface *self);58 void tny_msg_view_iface_clear (TnyMsgViewIface *self);57 void tny_msg_view_iface_set_unavailable (TnyMsgViewIface *self); 58 void tny_msg_view_iface_clear (TnyMsgViewIface *self); 59 59 60 60 trunk/libtinymailui/tny-msg-window-iface.h
r286 r817 44 44 }; 45 45 46 GType tny_msg_window_iface_get_type(void);46 GType tny_msg_window_iface_get_type (void); 47 47 48 48 trunk/libtinymailui/tny-platform-factory-iface.c
r762 r817 29 29 * @self: a TnyPlatformFactoryIface object 30 30 * 31 * When implementing a platform-specific library, you need to implement this32 * method. You must simply return anew #TnyAccountStoreIface instance.31 * Implementors: when implementing a platform-specific library, return a 32 * new #TnyAccountStoreIface instance. 33 33 * 34 34 * Return value: a #TnyAccountStoreIface instance … … 50 50 * @self: a TnyPlatformFactoryIface object 51 51 * 52 * When implementing a platform-specific library, you need to implement this53 * method. You must simply return anew #TnyDeviceIface instance.52 * Implementors: when implementing a platform-specific library, return a 53 * new #TnyDeviceIface instance. 54 54 * 55 55 * Return value: a #TnyDeviceIface instance … … 71 71 * @self: a TnyPlatformFactoryIface object 72 72 * 73 * When implementing a platform-specific library, you need to implement this74 * method. You must simply return anew #TnyMsgViewIface instance.73 * Implementors: when implementing a platform-specific library, return a 74 * new #TnyMsgViewIface instance. 75 75 * 76 76 * Return value: a #TnyMsgViewIface instance trunk/libtinymailui/tny-platform-factory-iface.h
r687 r817 44 44 GTypeInterface parent; 45 45 46 TnyAccountStoreIface* (*new_account_store_func)(TnyPlatformFactoryIface *self);47 TnyDeviceIface* (*new_device_func)(TnyPlatformFactoryIface *self);48 TnyMsgViewIface* (*new_msg_view_func)(TnyPlatformFactoryIface *self);46 TnyAccountStoreIface* (*new_account_store_func) (TnyPlatformFactoryIface *self); 47 TnyDeviceIface* (*new_device_func) (TnyPlatformFactoryIface *self); 48 TnyMsgViewIface* (*new_msg_view_func) (TnyPlatformFactoryIface *self); 49 49 }; 50 50 51 51 GType tny_platform_factory_iface_get_type (void); 52 52 53 TnyAccountStoreIface* tny_platform_factory_iface_new_account_store(TnyPlatformFactoryIface *self);54 TnyDeviceIface* tny_platform_factory_iface_new_device(TnyPlatformFactoryIface *self);55 TnyMsgViewIface* tny_platform_factory_iface_new_msg_view(TnyPlatformFactoryIface *self);53 TnyAccountStoreIface* tny_platform_factory_iface_new_account_store (TnyPlatformFactoryIface *self); 54 TnyDeviceIface* tny_platform_factory_iface_new_device (TnyPlatformFactoryIface *self); 55 TnyMsgViewIface* tny_platform_factory_iface_new_msg_view (TnyPlatformFactoryIface *self); 56 56 57 57 G_END_DECLS trunk/libtinymailui/tny-save-strategy-iface.c
r762 r817 28 28 * 29 29 * Performs the saving of a mime part 30 * 31 * Implementors: the idea is that devices can have a specific such strategy. 32 * For example a strategy that sends it to another computer or a strategy that 33 * saves it to a flash disk. 34 * 35 * The method is typically called by the implementation of a #TnyMsgViewIface. 36 * For example a clicked handler of a popup menu of a attachment view in the 37 * #TnyMsgViewIface implementation. 30 38 * 31 39 **/ trunk/libtinymailui/tny-save-strategy-iface.h
r710 r817 45 45 46 46 GType tny_save_strategy_iface_get_type (void); 47 void tny_save_strategy_iface_save(TnySaveStrategyIface *self, TnyMimePartIface *part);47 void tny_save_strategy_iface_save (TnySaveStrategyIface *self, TnyMimePartIface *part); 48 48 49 49 G_END_DECLS
