homescreensrv_plat/sapi_menucontent/inc/mcsservicehandler.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MCSSERVICEHANDLER_H
       
    20 #define __MCSSERVICEHANDLER_H
       
    21 
       
    22 #include <liwcommon.h>
       
    23 #include <liwserviceifbase.h>
       
    24 
       
    25 /**
       
    26 * Provides implementation to CLiwServiceIfBase interface.
       
    27 *
       
    28 **/
       
    29 class CMCSServiceHandler : public CLiwServiceIfBase
       
    30 	{
       
    31 	public:
       
    32 		static CMCSServiceHandler* NewL();
       
    33 
       
    34 		// CLiwServiceIfBase member functions
       
    35         /**
       
    36         * Called by the LIW framework to initialise necessary information 
       
    37         * from the Service Handler. This method is called when the consumer makes 
       
    38         * the attach operation.
       
    39         *
       
    40         * @param aFrameworkCallback Framework provided callback for provider to send 
       
    41         *                           events to framework.
       
    42         * @param aInterest List of criteria items which invoked the provider.
       
    43         */
       
    44 		virtual void InitialiseL( 
       
    45 						MLiwNotifyCallback& aFrameworkCallback, 
       
    46 						const RCriteriaArray& aInterest);
       
    47 
       
    48         /**
       
    49         * Executes generic service commands included in criteria.
       
    50         *
       
    51         * @param aCmdId Command to be executed.
       
    52         * @param aInParamList Input parameters, can be an empty list.
       
    53         * @param aOutParamList Output parameters, can be an empty list.
       
    54         * @param aCmdOptions Options for the command, see KLiwOpt* in LiwCommon.hrh.
       
    55         * @param aCallback Callback for asynchronous command handling, parameter checking, etc.
       
    56         * @leave KErrArgument Callback is missing when required.
       
    57         * @leave KErrNotSupported No provider supports service.
       
    58         */
       
    59 		virtual void HandleServiceCmdL( 
       
    60 						const TInt& aCmdId, 
       
    61 						const CLiwGenericParamList& aInParamList,
       
    62 						CLiwGenericParamList& aOutParamList,
       
    63 						TUint aCmdOptions = 0,
       
    64 						const MLiwNotifyCallback* aCallback = NULL);
       
    65 
       
    66 	private:
       
    67         /**
       
    68         * Constructor.
       
    69         */
       
    70 		CMCSServiceHandler();
       
    71 
       
    72 	};
       
    73 
       
    74 #endif __MCSSERVICEHANDLER_H