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