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