email/mail/inc/CMailMessage.inl
branchRCL_3
changeset 27 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     Mail message container, inline functions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CMAILMESSAGE_INL
       
    21 #define CMAILMESSAGE_INL
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 
       
    25 // INCLUDES
       
    26 #include <msvapi.h>
       
    27 #include <miuthdr.h>
       
    28 #include <miutmsg.h>
       
    29 #include <cmsvattachment.h>
       
    30 #include <e32cmn.h>
       
    31 
       
    32 // INLINE FUNCTIONS
       
    33 
       
    34 // ----------------------------------------------------------------------------
       
    35 // CMailMessage::MessageHeader() 
       
    36 // ----------------------------------------------------------------------------
       
    37 //
       
    38 inline CImHeader* CMailMessage::MessageHeader()
       
    39 	{
       
    40 	return iHeader;
       
    41 	}
       
    42 
       
    43 // ----------------------------------------------------------------------------
       
    44 // CMailMessage::MessageBody() 
       
    45 // ----------------------------------------------------------------------------
       
    46 //
       
    47 inline CRichText* CMailMessage::MessageBody()
       
    48 	{
       
    49 	return iBodyText;
       
    50 	}
       
    51 
       
    52 // ----------------------------------------------------------------------------
       
    53 // CMailMessage::MessageEntry() 
       
    54 // ----------------------------------------------------------------------------
       
    55 //
       
    56 inline TMsvEmailEntry CMailMessage::MessageEntry() 
       
    57     { 
       
    58     TRAP_IGNORE( iEntry->SetEntryL( iMessageID ) );
       
    59 	TMsvEmailEntry entry(iEntry->Entry());
       
    60     return entry; 
       
    61     }
       
    62     
       
    63 // ----------------------------------------------------------------------------
       
    64 // CMailMessage::MessageType() 
       
    65 // ----------------------------------------------------------------------------
       
    66 //
       
    67 inline TUid CMailMessage::MessageType() 
       
    68     { 
       
    69     return iEntry->Entry().iMtm; 
       
    70     }
       
    71 
       
    72 // ----------------------------------------------------------------------------
       
    73 // CMailMessage::HtmlContent() 
       
    74 // ----------------------------------------------------------------------------
       
    75 //
       
    76 inline RFile CMailMessage::HtmlContent() 
       
    77     { 
       
    78     return iHtmlFile; 
       
    79     } 
       
    80 
       
    81 // ----------------------------------------------------------------------------
       
    82 // CMailMessage::LinkedHtmlContent() 
       
    83 // ----------------------------------------------------------------------------
       
    84 //
       
    85 inline RFile CMailMessage::LinkedHtmlContent() 
       
    86     { 
       
    87     return iLinkedHtmlFile; 
       
    88     }          
       
    89     
       
    90 // ----------------------------------------------------------------------------
       
    91 // CMailMessage::Session() 
       
    92 // ----------------------------------------------------------------------------
       
    93 //
       
    94 inline CMsvSession* CMailMessage::Session() 
       
    95     { 
       
    96     return &iEntry->Session(); 
       
    97     }      
       
    98 
       
    99 // ----------------------------------------------------------------------------
       
   100 // CMailMessage::Selection() 
       
   101 // ----------------------------------------------------------------------------
       
   102 //
       
   103 inline const CMsvEntrySelection& CMailMessage::Selection() 
       
   104     { 
       
   105     return iMessage->Selection(); 
       
   106     }      
       
   107       
       
   108 // ----------------------------------------------------------------------------
       
   109 // CMailMessage::LinkedHtmlId()
       
   110 // ----------------------------------------------------------------------------
       
   111 //
       
   112 inline TMsvId CMailMessage::LinkedHtmlId() 
       
   113     { 
       
   114     return iLinkedfileId; 
       
   115     }     
       
   116 
       
   117 // ----------------------------------------------------------------------------
       
   118 // CMailMessage::MhtmlPartId()
       
   119 // ----------------------------------------------------------------------------
       
   120 //
       
   121 inline TMsvId CMailMessage::MhtmlPartId() 
       
   122     { 
       
   123     return iMhtmlPartId; 
       
   124     } 
       
   125     
       
   126 // ----------------------------------------------------------------------------
       
   127 // CMailMessage::SetNew()
       
   128 // ----------------------------------------------------------------------------
       
   129 //
       
   130 inline void CMailMessage::SetNew( TBool aNew ) 
       
   131     {
       
   132     iNewMessage = aNew;
       
   133     }     
       
   134 
       
   135 // ----------------------------------------------------------------------------
       
   136 // CMailMessage::IsNew()
       
   137 // ----------------------------------------------------------------------------
       
   138 //
       
   139 inline TBool CMailMessage::IsNew() const 
       
   140     { 
       
   141     return iNewMessage;
       
   142     } 
       
   143          
       
   144 #endif      // CMAILMESSAGE_INL
       
   145 
       
   146 // End of File