wvuing/IMPSConnectionUI/Inc/cimpsresourcereader.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Resource reader
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CIMPSRESOURCEREADER_H
       
    20 #define __CIMPSRESOURCEREADER_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <E32Base.h>
       
    25 #include <barsc.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 NONSHARABLE_CLASS( CIMPSResourceReader ) : public CBase
       
    29     {
       
    30 public:  // Two-phased constructors and destructor
       
    31 
       
    32     /**
       
    33      * Two-phased constructor.
       
    34      */
       
    35     IMPORT_C static CIMPSResourceReader* NewL();
       
    36 
       
    37     /**
       
    38      * Two-phased constructor.
       
    39      */
       
    40     IMPORT_C static CIMPSResourceReader* NewLC();
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     IMPORT_C virtual ~CIMPSResourceReader();
       
    46 
       
    47 public:
       
    48 
       
    49     /**
       
    50     * Reads boolean value from the resource
       
    51     * @return value of resource flag for  warning
       
    52     */
       
    53     IMPORT_C TBool IsRoamingWarningRequiredL() ;
       
    54 
       
    55 protected: //protected to allow derivation
       
    56 
       
    57     /**
       
    58      * C++ constructor.
       
    59      */
       
    60     CIMPSResourceReader();
       
    61 
       
    62     /**
       
    63      * Symbian OS constructor.
       
    64      */
       
    65     void ConstructL();
       
    66 
       
    67 private : // New functions
       
    68 
       
    69     /**
       
    70      * Reads integer resource value from resources
       
    71      * @param aResourceId resource id which is read
       
    72      * @return value of wanted integer resource flag
       
    73      */
       
    74     TInt IntResourceValueL( TInt aResourceId );
       
    75 
       
    76 private: // private data
       
    77 
       
    78     // File server session
       
    79     RFs iFs;
       
    80 
       
    81     // IMPS resource file, owned
       
    82     RResourceFile iResFile;
       
    83     };
       
    84 
       
    85 #endif // __CIMPSRESOURCEREADER_H