Changeset 521
- Timestamp:
- 06/14/06 15:50:05
- Files:
-
- trunk/libtinymail-camel/tny-msg-folder.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-msg-priv.h (modified) (1 diff)
- trunk/libtinymail-camel/tny-msg.c (modified) (2 diffs)
- trunk/libtinymail/tny-msg-header-iface.c (modified) (22 diffs)
- trunk/libtinymail/tny-msg-iface.c (modified) (6 diffs)
- trunk/libtinymail/tny-msg-iface.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-camel/tny-msg-folder.c
r491 r521 664 664 message = TNY_MSG_IFACE (tny_msg_new ()); 665 665 666 tny_msg_iface_set_folder (message, self);666 _tny_msg_set_folder (message, self); 667 667 tny_msg_iface_set_header (message, TNY_MSG_HEADER_IFACE (header)); 668 668 _tny_msg_set_camel_mime_message (TNY_MSG (message), camel_message); trunk/libtinymail-camel/tny-msg-priv.h
r483 r521 38 38 }; 39 39 40 CamelMimeMessage* _tny_msg_get_camel_mime_message (TnyMsg *self); 41 void _tny_msg_set_camel_mime_message (TnyMsg *self, CamelMimeMessage *message, gboolean pop); 42 void _tny_msg_header_set_not_uncachable (TnyMsgHeader *self); 40 CamelMimeMessage* _tny_msg_get_camel_mime_message (TnyMsg *self); 41 void _tny_msg_set_camel_mime_message (TnyMsg *self, CamelMimeMessage *message, gboolean pop); 42 void _tny_msg_header_set_not_uncachable (TnyMsgHeader *self); 43 void _tny_msg_set_folder (TnyMsgIface *self, const TnyMsgFolderIface *folder); 43 44 44 45 #endif trunk/libtinymail-camel/tny-msg.c
r483 r521 191 191 192 192 void 193 tny_msg_set_folder (TnyMsgIface *self, const TnyMsgFolderIface* folder)193 _tny_msg_set_folder (TnyMsgIface *self, const TnyMsgFolderIface* folder) 194 194 { 195 195 TnyMsgPriv *priv = TNY_MSG_GET_PRIVATE (TNY_MSG (self)); … … 465 465 klass->add_part_func = tny_msg_add_part; 466 466 klass->del_part_func = tny_msg_del_part; 467 klass->set_folder_func = tny_msg_set_folder;468 467 klass->get_folder_func = tny_msg_get_folder; 469 468 trunk/libtinymail/tny-msg-header-iface.c
r398 r521 35 35 tny_msg_header_iface_set_replyto (TnyMsgHeaderIface *self, const gchar *to) 36 36 { 37 #ifdef DEBUG 38 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_replyto_func) 39 g_critical ("You must implement tny_msg_header_iface_set_replyto\n"); 40 #endif 41 37 42 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_replyto_func (self, to); 38 43 return; … … 50 55 tny_msg_header_iface_get_replyto (TnyMsgHeaderIface *self) 51 56 { 57 #ifdef DEBUG 58 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_replyto_func) 59 g_critical ("You must implement tny_msg_header_iface_get_replyto\n"); 60 #endif 52 61 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_replyto_func (self); 53 62 } … … 65 74 tny_msg_header_iface_set_bcc (TnyMsgHeaderIface *self, const gchar *bcc) 66 75 { 76 #ifdef DEBUG 77 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_bcc_func) 78 g_critical ("You must implement tny_msg_header_iface_set_bcc\n"); 79 #endif 80 67 81 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_bcc_func (self, bcc); 68 82 return; … … 81 95 tny_msg_header_iface_set_cc (TnyMsgHeaderIface *self, const gchar *cc) 82 96 { 97 #ifdef DEBUG 98 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_cc_func) 99 g_critical ("You must implement tny_msg_header_iface_set_cc\n"); 100 #endif 101 83 102 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_cc_func (self, cc); 84 103 return; … … 96 115 tny_msg_header_iface_set_from (TnyMsgHeaderIface *self, const gchar *from) 97 116 { 117 #ifdef DEBUG 118 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_from_func) 119 g_critical ("You must implement tny_msg_header_iface_set_from\n"); 120 #endif 121 98 122 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_from_func (self, from); 99 123 return; … … 111 135 tny_msg_header_iface_set_subject (TnyMsgHeaderIface *self, const gchar *subject) 112 136 { 137 #ifdef DEBUG 138 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_subject_func) 139 g_critical ("You must implement tny_msg_header_iface_set_subject\n"); 140 #endif 141 113 142 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_subject_func (self, subject); 114 143 return; … … 130 159 tny_msg_header_iface_set_to (TnyMsgHeaderIface *self, const gchar *to) 131 160 { 161 #ifdef DEBUG 162 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_to_func) 163 g_critical ("You must implement tny_msg_header_iface_set_to\n"); 164 #endif 165 132 166 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_to_func (self, to); 133 167 return; … … 145 179 tny_msg_header_iface_get_cc (TnyMsgHeaderIface *self) 146 180 { 181 #ifdef DEBUG 182 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_cc_func) 183 g_critical ("You must implement tny_msg_header_iface_get_cc\n"); 184 #endif 185 147 186 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_cc_func (self); 148 187 } … … 159 198 tny_msg_header_iface_get_bcc (TnyMsgHeaderIface *self) 160 199 { 200 #ifdef DEBUG 201 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_bcc_func) 202 g_critical ("You must implement tny_msg_header_iface_get_bcc\n"); 203 #endif 204 161 205 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_bcc_func (self); 162 206 } … … 173 217 tny_msg_header_iface_get_date_received (TnyMsgHeaderIface *self) 174 218 { 219 #ifdef DEBUG 220 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_date_received_func) 221 g_critical ("You must implement tny_msg_header_iface_get_date_received\n"); 222 #endif 223 175 224 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_date_received_func (self); 176 225 } … … 187 236 tny_msg_header_iface_get_date_sent (TnyMsgHeaderIface *self) 188 237 { 238 #ifdef DEBUG 239 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_date_sent_func) 240 g_critical ("You must implement tny_msg_header_iface_get_date_sent\n"); 241 #endif 242 189 243 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_date_sent_func (self); 190 244 } … … 202 256 tny_msg_header_iface_get_uid (TnyMsgHeaderIface *self) 203 257 { 258 #ifdef DEBUG 259 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_uid_func) 260 g_critical ("You must implement tny_msg_header_iface_get_uid\n"); 261 #endif 262 204 263 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_uid_func (self); 205 264 } … … 216 275 tny_msg_header_iface_get_message_id (TnyMsgHeaderIface *self) 217 276 { 277 #ifdef DEBUG 278 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_message_id_func) 279 g_critical ("You must implement tny_msg_header_iface_get_message_id\n"); 280 #endif 281 218 282 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_message_id_func (self); 219 283 } … … 230 294 tny_msg_header_iface_get_from (TnyMsgHeaderIface *self) 231 295 { 296 #ifdef DEBUG 297 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_from_func) 298 g_critical ("You must implement tny_msg_header_iface_get_from\n"); 299 #endif 300 232 301 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_from_func (self); 233 302 } … … 244 313 tny_msg_header_iface_get_subject (TnyMsgHeaderIface *self) 245 314 { 315 #ifdef DEBUG 316 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_subject_func) 317 g_critical ("You must implement tny_msg_header_iface_get_subject\n"); 318 #endif 319 246 320 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_subject_func (self); 247 321 } … … 259 333 tny_msg_header_iface_get_to (TnyMsgHeaderIface *self) 260 334 { 335 #ifdef DEBUG 336 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_to_func) 337 g_critical ("You must implement tny_msg_header_iface_get_to\n"); 338 #endif 339 261 340 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_to_func (self); 262 341 } … … 273 352 tny_msg_header_iface_get_folder (TnyMsgHeaderIface *self) 274 353 { 354 #ifdef DEBUG 355 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_folder_func) 356 g_critical ("You must implement tny_msg_header_iface_get_folder\n"); 357 #endif 358 275 359 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_folder_func (self); 276 360 } … … 286 370 tny_msg_header_iface_set_folder (TnyMsgHeaderIface *self, const TnyMsgFolderIface *folder) 287 371 { 372 #ifdef DEBUG 373 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_folder_func) 374 g_critical ("You must implement tny_msg_header_iface_set_folder\n"); 375 #endif 376 288 377 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_folder_func (self, folder); 289 378 return; … … 301 390 tny_msg_header_iface_get_flags (TnyMsgHeaderIface *self) 302 391 { 392 #ifdef DEBUG 393 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_flags_func) 394 g_critical ("You must implement tny_msg_header_iface_get_flags\n"); 395 #endif 396 303 397 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->get_flags_func (self); 304 398 } … … 315 409 tny_msg_header_iface_set_flags (TnyMsgHeaderIface *self, TnyMsgHeaderFlags mask) 316 410 { 411 #ifdef DEBUG 412 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_flags_func) 413 g_critical ("You must implement tny_msg_header_iface_set_flags\n"); 414 #endif 415 317 416 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_flags_func (self, mask); 318 417 } … … 329 428 tny_msg_header_iface_unset_flags (TnyMsgHeaderIface *self, TnyMsgHeaderFlags mask) 330 429 { 430 #ifdef DEBUG 431 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->unset_flags_func) 432 g_critical ("You must implement tny_msg_header_iface_unset_flags\n"); 433 #endif 434 331 435 return TNY_MSG_HEADER_IFACE_GET_CLASS (self)->unset_flags_func (self, mask); 332 436 } … … 342 446 tny_msg_header_iface_set_uid (TnyMsgHeaderIface *self, const gchar *id) 343 447 { 448 #ifdef DEBUG 449 if (!TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_uid_func) 450 g_critical ("You must implement tny_msg_header_iface_set_uid\n"); 451 #endif 452 344 453 TNY_MSG_HEADER_IFACE_GET_CLASS (self)->set_uid_func (self, id); 345 454 return; trunk/libtinymail/tny-msg-iface.c
r379 r521 34 34 tny_msg_iface_get_folder (TnyMsgIface *self) 35 35 { 36 #ifdef DEBUG 37 if (!TNY_MSG_IFACE_GET_CLASS (self)->get_folder_func) 38 g_critical ("You must implement tny_msg_iface_get_folder\n"); 39 #endif 40 36 41 return TNY_MSG_IFACE_GET_CLASS (self)->get_folder_func (self); 37 }38 39 /**40 * tny_msg_iface_set_folder:41 * @self: a #TnyMsgIface object42 * @folder: The parent folder43 *44 * Set the parent folder of this message45 *46 * * TODO: Make this private, or make it possible to move messages this way *47 *48 **/49 void50 tny_msg_iface_set_folder (TnyMsgIface *self, const TnyMsgFolderIface *folder)51 {52 TNY_MSG_IFACE_GET_CLASS (self)->set_folder_func (self, folder);53 return;54 42 } 55 43 … … 66 54 tny_msg_iface_get_parts (TnyMsgIface *self) 67 55 { 56 #ifdef DEBUG 57 if (!TNY_MSG_IFACE_GET_CLASS (self)->get_parts_func) 58 g_critical ("You must implement tny_msg_iface_get_parts\n"); 59 #endif 68 60 69 61 return TNY_MSG_IFACE_GET_CLASS (self)->get_parts_func (self); … … 82 74 tny_msg_iface_get_header (TnyMsgIface *self) 83 75 { 76 #ifdef DEBUG 77 if (!TNY_MSG_IFACE_GET_CLASS (self)->get_header_func) 78 g_critical ("You must implement tny_msg_iface_get_header\n"); 79 #endif 80 84 81 return TNY_MSG_IFACE_GET_CLASS (self)->get_header_func (self); 85 82 } … … 98 95 tny_msg_iface_add_part (TnyMsgIface *self, TnyMsgMimePartIface *part) 99 96 { 97 #ifdef DEBUG 98 if (!TNY_MSG_IFACE_GET_CLASS (self)->add_part_func) 99 g_critical ("You must implement tny_msg_iface_add_part\n"); 100 #endif 101 100 102 return TNY_MSG_IFACE_GET_CLASS (self)->add_part_func (self, part); 101 103 } … … 112 114 tny_msg_iface_del_part (TnyMsgIface *self, gint id) 113 115 { 116 #ifdef DEBUG 117 if (!TNY_MSG_IFACE_GET_CLASS (self)->del_part_func) 118 g_critical ("You must implement tny_msg_iface_del_part\n"); 119 #endif 120 114 121 TNY_MSG_IFACE_GET_CLASS (self)->del_part_func (self, id); 115 122 return; … … 128 135 tny_msg_iface_set_header (TnyMsgIface *self, TnyMsgHeaderIface *header) 129 136 { 137 #ifdef DEBUG 138 if (!TNY_MSG_IFACE_GET_CLASS (self)->set_header_func) 139 g_critical ("You must implement tny_msg_iface_set_header\n"); 140 #endif 141 130 142 TNY_MSG_IFACE_GET_CLASS (self)->set_header_func (self, header); 131 143 return; trunk/libtinymail/tny-msg-iface.h
r210 r521 45 45 const TnyMsgFolderIface* 46 46 (*get_folder_func) (TnyMsgIface *self); 47 void (*set_folder_func) (TnyMsgIface *self, const TnyMsgFolderIface *folder);48 47 void (*set_header_func) (TnyMsgIface *self, TnyMsgHeaderIface *header); 49 48 … … 63 62 const TnyMsgFolderIface* 64 63 tny_msg_iface_get_folder (TnyMsgIface *self); 65 void tny_msg_iface_set_folder (TnyMsgIface *self, const TnyMsgFolderIface *folder);66 67 64 void tny_msg_iface_set_header (TnyMsgIface *self, TnyMsgHeaderIface *header); 68 65
