nettools/conntest/inc/alractiveobject.h
changeset 0 857a3e953887
equal deleted inserted replaced
-1:000000000000 0:857a3e953887
       
     1 /*
       
     2 * Copyright (c) 2006 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: conntest application
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef ALRACTIVEOBJECT_H
       
    19 #define ALRACTIVEOBJECT_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <comms-infras/cs_mobility_apiext.h>
       
    23 
       
    24 namespace ESock { class CPreferredCarrierAvailable; }
       
    25 namespace ESock { class CNewCarrierActive; }
       
    26 
       
    27 class MUINotify;
       
    28 
       
    29 class CALRActiveObject : public CActive
       
    30     {
       
    31 public:  // Constructors and destructor
       
    32         /**
       
    33         * NewL is first phase of two-phased constructor.
       
    34         */
       
    35         static CALRActiveObject* NewL(
       
    36                     MUINotify& aConsole, 
       
    37                     MMobilityProtocolResp* aApplication);
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         ~CALRActiveObject();
       
    43 
       
    44     public: // from CActive
       
    45         
       
    46         void RunL();
       
    47 
       
    48         void DoCancel();
       
    49 
       
    50         TInt RunError( TInt aError );
       
    51 
       
    52     public: // New functions
       
    53 
       
    54         void OpenL( RCommsSubSession& aExtensionProvider );
       
    55     	void MigrateToPreferredCarrier();
       
    56     	void IgnorePreferredCarrier();
       
    57     	void NewCarrierAccepted();
       
    58     	void NewCarrierRejected();
       
    59 
       
    60     private:
       
    61 
       
    62         /** 
       
    63         * C++ default constructor.
       
    64         */
       
    65         CALRActiveObject( MUINotify& aConsole, MMobilityProtocolResp* aApplication );
       
    66 
       
    67         /**
       
    68         * By default Symbian OS constructor is private.
       
    69         */
       
    70         void ConstructL(MUINotify& aConsole);
       
    71 
       
    72     private:    // Data
       
    73      //   MALRApplication&        iApplication;   // Backpointer
       
    74        // CConsoleBase&           iConsole;       // Pointer to console
       
    75        	MUINotify&              iConsole;
       
    76     	RCommsMobilityApiExt    iExtApi;
       
    77     	RBuf8                   iResponseBuf;
       
    78     	MMobilityProtocolResp*  iApplication;
       
    79     };
       
    80 
       
    81 #endif // ALRACTIVEOBJECT_H
       
    82