pushmtm/Plugins/PushContentHandler/CSIContentHandler.inl
changeset 51 48e827313edd
parent 37 481242ead638
child 53 f427d27b98d8
equal deleted inserted replaced
37:481242ead638 51:48e827313edd
     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 the License "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:  Inline functions.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 inline void CSIContentHandler::SetActionFlag(TBool aAction)      
       
    21 	{
       
    22 	if ( aAction )
       
    23         {
       
    24 		iAttributes |= EAction;
       
    25         }
       
    26 	else
       
    27         {
       
    28 		iAttributes &=~ EAction;
       
    29         }
       
    30 	}
       
    31 
       
    32 inline TBool CSIContentHandler::ActionFlag() const
       
    33 	{
       
    34 	return iAttributes & EAction;
       
    35 	}
       
    36 
       
    37 inline void CSIContentHandler::SetCreatedFlag( TBool aCreated )
       
    38 	{
       
    39 	if ( aCreated )
       
    40         {
       
    41 		iAttributes |= ECreated;
       
    42         }
       
    43 	else
       
    44         {
       
    45 		iAttributes &=~ ECreated;
       
    46         }
       
    47 	}
       
    48 
       
    49 inline TBool CSIContentHandler::CreatedFlag() const
       
    50 	{
       
    51 	return iAttributes & ECreated;
       
    52 	}
       
    53 
       
    54 inline void CSIContentHandler::SetHrefFlag( TBool aHref )
       
    55 	{
       
    56 	if ( aHref )
       
    57         {
       
    58 		iAttributes |= EHref;
       
    59         }
       
    60 	else
       
    61         {
       
    62 		iAttributes &=~ EHref;
       
    63         }
       
    64 	}
       
    65 
       
    66 inline TBool CSIContentHandler::HrefFlag() const
       
    67 	{
       
    68 	return iAttributes & EHref;
       
    69 	}
       
    70 
       
    71 inline void CSIContentHandler::SetExpiresFlag( TBool aExpires )
       
    72 	{
       
    73 	if ( aExpires )
       
    74         {
       
    75 		iAttributes |= EExpires;
       
    76         }
       
    77 	else
       
    78         {
       
    79 		iAttributes &=~ EExpires;
       
    80         }
       
    81 	}
       
    82 
       
    83 inline TBool CSIContentHandler::ExpiresFlag() const
       
    84 	{
       
    85 	return iAttributes & EExpires;
       
    86 	}
       
    87 
       
    88 inline void CSIContentHandler::SetSiIdFlag( TBool aSiId )
       
    89 	{
       
    90 	if ( aSiId )
       
    91         {
       
    92 		iAttributes |= ESiId;
       
    93         }
       
    94 	else
       
    95         {
       
    96 		iAttributes &=~ ESiId;
       
    97         }
       
    98 	}
       
    99 
       
   100 inline TBool CSIContentHandler::SiIdFlag() const
       
   101 	{
       
   102 	return iAttributes & ESiId;
       
   103 	}
       
   104 
       
   105 inline void CSIContentHandler::SetDataFlag( TBool aData )
       
   106 	{
       
   107 	if ( aData )
       
   108         {
       
   109 		iAttributes |= EData;
       
   110         }
       
   111 	else
       
   112         {
       
   113 		iAttributes &=~ EData;
       
   114         }
       
   115 	}
       
   116 
       
   117 inline TBool CSIContentHandler::DataFlag() const
       
   118 	{
       
   119 	return iAttributes & EData;
       
   120 	}
       
   121