Changeset 522
- Timestamp:
- 06/14/06 15:55:53
- Files:
-
- trunk/libtinymail/tny-msg-mime-part-iface.c (modified) (16 diffs)
- trunk/libtinymail/tny-store-account-iface.c (modified) (3 diffs)
- trunk/libtinymail/tny-stream-iface.c (modified) (7 diffs)
- trunk/libtinymail/tny-transport-account-iface.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail/tny-msg-mime-part-iface.c
r408 r522 32 32 tny_msg_mime_part_iface_is_attachment (TnyMsgMimePartIface *self) 33 33 { 34 #ifdef DEBUG 35 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->is_attachment_func) 36 g_critical ("You must implement tny_msg_mime_part_iface_is_attachment\n"); 37 #endif 34 38 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->is_attachment_func (self); 35 39 } … … 47 51 tny_msg_mime_part_iface_set_content_location (TnyMsgMimePartIface *self, const gchar *content_location) 48 52 { 53 #ifdef DEBUG 54 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_content_location_func) 55 g_critical ("You must implement tny_msg_mime_part_iface_set_content_location\n"); 56 #endif 57 49 58 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_content_location_func (self, content_location); 50 59 return; … … 62 71 tny_msg_mime_part_iface_set_description (TnyMsgMimePartIface *self, const gchar *description) 63 72 { 73 #ifdef DEBUG 74 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_description_func) 75 g_critical ("You must implement tny_msg_mime_part_iface_set_description\n"); 76 #endif 77 64 78 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_description_func (self, description); 65 79 return; … … 77 91 tny_msg_mime_part_iface_set_content_id (TnyMsgMimePartIface *self, const gchar *content_id) 78 92 { 93 #ifdef DEBUG 94 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_content_id_func) 95 g_critical ("You must implement tny_msg_mime_part_iface_set_content_id\n"); 96 #endif 97 79 98 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_content_id_func (self, content_id); 80 99 return; … … 92 111 tny_msg_mime_part_iface_set_filename (TnyMsgMimePartIface *self, const gchar *filename) 93 112 { 113 #ifdef DEBUG 114 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_filename_func) 115 g_critical ("You must implement tny_msg_mime_part_iface_set_filename\n"); 116 #endif 117 94 118 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_filename_func (self, filename); 95 119 return; … … 107 131 tny_msg_mime_part_iface_set_content_type (TnyMsgMimePartIface *self, const gchar *content_type) 108 132 { 133 #ifdef DEBUG 134 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_content_type_func) 135 g_critical ("You must implement tny_msg_mime_part_iface_set_content_type\n"); 136 #endif 137 109 138 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->set_content_type_func (self, content_type); 110 139 return; … … 122 151 tny_msg_mime_part_iface_get_filename (TnyMsgMimePartIface *self) 123 152 { 153 #ifdef DEBUG 154 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_filename_func) 155 g_critical ("You must implement tny_msg_mime_part_iface_get_filename\n"); 156 #endif 157 124 158 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_filename_func (self); 125 159 } … … 135 169 tny_msg_mime_part_iface_get_content_id (TnyMsgMimePartIface *self) 136 170 { 171 #ifdef DEBUG 172 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_content_id_func) 173 g_critical ("You must implement tny_msg_mime_part_iface_get_content_id\n"); 174 #endif 175 137 176 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_content_id_func (self); 138 177 } … … 148 187 tny_msg_mime_part_iface_get_description (TnyMsgMimePartIface *self) 149 188 { 189 #ifdef DEBUG 190 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_description_func) 191 g_critical ("You must implement tny_msg_mime_part_iface_get_description\n"); 192 #endif 193 150 194 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_description_func (self); 151 195 } … … 161 205 tny_msg_mime_part_iface_get_content_location (TnyMsgMimePartIface *self) 162 206 { 207 #ifdef DEBUG 208 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_content_location_func) 209 g_critical ("You must implement tny_msg_mime_part_iface_get_content_location\n"); 210 #endif 211 163 212 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_content_location_func (self); 164 213 } … … 177 226 tny_msg_mime_part_iface_write_to_stream (TnyMsgMimePartIface *self, TnyStreamIface *stream) 178 227 { 228 #ifdef DEBUG 229 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->write_to_stream_func) 230 g_critical ("You must implement tny_msg_mime_part_iface_write_to_stream\n"); 231 #endif 232 179 233 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->write_to_stream_func (self, stream); 180 234 return; … … 195 249 tny_msg_mime_part_iface_decode_to_stream (TnyMsgMimePartIface *self, TnyStreamIface *stream) 196 250 { 251 #ifdef DEBUG 252 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->decode_to_stream_func) 253 g_critical ("You must implement tny_msg_mime_part_iface_decode_to_stream\n"); 254 #endif 255 197 256 TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->decode_to_stream_func (self, stream); 198 257 return; … … 211 270 tny_msg_mime_part_iface_construct_from_stream (TnyMsgMimePartIface *self, TnyStreamIface *stream, const gchar *type) 212 271 { 272 #ifdef DEBUG 273 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->construct_from_stream_func) 274 g_critical ("You must implement tny_msg_mime_part_iface_construct_from_stream\n"); 275 #endif 276 213 277 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->construct_from_stream_func (self, stream, type); 214 278 } … … 227 291 tny_msg_mime_part_iface_get_stream (TnyMsgMimePartIface *self) 228 292 { 293 #ifdef DEBUG 294 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_stream_func) 295 g_critical ("You must implement tny_msg_mime_part_iface_get_stream\n"); 296 #endif 297 229 298 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_stream_func (self); 230 299 } … … 242 311 tny_msg_mime_part_iface_get_content_type (TnyMsgMimePartIface *self) 243 312 { 313 #ifdef DEBUG 314 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_content_type_func) 315 g_critical ("You must implement tny_msg_mime_part_iface_get_content_type\n"); 316 #endif 317 244 318 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->get_content_type_func (self); 245 319 } … … 257 331 tny_msg_mime_part_iface_content_type_is (TnyMsgMimePartIface *self, const gchar *content_type) 258 332 { 333 #ifdef DEBUG 334 if (!TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->content_type_is_func) 335 g_critical ("You must implement tny_msg_mime_part_iface_content_type_is\n"); 336 #endif 337 259 338 return TNY_MSG_MIME_PART_IFACE_GET_CLASS (self)->content_type_is_func (self, content_type); 260 339 } trunk/libtinymail/tny-store-account-iface.c
r458 r522 34 34 tny_store_account_iface_unsubscribe (TnyStoreAccountIface *self, TnyMsgFolderIface *folder) 35 35 { 36 #ifdef DEBUG 37 if (!TNY_STORE_ACCOUNT_IFACE_GET_CLASS (self)->unsubscribe_func) 38 g_critical ("You must implement tny_store_account_iface_unsubscribe\n"); 39 #endif 40 36 41 TNY_STORE_ACCOUNT_IFACE_GET_CLASS (self)->unsubscribe_func (self, folder); 37 42 return; … … 49 54 tny_store_account_iface_subscribe (TnyStoreAccountIface *self, TnyMsgFolderIface *folder) 50 55 { 56 #ifdef DEBUG 57 if (!TNY_STORE_ACCOUNT_IFACE_GET_CLASS (self)->subscribe_func) 58 g_critical ("You must implement tny_store_account_iface_subscribe\n"); 59 #endif 60 51 61 TNY_STORE_ACCOUNT_IFACE_GET_CLASS (self)->subscribe_func (self, folder); 52 62 return; … … 65 75 tny_store_account_iface_get_folders (TnyStoreAccountIface *self, TnyStoreAccountFolderType type) 66 76 { 77 #ifdef DEBUG 78 if (!TNY_STORE_ACCOUNT_IFACE_GET_CLASS (self)->get_folders_func) 79 g_critical ("You must implement tny_store_account_iface_get_folders\n"); 80 #endif 81 67 82 return TNY_STORE_ACCOUNT_IFACE_GET_CLASS (self)->get_folders_func (self, type); 68 83 } trunk/libtinymail/tny-stream-iface.c
r408 r522 36 36 tny_stream_iface_write_to_stream (TnyStreamIface *self, TnyStreamIface *output) 37 37 { 38 #ifdef DEBUG 39 if (!TNY_STREAM_IFACE_GET_CLASS (self)->write_to_stream_func) 40 g_critical ("You must implement tny_stream_iface_write_to_stream\n"); 41 #endif 42 38 43 return TNY_STREAM_IFACE_GET_CLASS (self)->write_to_stream_func (self, output); 39 44 } … … 53 58 tny_stream_iface_read (TnyStreamIface *self, char *buffer, size_t n) 54 59 { 60 #ifdef DEBUG 61 if (!TNY_STREAM_IFACE_GET_CLASS (self)->read_func) 62 g_critical ("You must implement tny_stream_iface_read\n"); 63 #endif 64 55 65 return TNY_STREAM_IFACE_GET_CLASS (self)->read_func (self, buffer, n); 56 66 } … … 70 80 tny_stream_iface_write (TnyStreamIface *self, const char *buffer, size_t n) 71 81 { 82 #ifdef DEBUG 83 if (!TNY_STREAM_IFACE_GET_CLASS (self)->write_func) 84 g_critical ("You must implement tny_stream_iface_write\n"); 85 #endif 86 72 87 return TNY_STREAM_IFACE_GET_CLASS (self)->write_func (self, buffer, n); 73 88 } … … 86 101 tny_stream_iface_flush (TnyStreamIface *self) 87 102 { 103 #ifdef DEBUG 104 if (!TNY_STREAM_IFACE_GET_CLASS (self)->flush_func) 105 g_critical ("You must implement tny_stream_iface_flush\n"); 106 #endif 107 88 108 return TNY_STREAM_IFACE_GET_CLASS (self)->flush_func (self); 89 109 } … … 100 120 tny_stream_iface_close (TnyStreamIface *self) 101 121 { 122 #ifdef DEBUG 123 if (!TNY_STREAM_IFACE_GET_CLASS (self)->close_func) 124 g_critical ("You must implement tny_stream_iface_close\n"); 125 #endif 126 102 127 return TNY_STREAM_IFACE_GET_CLASS (self)->close_func (self); 103 128 } … … 115 140 tny_stream_iface_eos (TnyStreamIface *self) 116 141 { 142 #ifdef DEBUG 143 if (!TNY_STREAM_IFACE_GET_CLASS (self)->eos_func) 144 g_critical ("You must implement tny_stream_iface_eos\n"); 145 #endif 146 117 147 return TNY_STREAM_IFACE_GET_CLASS (self)->eos_func (self); 118 148 } … … 131 161 tny_stream_iface_reset (TnyStreamIface *self) 132 162 { 163 #ifdef DEBUG 164 if (!TNY_STREAM_IFACE_GET_CLASS (self)->reset_func) 165 g_critical ("You must implement tny_stream_iface_reset\n"); 166 #endif 167 133 168 return TNY_STREAM_IFACE_GET_CLASS (self)->reset_func (self); 134 169 } trunk/libtinymail/tny-transport-account-iface.c
r379 r522 34 34 tny_transport_account_iface_send (TnyTransportAccountIface *self, TnyMsgIface *msg) 35 35 { 36 #ifdef DEBUG 37 if (!TNY_TRANSPORT_ACCOUNT_IFACE_GET_CLASS (self)->send_func) 38 g_critical ("You must implement tny_transport_account_iface_send\n"); 39 #endif 40 36 41 TNY_TRANSPORT_ACCOUNT_IFACE_GET_CLASS (self)->send_func (self, msg); 37 42 return;
