serviceproviders/sapi_applicationmanager/inc/appmanagerservicehandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 24 Nov 2009 08:56:33 +0200
changeset 33 50974a8b132e
parent 19 989d2f495d90
permissions -rw-r--r--
Revision: 200945 Kit: 200948

/*
* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:  This Class provides the interface for
*				 loading the interface class through ECom
*
*/


#ifndef __CAPPMANAGERSERVICEHANDLER_H
#define __CAPPMANAGERSERVICEHANDLER_H

#include <liwserviceifbase.h>


class CAppManagerServiceHandler : public CLiwServiceIfBase
{
 public:
        /**
 	    * Two-phased constructor
        * @since  Series60 v3.2
        * @param  void
        * @return CAppManagerServiceHandler*  Returns the instance of
        *	       CAppManagerServiceHandler
        */

        static CAppManagerServiceHandler* NewL();
        /**
    	  * Destructor.
    	  */
        ~CAppManagerServiceHandler();

 public:
        /**
        * Called by the Liw framework to initialise provider with necessary information
        * from the Service Handler. This method is called when the consumer makes
        * the attach operation.
        *
        * @param aFrameworkCallback Framework provided callback for provider to send
        *                           events to framework.
        * @param aInterest List of criteria items which invoked the provider.
        */

        virtual void InitialiseL(
            MLiwNotifyCallback& aFrameworkCallback,
            const RCriteriaArray& aInterest);

        /**
        * Executes generic service commands included in criteria.
        *
        * @param aCmdId Command to be executed.
        * @param aInParamList Input parameters, can be an empty list.
        * @param aOutParamList Output parameters, can be an empty list.
        * @param aCmdOptions Options for the command, see KLiwOpt* in LiwCommon.hrh.
        * @param aCallback Callback for asynchronous command handling, parameter checking, etc.
        * @leave KErrArgument Callback is missing when required.
        * @leave KErrNotSupported No provider supports service.
        */
        virtual void HandleServiceCmdL(
            const TInt& aCmdId,
            const CLiwGenericParamList& aInParamList,
            CLiwGenericParamList& aOutParamList,
            TUint aCmdOptions = 0,
            const MLiwNotifyCallback* aCallback = NULL);

 private:
        /**
    	  * Constructor.
    	  */
        CAppManagerServiceHandler(){};

};

#endif __CAPPMANAGERSERVICEHANDLER_H