homescreensrv_plat/sapi_menucontent/inc/mcscallback.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:  Defination of class CMCSInterface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MCSCALLBACK_H
       
    20 #define __MCSCALLBACK_H
       
    21 
       
    22 #include <liwcommon.h>
       
    23 #include <liwserviceifbase.h>
       
    24 #include <liwbufferextension.h>
       
    25 
       
    26 #include "mcsservice.h"
       
    27 
       
    28 /**
       
    29 *
       
    30 *
       
    31 */
       
    32 class CMCSCallback : public CBase, public MMCSCallback
       
    33 	{
       
    34 	public:
       
    35 
       
    36     enum TCmds 
       
    37         {
       
    38         EGetList = 0, 
       
    39         EExecuteAction,
       
    40         ERequestNotification,
       
    41         EAddORChange,
       
    42         EDelete,
       
    43         EOrganize,
       
    44         EGetRunningApps
       
    45         };
       
    46         
       
    47 	public:
       
    48 
       
    49 	  	/**
       
    50 	     * Two-phase Constructor
       
    51 	     * @return   CMsgCallbackBase* 
       
    52 	    */		
       
    53 		static CMCSCallback* NewL( MLiwNotifyCallback *aPtrNotifyCallback, 
       
    54 		        const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId,
       
    55 		        CMCSService& aMcsService,TCmds aCmd);
       
    56 
       
    57 	  	/**
       
    58 	     * Gives the result of asynchronous SAPI
       
    59 	     * @param aErrCode errcode
       
    60 	     * @param aResult Result
       
    61 	     * @return   void
       
    62 	    */		
       
    63 		void NotifyResultL(TInt aErrCode, TAny* aResult = NULL);
       
    64 		
       
    65 	private:
       
    66 
       
    67 	  	/**
       
    68 	     * Constructor
       
    69 	    */		
       
    70 		CMCSCallback( MLiwNotifyCallback *aPtrNotifyCallback, 
       
    71 		        const CLiwGenericParamList &aPtrInParamList, TInt32 aTransactionId,
       
    72 		        CMCSService& aMcsService,TCmds aCmd );
       
    73 	  	/**
       
    74 	    */		
       
    75 		void HandleComandL( TInt &aErrCode, TAny* aResult, 
       
    76 				CLiwGenericParamList& aParamList );
       
    77 
       
    78 	private:
       
    79 	
       
    80 	    MLiwNotifyCallback* iPtrNotifyCallback;
       
    81         const CLiwGenericParamList* iPtrInParamList;
       
    82         TInt iTransactionId;
       
    83         CMCSService* iMcsService;
       
    84         TCmds iCmd;
       
    85 	};
       
    86 
       
    87 
       
    88 #endif __MCSCALLBACK_H