hti/PC_Tools/HTIGateway/ServicePlugins/HtiAudio/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 */
       
    16 #ifndef __HTI_PLUGIN_DEF__
       
    17 #define __HTI_PLUGIN_DEF__
       
    18 
       
    19 #include "HtiAudio.nsmap" //generated static namespaces struct
       
    20 
       
    21 class HtiSoapHandlerInterface;
       
    22 
       
    23 //additional export functions requried for an hti-plugin
       
    24 #define HTI_SOAP_ACTION "HtiAudio"
       
    25 #define HTI_AUDIO_UID 0x10210CCB
       
    26 
       
    27 /**
       
    28 * Return the name that is used to redirect SOAP request
       
    29 * to the plugin by comparing it to soapAction header
       
    30 **/
       
    31 extern "C" __declspec(dllexport) char* soapActionName(){return HTI_SOAP_ACTION;};
       
    32 
       
    33 /**
       
    34 * Returns service UID of corresponding symbian side service used
       
    35 * in HTI messages. It's used for redirection of the messages from HTI
       
    36 **/
       
    37 extern "C" __declspec(dllexport) int serviceUID(){return HTI_AUDIO_UID;};
       
    38 
       
    39 /**
       
    40 * Returns service namespace list
       
    41 **/
       
    42 extern "C" __declspec(dllexport) Namespace* serviceNamespaces(){return namespaces;};
       
    43 
       
    44 extern "C" __declspec(dllexport) int hti_serve(HtiSoapHandlerInterface*);
       
    45 
       
    46 #endif //__HTI_PLUGIN_DEF__