phoneclientserver/phoneclient/Inc/EmergencyNumber/CPhCltEmergencyTelNumber.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     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:  Emergency Telephony Number
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHCLTEMERGENCYTELNUMBER_H
       
    20 #define CPHCLTEMERGENCYTELNUMBER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 #include "PhCltTypes.h"
       
    25 #include "RPhCltServer.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Emergency Telephony Number.
       
    31 *
       
    32 *  @lib phoneclient.lib
       
    33 *  @since 1.0
       
    34 */
       
    35 class CPhCltEmergencyTelNumber : public CBase
       
    36     {
       
    37     public:
       
    38 
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         *
       
    42         * @return Pointer to created CPhCltEmergencyTelNumber instance.
       
    43         */
       
    44         IMPORT_C static CPhCltEmergencyTelNumber* NewLC();
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         IMPORT_C ~CPhCltEmergencyTelNumber();
       
    50 
       
    51 
       
    52     public: // [In|Ex]ternalize
       
    53 
       
    54         /**
       
    55         * Read an emergency number from a stream.
       
    56         *
       
    57         * @param aStream The stream from which the emergency number is read.
       
    58         */
       
    59         IMPORT_C void InternalizeL( RReadStream& aStream );
       
    60 
       
    61         /**
       
    62         * Write an emergency number to a stream.
       
    63         *
       
    64         * @param aStream The stream where the emergency number is written.
       
    65         */
       
    66         IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
       
    67 
       
    68 
       
    69     public: // Access
       
    70 
       
    71         /**
       
    72         * Return the phone number.
       
    73         *
       
    74         * @return The telephony number field of the emergency number.
       
    75         */
       
    76         IMPORT_C const TDesC& TelNumber() const;
       
    77 
       
    78         /**
       
    79         * Return the MNC field.
       
    80         *
       
    81         * @return The MNC field of the emergency number.
       
    82         */
       
    83         IMPORT_C TUint16 MNC() const;
       
    84 
       
    85         /**
       
    86         * Return the MCC field.
       
    87         *
       
    88         * @return The MCC field of the emergency number.
       
    89         */
       
    90         IMPORT_C TUint16 MCC() const;
       
    91 
       
    92         /**
       
    93         * Set details of the emergency number.
       
    94         *
       
    95         * @param aNumber Telephony number field of the emergency number.
       
    96         * @param aMNC MNC field of the emergency number.
       
    97         * @param aMCC MCC field of the emergency number.
       
    98         */
       
    99         IMPORT_C void SetL( 
       
   100             const TPhCltTelephoneNumber& aNumber, 
       
   101             TUint16 aMNC, 
       
   102             TUint16 aMCC );
       
   103 
       
   104 
       
   105     private:
       
   106 
       
   107         // MNC field of the emergency number.
       
   108         TUint16 iFieldMNC;
       
   109 
       
   110         // MCC field of the emergency number.
       
   111         TUint16 iFieldMCC;
       
   112 
       
   113         // Telephony number field of the emergency number.
       
   114         HBufC* iTelNumber;
       
   115 
       
   116     };
       
   117 
       
   118 
       
   119 #endif // CPHCLTEMERGENCYTELNUMBER_H
       
   120 
       
   121 // End of File