email/alwaysonlineemailplugin/inc/AlwaysOnlineEmailFlags.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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 *     Flags helper class for always online
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef ALWAYSONLINEEMAILFLAGS_H
       
    22 #define ALWAYSONLINEEMAILFLAGS_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 #include <e32def.h>
       
    27 
       
    28 
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * Helper class for flags.
       
    38 */
       
    39 class TAlwaysOnlineEmailFlags
       
    40     {
       
    41     public:
       
    42         /**
       
    43         * constructor
       
    44         */
       
    45         TAlwaysOnlineEmailFlags();
       
    46 
       
    47         /**
       
    48         * Sets flag on
       
    49         * @param aFlag: flag to be set
       
    50         */
       
    51         inline void SetFlag( TUint32 aFlag );
       
    52 
       
    53         /**
       
    54         * Clear flag on
       
    55         * @param aFlag: flag to be cleared
       
    56         */
       
    57         inline void ClearFlag( TUint32 aFlag );
       
    58 
       
    59         /**
       
    60         * Query for the flag
       
    61         * @param aFlag: flag to be checked
       
    62         */
       
    63         inline TBool Flag( TUint32 aFlag ) const;
       
    64 
       
    65     private:
       
    66         TUint32 iFlags;
       
    67 
       
    68     };
       
    69 
       
    70 #include "AlwaysOnlineEmailFlags.inl"
       
    71 
       
    72 #endif
       
    73 
       
    74 // End of file