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