networkhandling/networkhandlingengine/NetworkHandlingInc/CNWSubscriberIdCommand.h
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:  This file contains the header file of the 
       
    15 *                CNWServiceProviderNameCommand class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CNWSUBSCRIBERIDCOMMAND_H
       
    22 #define CNWSUBSCRIBERIDCOMMAND_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CNWMessageHandler;
       
    29 class RMobilePhone;
       
    30 struct TNWInterInfo;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Executes commands related to subsriber id.
       
    36 *  
       
    37 *
       
    38 *  @lib networkhandling.lib
       
    39 *  @since Series 60_2.8
       
    40 */
       
    41 class CNWSubscriberIdCommand : public CActive
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44     
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CNWSubscriberIdCommand* NewL(
       
    49                                     CNWMessageHandler& aOwner,
       
    50                                     RMobilePhone& aPhone,
       
    51                                     TNWInterInfo& aInterNetworkInfo );
       
    52         
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~CNWSubscriberIdCommand();
       
    57 
       
    58 
       
    59     protected:  // Functions from CActive
       
    60 
       
    61         /**
       
    62         * Cancels asyncronous request(s).
       
    63         * 
       
    64         */
       
    65         void DoCancel();
       
    66 
       
    67         /**
       
    68         * Informs object that asyncronous request is ready.
       
    69         * 
       
    70         */
       
    71         void RunL();
       
    72 
       
    73     public:  // New functions
       
    74         
       
    75         /**
       
    76         * Starts async. SubsciberId query.
       
    77         * 
       
    78         */
       
    79         void IssueRequest();
       
    80         
       
    81 
       
    82     private:
       
    83 
       
    84         /**
       
    85         * C++ default constructor.
       
    86         */
       
    87         CNWSubscriberIdCommand( CNWMessageHandler& aOwner,
       
    88                                 RMobilePhone& aPhone,
       
    89                                 TNWInterInfo& aInterNetworkInfo );
       
    90 
       
    91 
       
    92     private:    // Data
       
    93         // CNWMessageHandler object that owns this object
       
    94         CNWMessageHandler& iOwner;
       
    95         // Reference to the MMETel phone connection
       
    96         RMobilePhone&   iPhone;
       
    97         // Reference to internal network info struct
       
    98         TNWInterInfo& iInterNetworkInfo;
       
    99         //Counter for subscriberId attempts
       
   100         TInt iSubscriberIdCounter;
       
   101 
       
   102     };
       
   103 
       
   104 #endif      // CNWSubscriberIdCommand_H   
       
   105             
       
   106 // End of File