equal
deleted
inserted
replaced
65 CCalenAttachmentInfo::~CCalenAttachmentInfo() |
65 CCalenAttachmentInfo::~CCalenAttachmentInfo() |
66 { |
66 { |
67 TRACE_ENTRY_POINT; |
67 TRACE_ENTRY_POINT; |
68 TRACE_EXIT_POINT; |
68 TRACE_EXIT_POINT; |
69 delete iIcon; |
69 delete iIcon; |
|
70 if(isSetFileHandle) |
|
71 { |
|
72 iFile.Close(); |
|
73 } |
70 } |
74 } |
71 |
75 |
72 // ---------------------------------------------------------------------------- |
76 // ---------------------------------------------------------------------------- |
73 // CCalenAttachmentInfo::CCalenAttachmentInfo |
77 // CCalenAttachmentInfo::CCalenAttachmentInfo |
74 // Constructor. |
78 // Constructor. |
290 TRACE_EXIT_POINT; |
294 TRACE_EXIT_POINT; |
291 |
295 |
292 return iSystemFileName; |
296 return iSystemFileName; |
293 } |
297 } |
294 |
298 |
|
299 // ---------------------------------------------------------------------------- |
|
300 // CCalenAttachmentInfo::SetFileHandle |
|
301 // |
|
302 //Sets the file handle |
|
303 // ---------------------------------------------------------------------------- |
|
304 // |
|
305 void CCalenAttachmentInfo::SetFileHandle(RFile& aFile) |
|
306 { |
|
307 TRACE_ENTRY_POINT; |
|
308 iFile.Duplicate(aFile); |
|
309 isSetFileHandle = ETrue; |
|
310 TRACE_EXIT_POINT; |
|
311 } |
|
312 |
|
313 // ---------------------------------------------------------------------------- |
|
314 // CCalenAttachmentInfo::FileHandle |
|
315 // |
|
316 //Gets the file handle. |
|
317 // ---------------------------------------------------------------------------- |
|
318 // |
|
319 void CCalenAttachmentInfo::FileHandle( RFile& aFile ) |
|
320 { |
|
321 TRACE_ENTRY_POINT; |
|
322 |
|
323 aFile.Duplicate( iFile ); |
|
324 TRACE_EXIT_POINT; |
|
325 } |
|
326 |
|
327 // ---------------------------------------------------------------------------- |
|
328 // CCalenAttachmentInfo::IsFileHandleSet |
|
329 // ---------------------------------------------------------------------------- |
|
330 // |
|
331 TBool CCalenAttachmentInfo::IsFileHandleSet() |
|
332 { |
|
333 TRACE_ENTRY_POINT; |
|
334 TRACE_EXIT_POINT; |
|
335 |
|
336 return isSetFileHandle; |
|
337 } |
|
338 |
295 //end of file |
339 //end of file |
296 |
340 |
297 |
341 |