bluetoothengine/btmac/inc/btmonocmdhandler/btmcoperator.h
changeset 0 f63038272f30
child 10 0707dd69d236
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Gets the MSISDN
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTMCOPERATOR_H
       
    20 #define BTMCOPERATOR_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <etelmm.h>
       
    25 #include <rmmcustomapi.h>
       
    26 #include "btmcactive.h"
       
    27 
       
    28 class CBtmcProtocol;
       
    29 
       
    30 /**
       
    31 *  CBtmcOperator for getting MSISDN number.
       
    32 */
       
    33 NONSHARABLE_CLASS(CBtmcOperator) : public CBtmcActive
       
    34     {
       
    35     public:
       
    36     
       
    37         /**
       
    38         * Two-phased constructor.
       
    39         */
       
    40         static CBtmcOperator* NewL(
       
    41             MBtmcActiveObserver& aObserver,
       
    42             CBtmcProtocol& aProtocol, 
       
    43             CActive::TPriority aPriority, 
       
    44             TInt aServiceId);
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         ~CBtmcOperator();
       
    50 
       
    51         void GoActive();
       
    52 
       
    53         /**
       
    54         * Gets the subscriber number
       
    55         */
       
    56         const TDesC& GetName() const;
       
    57         
       
    58     protected:
       
    59     
       
    60         /**
       
    61         * From CActive. Called when asynchronous request completes.
       
    62         * @since 3.0
       
    63         * @param None
       
    64         * @return None
       
    65         */
       
    66         void RunL();
       
    67         
       
    68         void DoCancel();
       
    69 
       
    70         TInt RunError(TInt aErr);
       
    71 
       
    72     private:
       
    73     
       
    74         /**
       
    75         * C++ default constructor.
       
    76         */
       
    77         CBtmcOperator(
       
    78             MBtmcActiveObserver& aObserver,
       
    79             CBtmcProtocol& aProtocol, 
       
    80             CActive::TPriority aPriority, 
       
    81             TInt aServiceId);
       
    82     
       
    83         void ConstructL();
       
    84 
       
    85     private:
       
    86         CBtmcProtocol& iProtocol;
       
    87         RTelServer iServer;
       
    88         RMobilePhone iPhone;
       
    89 		RMobileONStore iStore;
       
    90         RMmCustomAPI iCustomApi;
       
    91         RMmCustomAPI::TOperatorNameInfo iInfo;
       
    92     };
       
    93 
       
    94 
       
    95 #endif