webengine/wmlengine/src/utils/include/nwx_msg_map_epoc32.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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 */
       
    17 
       
    18 
       
    19 #ifndef NWX_MSG_MAP_EPOC32_H
       
    20 #define NWX_MSG_MAP_EPOC32_H
       
    21 
       
    22 
       
    23 /*
       
    24 **----------------------------------------------------------------------
       
    25 ** Preprocessor Macro Definitions
       
    26 **----------------------------------------------------------------------
       
    27 */
       
    28 #ifdef __cplusplus
       
    29 extern "C" {
       
    30 #endif
       
    31 
       
    32 #include "nwx_defs.h"
       
    33 #include "nwx_script_handler.h"
       
    34 #include "BrsrStatusCodes.h"
       
    35 
       
    36 /*************************************************************************
       
    37     Function Prototypes for all of the message handlers appear here
       
    38 *************************************************************************/
       
    39 
       
    40 /*TBrowserStatusCode NW_Msg_NYI(NW_Msg_t *msg);*/
       
    41 
       
    42 /*TBrowserStatusCode NW_Script_Notifyerrorresp(NW_Msg_t *msg);*/
       
    43 TBrowserStatusCode NW_Script_Genericdialoglistselectresp(NW_Msg_t *msg);
       
    44 TBrowserStatusCode NW_Script_Genericdialogpromptresp(NW_Msg_t *msg);
       
    45 TBrowserStatusCode NW_Script_Genericdialoginputpromptresp(NW_Msg_t *msg);
       
    46 
       
    47 /* RME messages */
       
    48 TBrowserStatusCode NW_Msg_MessageDispatcher_MessageHandler (NW_Msg_t* msg);
       
    49 
       
    50 /* Script messages for WTA */
       
    51 TBrowserStatusCode NW_Wml_nokia_locationInfoReq(NW_Msg_t *msg);
       
    52 TBrowserStatusCode NW_UiRequestCallback(NW_Msg_t *msg);
       
    53  
       
    54 /* WML messages */
       
    55 TBrowserStatusCode NW_Wml_Scriptexitresp(NW_Msg_t *msg);
       
    56 TBrowserStatusCode NW_Wml_Scriptstartresp(NW_Msg_t *msg);
       
    57 TBrowserStatusCode NW_Wml_Getvarreq(NW_Msg_t *msg);
       
    58 TBrowserStatusCode NW_Wml_Setvarreq(NW_Msg_t *msg);
       
    59 TBrowserStatusCode NW_Wml_Loadprevreq(NW_Msg_t *msg);
       
    60 TBrowserStatusCode NW_Wml_Newcontextreq(NW_Msg_t *msg);
       
    61 TBrowserStatusCode NW_Wml_Goreq(NW_Msg_t *msg);
       
    62 TBrowserStatusCode NW_Wml_Refreshreq(NW_Msg_t *msg);
       
    63 
       
    64 TBrowserStatusCode NW_Wml_Dialogalertreq(NW_Msg_t *msg);
       
    65 TBrowserStatusCode NW_Wml_Notifyerrorreq(NW_Msg_t *msg);
       
    66 TBrowserStatusCode NW_Wml_Dialogconfirmreq(NW_Msg_t *msg);
       
    67 TBrowserStatusCode NW_Wml_Dialogpromptreq(NW_Msg_t *msg);
       
    68 TBrowserStatusCode NW_Wml_Finishnodialogreq(NW_Msg_t *msg);
       
    69 TBrowserStatusCode NW_Wml_Genericdialoglistselectreq(NW_Msg_t *msg);
       
    70 TBrowserStatusCode NW_Wml_Genericdialogpromptreq(NW_Msg_t *msg);
       
    71 TBrowserStatusCode NW_Wml_Genericdialoginputpromptreq(NW_Msg_t *msg);
       
    72 
       
    73 
       
    74 #define NW_MSG_NUM_DISPATCHERS 1
       
    75 
       
    76 /*      message-handler     dispatcher, msg-pump,           component */
       
    77 #define FILE_LOADER_HDLR    0,          NW_MSG_PSQ_DSP,     NW_FILE_LOADER
       
    78 #define USER_AGENT_HDLR     0,          NW_MSG_PSQ_DSP,     NW_USER_AGENT
       
    79 #define CACHE_SERVER_HDLR   0,          NW_MSG_PSQ_DSP,     NW_CACHE_SERVER
       
    80 #define HTTP_LOADER_HDLR    0,          NW_MSG_PSQ_DSP,     NW_HTTP_LOADER
       
    81 #define BROWSER_CORE_HDLR   0,          NW_MSG_PSQ_DSP,     NW_BROWSER_CORE
       
    82 #define SCRIPT_SERVER_HDLR  0,          NW_MSG_PSQ_DSP,     NW_SCRIPT_SERVER
       
    83 #define WTAI_LOADER_HDLR    0,          NW_MSG_PSQ_DSP,     NW_WTAI_LOADER
       
    84 
       
    85 
       
    86 
       
    87 /* Define how many message handlers */
       
    88 #define NW_MSG_NUM_HANDLERS(msg_map) (sizeof(msg_map)/sizeof(msg_map[0]))
       
    89 
       
    90 /*  message-handler       message-type                        handler-func */
       
    91 #define NW_MSG_MAP_CLI { \
       
    92     {BROWSER_CORE_HDLR,    NW_MSG_MSG_DSP_HANDLE_MESSAGE,       NW_Msg_MessageDispatcher_MessageHandler},  \
       
    93     {BROWSER_CORE_HDLR,   NW_MSG_SCRIPT_START_RESP,             NW_Wml_Scriptstartresp}, \
       
    94     {BROWSER_CORE_HDLR,   NW_MSG_SCRIPT_EXIT_RESP,              NW_Wml_Scriptexitresp}, \
       
    95     {BROWSER_CORE_HDLR,   NW_MSG_COREBROWSER_GETVAR_REQ,        NW_Wml_Getvarreq}, \
       
    96     {BROWSER_CORE_HDLR,   NW_MSG_COREBROWSER_SETVAR_REQ,        NW_Wml_Setvarreq}, \
       
    97     {BROWSER_CORE_HDLR,   NW_MSG_COREBROWSER_LOADPREV_REQ,      NW_Wml_Loadprevreq}, \
       
    98     {BROWSER_CORE_HDLR,   NW_MSG_COREBROWSER_NEWCONTEXT_REQ,    NW_Wml_Newcontextreq}, \
       
    99     {BROWSER_CORE_HDLR,   NW_MSG_COREBROWSER_GO_REQ,            NW_Wml_Goreq}, \
       
   100     {BROWSER_CORE_HDLR,   NW_MSG_COREBROWSER_REFRESH_REQ,       NW_Wml_Refreshreq}, \
       
   101     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_START_REQ,              NW_Script_Startreq}, \
       
   102     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_EXIT_REQ,               NW_Script_Exitreq}, \
       
   103     {SCRIPT_SERVER_HDLR,  NW_MSG_COREBROWSER_GETVAR_RESP,       NW_Script_Getvarresp}, \
       
   104     {SCRIPT_SERVER_HDLR,  NW_MSG_COREBROWSER_SETVAR_RESP,       NW_Script_Setvarresp}, \
       
   105     {SCRIPT_SERVER_HDLR,  NW_MSG_COREBROWSER_LOADPREV_RESP,     NW_Script_Loadprevresp}, \
       
   106     {SCRIPT_SERVER_HDLR,  NW_MSG_COREBROWSER_NEWCONTEXT_RESP,   NW_Script_Newcontextresp}, \
       
   107     {SCRIPT_SERVER_HDLR,  NW_MSG_COREBROWSER_GO_RESP,           NW_Script_Goresp}, \
       
   108     {SCRIPT_SERVER_HDLR,  NW_MSG_COREBROWSER_REFRESH_RESP,      NW_Script_Refreshresp}, \
       
   109     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_RESUME_REQ,             NW_Script_Resumereq}, \
       
   110     {SCRIPT_SERVER_HDLR,  NW_MSG_UA_DLGALERT_RESP,              NW_Script_Dialogalertresp}, \
       
   111     {SCRIPT_SERVER_HDLR,  NW_MSG_UA_DLGPROMPT_RESP,             NW_Script_Dialogpromptresp}, \
       
   112     {SCRIPT_SERVER_HDLR,  NW_MSG_UA_DLGCONFIRM_RESP,            NW_Script_Dialogconfirmresp}, \
       
   113     {SCRIPT_SERVER_HDLR,  NW_MSG_UA_FINISHNODLG_RESP,           NW_Script_Finishnodialogresp}, \
       
   114     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_SUSPEND_REQ,            NW_Script_Suspendresp}, \
       
   115     {BROWSER_CORE_HDLR,   NW_MSG_SCRIPT_NOKIA_LOCATIONINFO_REQ, NW_Wml_nokia_locationInfoReq}, \
       
   116     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_WP_MAKECALL_RESP,       NW_Script_wtaiResp}, \
       
   117     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_WP_SENDDTMF_RESP,       NW_Script_wtaiResp}, \
       
   118     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_WP_ADDPBENTRY_RESP,     NW_Script_wtaiResp}, \
       
   119     {SCRIPT_SERVER_HDLR,  NW_MSG_SCRIPT_NOKIA_LOCATIONINFO_RESP,NW_Script_wtaiResp}, \
       
   120     {BROWSER_CORE_HDLR,   NW_MSG_UA_DLGALERT_REQ,               NW_Wml_Dialogalertreq}, \
       
   121     {SCRIPT_SERVER_HDLR,  NW_MSG_UA_NOTIFYERROR_RESP,           NW_Script_Notifyerrorresp}, \
       
   122     {BROWSER_CORE_HDLR,   NW_MSG_UA_NOTIFYERROR_REQ,            NW_Wml_Notifyerrorreq}, \
       
   123     {BROWSER_CORE_HDLR,   NW_MSG_UA_DLGCONFIRM_REQ,             NW_Wml_Dialogconfirmreq}, \
       
   124     {BROWSER_CORE_HDLR,   NW_MSG_UA_DLGPROMPT_REQ,              NW_Wml_Dialogpromptreq}, \
       
   125     {BROWSER_CORE_HDLR,   NW_MSG_UA_FINISHNODLG_REQ,            NW_Wml_Finishnodialogreq}, \
       
   126     {BROWSER_CORE_HDLR,   NW_MSG_UA_DIALOGLISTSELECT_REQ,       NW_Wml_Genericdialoglistselectreq}, \
       
   127     {BROWSER_CORE_HDLR,   NW_MSG_UA_DIALOGPROMPT_REQ,           NW_Wml_Genericdialogpromptreq}, \
       
   128     {BROWSER_CORE_HDLR,   NW_MSG_UA_DIALOGINPUTPROMPT_REQ,      NW_Wml_Genericdialoginputpromptreq}, \
       
   129     \
       
   130     }
       
   131 
       
   132 #ifdef __cplusplus
       
   133 } /* extern "C" */
       
   134 #endif
       
   135 
       
   136 #endif  /* nwx_msg_map_h */