hti/PC_Tools/HTIGateway/ServicePlugins/HtiSystem/HtiPlugin.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *   This file contains the headers of HtiSoapHandlerInterface
       
    16 */
       
    17 #ifndef __HTI_PLUGIN_DEF__
       
    18 #define __HTI_PLUGIN_DEF__
       
    19 
       
    20 //additional export functions requried for an hti-plugin
       
    21 #define HTI_SYSTEM_SOAP_ACTION "HtiSystem"
       
    22 #define HTI_SYSTEM_UID 0x1020DEB6
       
    23 
       
    24 #include "HtiSystem.nsmap" //generated static namespaces struct
       
    25 
       
    26 class HtiSoapHandlerInterface;
       
    27 
       
    28 /**
       
    29 * Return the name that is used to redirect SOAP request
       
    30 * to the plugin by comparing it to soapAction header
       
    31 **/
       
    32 extern "C" __declspec(dllexport) char* soapActionName(){return HTI_SYSTEM_SOAP_ACTION;};
       
    33 
       
    34 /**
       
    35 * Returns service UID of corresponding symbian side service used
       
    36 * in HTI messages. It's used for redirection of the messages from HTI
       
    37 **/
       
    38 extern "C" __declspec(dllexport) int serviceUID(){return HTI_SYSTEM_UID;};
       
    39 
       
    40 /**
       
    41 * Returns service namespace list
       
    42 **/
       
    43 extern "C" __declspec(dllexport) Namespace* serviceNamespaces(){return namespaces;};
       
    44 
       
    45 /**
       
    46 * 
       
    47 */
       
    48 extern "C" __declspec(dllexport) int hti_serve(HtiSoapHandlerInterface*){return 0;};
       
    49 
       
    50 #endif //__HTI_PLUGIN_DEF__