inc/mmsmsventry.inl
changeset 31 ebfee66fde93
parent 23 238255e8b033
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     1 /*
       
     2 * Copyright (c) 2002, 2003 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 *     Inline methods for TMmsMsvEntry
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 inline TBool TMmsMsvEntry::IsMobileTerminated() const
       
    22     {
       
    23     return iMtmData1 & KMmsMessageMobileTerminated; //lint !e737 never mind the sign
       
    24     }
       
    25 
       
    26 inline void TMmsMsvEntry::SetMobileTerminated( TBool aParam ) 
       
    27     {
       
    28     iMtmData1 = ( iMtmData1 & ~KMmsMessageMobileTerminated ) | //lint !e737 never mind the sign
       
    29         ( aParam ? KMmsMessageMobileTerminated : 0x00 ); //lint !e713 nothing lost here
       
    30     }
       
    31 
       
    32 inline TBool TMmsMsvEntry::IsForwardedMessage() const
       
    33     {
       
    34     return iMtmData1 & KMmsMessageForwarded; //lint !e737 never mind the sign
       
    35     }
       
    36 
       
    37 inline void TMmsMsvEntry::SetForwardedMessage( TBool aParam ) 
       
    38     {
       
    39     iMtmData1 = ( iMtmData1 & ~KMmsMessageForwarded ) | //lint !e737 never mind the sign
       
    40                 ( aParam ? KMmsMessageForwarded : 0x00 ); //lint !e713 nothing lost here
       
    41     }
       
    42 
       
    43 inline TBool TMmsMsvEntry::IsMSendReq() const
       
    44     {
       
    45     return ( iMtmData1 & KMmsMessageTypeMask ) == KMmsMessageMSendReq; //lint !e737 never mind the sign
       
    46     }
       
    47 
       
    48 inline TBool TMmsMsvEntry::IsMNotificationInd() const
       
    49     {
       
    50     return ( iMtmData1 & KMmsMessageTypeMask ) == KMmsMessageMNotificationInd; //lint !e737 never mind the sign
       
    51     }
       
    52 
       
    53 inline TBool TMmsMsvEntry::IsMRetrieveConf() const
       
    54     {
       
    55     return ( iMtmData1 & KMmsMessageTypeMask ) == KMmsMessageMRetrieveConf; //lint !e737 never mind the sign
       
    56     }
       
    57 
       
    58 inline TBool TMmsMsvEntry::IsMDeliveryInd() const
       
    59     {
       
    60     return ( iMtmData1 & KMmsMessageTypeMask ) == KMmsMessageDeliveryInd; //lint !e737 never mind the sign
       
    61     }
       
    62 
       
    63 inline void TMmsMsvEntry::SetMSendReq( )
       
    64     {
       
    65     iMtmData1 = ( iMtmData1 & ~KMmsMessageTypeMask ) | KMmsMessageMSendReq; //lint !e713 !e737 never mind the sign
       
    66     }
       
    67 
       
    68 inline void TMmsMsvEntry::SetMNotificationInd( )
       
    69     {
       
    70     iMtmData1 = ( iMtmData1 & ~KMmsMessageTypeMask  ) | //lint !e737 never mind the sign
       
    71         KMmsMessageMNotificationInd; //lint !e713 nothing lost here
       
    72     }
       
    73 
       
    74 inline void TMmsMsvEntry::SetMRetrieveConf( )
       
    75     {
       
    76     iMtmData1 = ( iMtmData1 & ~KMmsMessageTypeMask ) | KMmsMessageMRetrieveConf; //lint !e713 !e737 never mind the sign
       
    77     }
       
    78 
       
    79 inline void TMmsMsvEntry::SetMDeliveryInd( ) 
       
    80     {
       
    81     iMtmData1 = ( iMtmData1 & ~KMmsMessageTypeMask ) | KMmsMessageDeliveryInd; //lint !e713 !e737 never mind the sign
       
    82     }
       
    83 
       
    84 inline TBool TMmsMsvEntry::MNotifyRespIndSent() const
       
    85     {
       
    86     return iMtmData2 & KMmsNotifyResponseSent; //lint !e737 never mind the sign
       
    87     }
       
    88 
       
    89 inline void TMmsMsvEntry::SetMNotifyRespIndSent( TBool aParam )
       
    90     {
       
    91     iMtmData2 = ( iMtmData2 & ~KMmsNotifyResponseSent ) | //lint !e737 never mind the sign
       
    92         ( aParam ? KMmsNotifyResponseSent : 0x00 ); //lint !e713 nothing lost here
       
    93     }
       
    94 
       
    95 inline TBool TMmsMsvEntry::EditorOriented() const
       
    96     {
       
    97     return iMtmData1 & KMmsMessageEditorOriented; //lint !e737 never mind the sign
       
    98     }
       
    99 
       
   100 inline void TMmsMsvEntry::SetEditorOriented( TBool aParam ) 
       
   101     {
       
   102     iMtmData1 = ( iMtmData1 & ~KMmsMessageEditorOriented ) |  //lint !e737 never mind the sign
       
   103         ( aParam ? KMmsMessageEditorOriented : 0x00 ); //lint !e713 nothing lost here
       
   104     }
       
   105                    
       
   106 // End of File