diff -r 000000000000 -r 79c6a41cd166 contentpublishingsrv/contentpublishingserver/cpserver/inc/cpserveractionmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contentpublishingsrv/contentpublishingserver/cpserver/inc/cpserveractionmanager.h Thu Dec 17 08:54:17 2009 +0200 @@ -0,0 +1,118 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Used by sessions for handling execute action requests + * +*/ + + +#ifndef C_CPACTION_MANAGER_H +#define C_CPACTION_MANAGER_H + +#include +// FORWARD DECLARATIONS +#ifdef CONTENT_PUBLISHER_DEBUG +class CCPDebug; +#endif +class CLiwServiceHandler; +class MLiwInterface; +class CLiwDefaultMap; + +/** + * Used to execute action using Action Handler Service + * + * @since S60 5.0 + */ +class CCPActionManager : public CBase + { +public: + + /** + * C++ destructor + */ + ~CCPActionManager(); + + /** + * Two-phased constructor. + */ + static CCPActionManager* NewL(); + + /** + * Two-phased constructor. + */ + static CCPActionManager* NewLC(); + + /** + * Executes action + * @param Action to be executed + */ + void ExecuteL( const CLiwGenericParamList& aList ); + +private: + // methods + + /** + * Standard C++ constructor. + */ + CCPActionManager(); + + /** + * Standard 2nd phase constructor. + */ + void ConstructL(); + + /** + * Loads interface + * @param interface loaded from service + */ + void PrepareServiceL( MLiwInterface*& aInterface ); + + /** + * Prepares data to execute command + * @param paramList from server + * @param target list to execute action + */ + void PrepareInputListL( const CLiwGenericParamList& aList, + CLiwGenericParamList& aTarget ); + + /** + * Extracts and adds attributes from aMap to aTarget. + * @since Series 60 3.2 + * @param aMap CLiwDefaultMap with action. + * @param aTarget CLiwGenericParamList with Uid and Map. + */ + void ExtractUidAndMapL( const CLiwDefaultMap& aMap, + CLiwGenericParamList& aTarget ); + +private: + // data + + /* + * Own. + * Handler to service + */ + CLiwServiceHandler* iServiceHandler; + + /* + * Own. + * Interface to CPS service + */ + MLiwInterface* iInterface; + +#ifdef CONTENT_PUBLISHER_DEBUG + CCPDebug* iDebug; +#endif + }; + +#endif // C_CPACTION_MANAGER_H +// end of file