IMPSengine/enginc/ImpsVariantAPI.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 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:  Handles variants
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ImpsVariantAPI_H
       
    21 #define ImpsVariantAPI_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "impsservices.h"
       
    25 
       
    26 // ENUMERATIONS
       
    27 
       
    28 enum TImpsVariants
       
    29     {
       
    30     //Variants
       
    31     EDpb = 1,
       
    32     EIpCirStandalone,
       
    33     EWAPUDP,
       
    34     EOpenAPI,
       
    35     EImLauncher
       
    36     };
       
    37 
       
    38 // CLASS DECLARATION
       
    39 class TThreadLocalStoragePackage
       
    40     {
       
    41     public:
       
    42         TInt iUserCount;
       
    43         TInt iFeatureBitMask;
       
    44     };
       
    45 
       
    46 // CLASS DECLARATION
       
    47 
       
    48 /**
       
    49 *  Handler for bldvariants.
       
    50 */
       
    51 class CImpsVariant : public CBase
       
    52     {
       
    53     public:  // Constructors and destructor
       
    54 
       
    55         /**
       
    56         * Two-phased constructor.
       
    57         */
       
    58         IMPORT_C static CImpsVariant* NewLC();
       
    59 
       
    60         /**
       
    61         * Destructor.
       
    62         */
       
    63         virtual ~CImpsVariant();
       
    64 
       
    65     public: // New functions
       
    66 
       
    67         /**
       
    68         * Feature accessor
       
    69         * Leave conditions: out of memory.
       
    70         */
       
    71         IMPORT_C TBool IsFeatureSupportedL( TImpsVariants aVariant ) const;
       
    72 
       
    73     private:
       
    74 
       
    75         /**
       
    76         * C++ default constructor.
       
    77         */
       
    78         CImpsVariant();
       
    79 
       
    80         /**
       
    81         * By default Symbian 2nd phase constructor is private.
       
    82         */
       
    83         void ConstructL();
       
    84 
       
    85 
       
    86     private:    // Data
       
    87 
       
    88         TThreadLocalStoragePackage*     iPointerPackage;
       
    89     };
       
    90 
       
    91 #endif      // ImpsVariantAPI_H
       
    92 
       
    93 // End of File