serviceproviders/sapi_serviceregistry/inc/serviceregistryservicehandler.h
changeset 5 989d2f495d90
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/serviceproviders/sapi_serviceregistry/inc/serviceregistryservicehandler.h	Fri Jul 03 15:51:24 2009 +0100
@@ -0,0 +1,84 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  
+*
+*/
+
+
+#ifndef SERVICEREGISTRYSERVICEHANDLER_H
+#define SERVICEREGISTRYSERVICEHANDLER_H
+
+#include <liwserviceifbase.h>
+
+/**
+ *  Service handler class for ServiceRegistry SAPI.
+ *
+ *  Delegates requests to the correct interface implementation.
+ * 
+ */
+class CServiceRegistryServiceHandler : public CLiwServiceIfBase
+    {
+public:
+    /**
+     * Two-phased constructor
+     * @return CServiceRegistryServiceHandler*  Returns the instance of
+     *                                                 CServiceRegistryServiceHandler
+     */
+    static CServiceRegistryServiceHandler* NewL();
+    
+     /**
+      * Destructor.
+      */
+    ~CServiceRegistryServiceHandler();
+
+public:
+ 	
+    /**
+     * Called by the LIW framework to initialize provider with necessary information
+     * from the Service Handler. This method is called when the consumer makes
+     * the attach operation.
+     *
+     * @param aFrameworkCallback Framework provided callback for provider to send
+     *                           events to framework.
+     * @param aInterest List of criteria items which invoked the provider.
+     */
+    void InitialiseL(
+            MLiwNotifyCallback& aFrameworkCallback,
+            const RCriteriaArray& aInterest);
+
+    /**
+     * Executes generic service commands included in criteria.
+     *
+     * @param aCmdId Command to be executed.
+     * @param aInParamList Input parameters, can be an empty list.
+     * @param aOutParamList Output parameters, can be an empty list.
+     * @param aCmdOptions Options for the command, see KLiwOpt* in LiwCommon.hrh.
+     * @param aCallback Callback for asynchronous command handling, parameter checking, etc.
+     */
+    void HandleServiceCmdL(const TInt& aCmdId,
+                                   const CLiwGenericParamList& aInParamList,
+                                   CLiwGenericParamList& aOutParamList,
+                                   TUint aCmdOptions = 0,
+                                   const MLiwNotifyCallback* aCallback = NULL);
+
+private:
+ 	
+    /**
+     * Constructor.
+     */
+    CServiceRegistryServiceHandler(){};
+
+    };
+
+#endif // SERVICEREGISTRYSERVICEHANDLER_H