homescreensrv_plat/sapi_homescreenplugin/inc/hspsprovider.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 13:01:39 +0300
branchRCL_3
changeset 78 1b207dd38b72
parent 1 844b978f8d5e
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* 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:  Defination of class CHSPSProvider
*
*/


#ifndef C_CHSPSPROVIDER_H
#define C_CHSPSPROVIDER_H

#include <liwcommon.h>
#include <liwserviceifbase.h>

/**
* @ingroup group_hsps_sapi
* Provides implementation to HSPS SAPI provider
*
**/
NONSHARABLE_CLASS( CHSPSProvider ) : public CLiwServiceIfBase
    {
    public:
        static CHSPSProvider* NewL();


        // CLiwServiceIfBase member functions
        /**
        * Called by the LIW framework to initialise 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.
        */
        void InitialiseL( 
            MLiwNotifyCallback& aFrameworkCallback, 
            const RCriteriaArray& aInterest );

        /**
        * Called by the LIW framework to instantiate the requested interface
        *
        * @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.
        */
        void HandleServiceCmdL( 
            const TInt& aCmdId, 
            const CLiwGenericParamList& aInParamList,
            CLiwGenericParamList& aOutParamList,
            TUint aCmdOptions = 0,
            const MLiwNotifyCallback* aCallback = NULL );

    private:
        /**
        * Constructor.
        */
        CHSPSProvider();

    };

#endif C_CHSPSPROVIDER_H