realtimenetprots/sipfw/ProfileAgent/profile_fsm/inc/sipprflresolvingproxiesstate.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2007-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:
       
    15 * Name        : sipprflresolvingproxiesstate.h
       
    16 * Part of     : sip profile fsm 
       
    17 * Version     : %version: 2.1.1 %
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef CSIPPRFLRESOLVINGPROXIESSTATE_H
       
    29 #define CSIPPRFLRESOLVINGPROXIESSTATE_H
       
    30 
       
    31 //  INCLUDES
       
    32 #include "sipprflstatebase.h"
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 * Reacts to events that are possible in "Resolving Proxies" state. 
       
    37 * Profile is in this state if the dynamic proxy has been enabled for it
       
    38 * before it is going to be registered.
       
    39 */
       
    40 class CSIPPrflResolvingProxiesState: public CSIPPrflStateBase
       
    41 	{
       
    42 	public:// Constructors and destructor
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         * @param aUser user for the state machine
       
    46         */
       
    47 		IMPORT_C static CSIPPrflResolvingProxiesState* NewL(
       
    48 		    MSIPProfileFSMUser& aUser);
       
    49 
       
    50 		/**
       
    51 		* Destructor
       
    52 		*/
       
    53 		IMPORT_C ~CSIPPrflResolvingProxiesState();
       
    54 
       
    55 	public://new functions
       
    56 		/**
       
    57 		* Links the states
       
    58 		* @param aInitState "Init"-state
       
    59 		* @param aRegisterState "Register Requested"-state
       
    60 		* @param aRegistrationInProgressState "Registration In Progress"-state
       
    61 		*/
       
    62 		IMPORT_C void LinkStates(
       
    63 		    CSIPPrflStateBase& aInitState,
       
    64 			CSIPPrflStateBase& aRegisterRequestedState,
       
    65 			CSIPPrflStateBase& aRegistrationInProgressState);
       
    66 
       
    67 	public://functions from base class
       
    68 	
       
    69 	    CSIPConcreteProfile::TStatus ConcreteProfileState() const;
       
    70 	
       
    71 	    void DeregisterL(MSIPProfileContext& aContext);
       
    72 
       
    73         void ConnectionStateChanged(
       
    74             MSIPProfileContext& aContext,
       
    75             CSIPConnection::TState aState);
       
    76     
       
    77         void ProxyResolvingRequestCompleteL(
       
    78             MSIPProfileContext& aContext,
       
    79             MDesC8Array& aProxies);
       
    80 
       
    81         void ProxyResolvingRequestFailed(
       
    82 		    MSIPProfileContext& aContext,
       
    83 		    TInt aError);
       
    84 
       
    85 	private:
       
    86 
       
    87 		CSIPPrflResolvingProxiesState(MSIPProfileFSMUser& aUser);
       
    88 
       
    89 	private: // Data
       
    90 
       
    91 	    CSIPPrflStateBase* iInit;
       
    92 		CSIPPrflStateBase* iRegisterRequested;
       
    93 		CSIPPrflStateBase* iRegistrationInProgress;
       
    94 	};
       
    95 
       
    96 #endif // CSIPPRFLRESOLVINGPROXIESSTATE_H