omaprovisioning/provisioning/ProvisioningEngine/Inc/CWPPhoneEmul.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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 "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:  Emulator for CWPPhone
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CWPPHONEEMUL_H
       
    20 #define CWPPHONEEMUL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <etelmm.h>
       
    25 #include "MWPPhone.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Emulator for CWPPhone.
       
    33 *
       
    34 *  @lib ProvisioningEngine
       
    35 *  @since 2.0
       
    36  */ 
       
    37 class CWPPhoneEmul : public CBase, public MWPPhone
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CWPPhoneEmul* NewL();
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static CWPPhoneEmul* NewLC();
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CWPPhoneEmul();
       
    55 
       
    56     public: // From MWPPhone
       
    57 
       
    58         const RMobilePhone::TMobilePhoneSubscriberId& SubscriberId() const;
       
    59         const RMobilePhone::TMobilePhoneNetworkCountryCode& Country() const;
       
    60         const RMobilePhone::TMobilePhoneNetworkIdentity& Network() const;
       
    61 
       
    62     private:
       
    63         /**
       
    64         * C++ default constructor.
       
    65         */
       
    66         CWPPhoneEmul();
       
    67 
       
    68         /**
       
    69         * By default Symbian 2nd phase constructor is private.
       
    70         */
       
    71         void ConstructL();
       
    72 
       
    73     private:
       
    74         /// IMSI.
       
    75         RMobilePhone::TMobilePhoneSubscriberId iIMSI;
       
    76         /// Country code
       
    77         RMobilePhone::TMobilePhoneNetworkCountryCode iCountry;
       
    78         /// Network identity
       
    79         RMobilePhone::TMobilePhoneNetworkIdentity iNetwork;
       
    80     };
       
    81 
       
    82 #endif  // CWPPHONEEMUL_H
       
    83             
       
    84 // End of File