hti/PC_Tools/HTIGateway/ServicePlugins/HtiStif/HtiPlugin.h
changeset 36 813b186005b6
parent 30 86a2e675b80a
child 41 838cdffd57ce
equal deleted inserted replaced
30:86a2e675b80a 36:813b186005b6
     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 */
       
    16 #ifndef __HTI_PLUGIN_DEF__
       
    17 #define __HTI_PLUGIN_DEF__
       
    18 
       
    19 #include "HtiStif.nsmap" //generated static namespaces struct
       
    20 
       
    21 class HtiSoapHandlerInterface;
       
    22 
       
    23 //additional export functions requried for an hti-plugin
       
    24 #define HTI_SOAP_ACTION "HtiStif"
       
    25 #define HTI_STIF_UID 0x10210CC3
       
    26                  
       
    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_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_STIF_UID;};
       
    39 
       
    40 /**
       
    41 * Returns service namespace list
       
    42 **/
       
    43 extern "C" __declspec(dllexport) Namespace* serviceNamespaces(){return namespaces;};
       
    44 
       
    45 extern "C" __declspec(dllexport) int hti_serve(HtiSoapHandlerInterface*);
       
    46 
       
    47 #endif //__HTI_PLUGIN_DEF__