homescreensrv_plat/sapi_contentpublishing/inc/cpclientservice.h
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 94 dbb8300717f7
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
     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 "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:  CPS Client Service
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPCLIENTSERVICE_H
       
    20 #define CPCLIENTSERVICE_H
       
    21 
       
    22 /**
       
    23  *  CPS Service Provider
       
    24  *
       
    25  *  This class implements new LIW Service Provider.
       
    26  *
       
    27  *  @lib cpclient.dll
       
    28  *  @since S60 v 5.0
       
    29  */
       
    30 class CCPClientService : public CLiwServiceIfBase
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Two-phase Constructor
       
    36      */    
       
    37     static CCPClientService* NewL();
       
    38 
       
    39     /**
       
    40      * Destructor.
       
    41      */    
       
    42     ~CCPClientService();
       
    43 
       
    44     // from base class CLiwServiceIfBase
       
    45 
       
    46     /**
       
    47      * From CLiwServiceIfBase.
       
    48      * Called by the LIW framework to initialise necessary information 
       
    49      * from the Service Handler. This method is called when the consumer makes
       
    50      * the attach operation.
       
    51      *
       
    52      * @since S60 v3.2
       
    53      * @param aFrameworkCallback Framework provided callback
       
    54      * @param aInterest List of criteria items which invoked the provider.
       
    55      */
       
    56     void InitialiseL( MLiwNotifyCallback& aFrameworkCallback,
       
    57         const RCriteriaArray& aInterest );
       
    58 
       
    59     /**
       
    60      * Executes generic service commands included in criteria.
       
    61      *
       
    62      * @param aCmdId Command to be executed.
       
    63      * @param aInParamList Input parameters, can be an empty list.
       
    64      * @param aOutParamList Output parameters, can be an empty list.
       
    65      * @param aCmdOptions Options for the command
       
    66      * @param aCallback Callback for asynchronous command handling, 
       
    67      * @leave KErrArgument Callback is missing when required.
       
    68      * @leave KErrNotSupported No provider supports service.
       
    69      */
       
    70     virtual void HandleServiceCmdL( const TInt& aCmdId,
       
    71         const CLiwGenericParamList& aInParamList,
       
    72         CLiwGenericParamList& aOutParamList, TUint aCmdOptions = 0,
       
    73         const MLiwNotifyCallback* aCallback = NULL );
       
    74 
       
    75 private:
       
    76 
       
    77     /**
       
    78      * C++ default constructor.
       
    79      */     
       
    80     CCPClientService();
       
    81 
       
    82 private:
       
    83     // data
       
    84 
       
    85 
       
    86     };
       
    87 
       
    88 #endif // CPCLIENTSERVICE_H