email/mail/UtilsSrc/MsgMailPreferences.inl
branchRCL_3
changeset 27 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Preferences class of Mail editor and viewer, inline functions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MSGMAILPREFERENCES_INL
       
    21 #define MSGMAILPREFERENCES_INL
       
    22 
       
    23 // INLINE FUNCTIONS
       
    24 
       
    25 // ----------------------------------------------------------------------------
       
    26 // TAdditionalHeaderStatus::TAdditionalHeaderStatus 
       
    27 // ----------------------------------------------------------------------------
       
    28 //
       
    29 inline TAdditionalHeaderStatus::TAdditionalHeaderStatus()
       
    30 	:iHeaderValue(TMsgControlId(0)), iStatus(EHeaderHidden),
       
    31 	iHasContent(EFalse)
       
    32     {
       
    33     }
       
    34 
       
    35 // ----------------------------------------------------------------------------
       
    36 // TAdditionalHeaderStatus::TAdditionalHeaderStatus
       
    37 // ----------------------------------------------------------------------------
       
    38 //
       
    39 inline TAdditionalHeaderStatus::TAdditionalHeaderStatus(
       
    40 	TMsgControlId aControlID):iHeaderValue(aControlID),
       
    41 	iStatus(EHeaderHidden), iHasContent(EFalse)
       
    42     {
       
    43     }  
       
    44     
       
    45 
       
    46 // ----------------------------------------------------------------------------
       
    47 // CMsgMailPreferences::MessageScheduling accesses Message Scheduling value
       
    48 // ----------------------------------------------------------------------------
       
    49 //
       
    50 inline CMsgMailPreferences::TMsgMailScheduling CMsgMailPreferences
       
    51     ::MessageScheduling() const 
       
    52     {
       
    53     return iScheduling;
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // CMsgMailPreferences::SendingCharacterSet
       
    58 // ----------------------------------------------------------------------------
       
    59 //
       
    60 inline TUid CMsgMailPreferences::SendingCharacterSet() const
       
    61 	{
       
    62 	return iSendingCharacterSet;
       
    63 	}
       
    64 
       
    65 // ----------------------------------------------------------------------------
       
    66 // CMsgMailPreferences::SetSendingCharacterSet
       
    67 // ----------------------------------------------------------------------------
       
    68 //
       
    69 inline void CMsgMailPreferences::SetSendingCharacterSet(
       
    70 	TUid aSendingCharacterSet)
       
    71 	{
       
    72 	iSendingCharacterSet = aSendingCharacterSet;
       
    73 	}
       
    74 	
       
    75 // ----------------------------------------------------------------------------
       
    76 // CMsgMailPreferences::ServiceId accesses remote mailbox Service ID
       
    77 // Returns: Service ID of currently selected remote mailbox
       
    78 // ----------------------------------------------------------------------------
       
    79 //
       
    80 inline TMsvId CMsgMailPreferences::ServiceId() const
       
    81     {  
       
    82     return iServiceId;
       
    83     }
       
    84 
       
    85 // ----------------------------------------------------------------------------
       
    86 // CMsgMailPreferences::SetMessageScheduling sets Message Scheduling value 
       
    87 // ----------------------------------------------------------------------------
       
    88 //
       
    89 inline void CMsgMailPreferences::SetMessageScheduling(
       
    90     TMsgMailScheduling aScheduling) // new message scheduling value 
       
    91     {
       
    92     iScheduling = aScheduling;
       
    93     }
       
    94 
       
    95 // ----------------------------------------------------------------------------
       
    96 // CMsgMailPreferences::SetServiceId sets remote mailbox Service ID
       
    97 // ----------------------------------------------------------------------------
       
    98 //
       
    99 inline void CMsgMailPreferences::SetServiceId(
       
   100     TMsvId aServiceId) // new remote mailbox service id
       
   101     {
       
   102     iServiceId = aServiceId;
       
   103     }
       
   104 
       
   105 // ----------------------------------------------------------------------------
       
   106 // CMsgMailPreferences::SetEncodingSupport
       
   107 // ----------------------------------------------------------------------------
       
   108 //
       
   109 inline void CMsgMailPreferences::SetEncodingSupport( TBool aSupported )
       
   110     {
       
   111     iEncodingSupported = aSupported;
       
   112     }
       
   113 
       
   114 #endif      // MSGMAILPREFERENCES_INL
       
   115 
       
   116 // End of File