Msrp/MsrpServer/inc/TStateFactory.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
equal deleted inserted replaced
22:f1578314b8da 25:505ad3f0ce5c
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef TSTATEFACTORY_H_
       
    18 #define TSTATEFACTORY_H_
       
    19 
       
    20 #include "TStates.h"
       
    21 
       
    22 class CStateFactory : public CBase
       
    23 	{
       
    24 	public:
       
    25 	    static CStateFactory* NewL();
       
    26 		static CStateFactory* NewLC();
       
    27 		
       
    28 		~CStateFactory();
       
    29 		
       
    30 	    TStateBase* getStateL(TStates state);	    
       
    31 
       
    32 	private:
       
    33 		CStateFactory();		
       
    34 		void ConstructL();
       
    35 		
       
    36 	private:		
       
    37 		RPointerArray<TStateBase> iStateArray;
       
    38 		
       
    39 		#ifdef __UT_TSTATEFACTORY_H__
       
    40 		friend class UT_TStateFactory;
       
    41 		#endif
       
    42 	};
       
    43 
       
    44 
       
    45 #endif /* TSTATEFACTORY_HPP_ */