cellular/telephonysettings/inc/CNetworkResetHandler.h
branchRCL_3
changeset 20 987c9837762f
parent 5 7237db0d9fca
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2002-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:  CNetworkResetHandler is a async activeobject which handles reseting network call.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef     CNETWORKRESETHANDLER_H
       
    21 #define     CNETWORKRESETHANDLER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "PsetNetwork.h"
       
    25 #include <rmmcustomapi.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CPsetNetwork;
       
    29 
       
    30 /**
       
    31 *  CNetworkResetHandler class is used to handle network reset search requests.´
       
    32 */
       
    33 class CNetworkResetHandler : public CActive
       
    34     {
       
    35     
       
    36     public: // constructor & destructor
       
    37 
       
    38     	static CNetworkResetHandler* NewL( RMobilePhone& aPhone );
       
    39 
       
    40         /* Destructor */
       
    41         ~CNetworkResetHandler();
       
    42     	
       
    43         /* 
       
    44         * Calls ETEL to start reseting the network.
       
    45         * @return Error code, or KErrNone.
       
    46         */        
       
    47         TInt ResetNetworkSearch();
       
    48         
       
    49     private:
       
    50     	
       
    51     	CNetworkResetHandler( RMobilePhone& aPhone );
       
    52     	
       
    53     	void ConstructL();
       
    54     	
       
    55     	void RunL();
       
    56     
       
    57         void DoCancel();
       
    58         
       
    59         // Custom phone.       
       
    60         RMmCustomAPI iCustomApi;
       
    61         
       
    62         //Provides client access to mobile phone functionality provided by TSY.
       
    63         RMobilePhone& iPhone;
       
    64  
       
    65     };
       
    66 #endif // CNETWORKRESETHANDLER_H
       
    67 
       
    68 // end of file