webengine/wmlengine/src/wml/include/wml_api.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 1999 - 2001 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 WML_API_H
       
    20 #define WML_API_H
       
    21 
       
    22 #include "nw_wml_api.h"
       
    23 #include "wml_decoder.h"
       
    24 //R
       
    25 //#include "urlloader_urlloaderint.h"
       
    26 #include "BrsrStatusCodes.h"
       
    27 
       
    28 #ifdef __cplusplus
       
    29 extern "C" {
       
    30 #endif /* __cplusplus */
       
    31 
       
    32 /* interface to the loaders */
       
    33 TBrowserStatusCode NW_Wml_HttpLoad(void    *wml1xCH,
       
    34                       const NW_Ucs2 *url,
       
    35                             NW_Bool is_method_post,
       
    36                       const NW_Ucs2 *referer,
       
    37                       const NW_Ucs2 *accept_charset,
       
    38                    NW_Http_Header_t *header,
       
    39                         NW_NVPair_t *postfields,
       
    40                       const NW_Ucs2 *enctype,
       
    41               const NW_Cache_Mode_t cacheMode);
       
    42 
       
    43 TBrowserStatusCode NW_Wml_UrlLoad(void     *wml1xCH,
       
    44                       const NW_Ucs2 *url, 
       
    45                         NW_NVPair_t *postfields,
       
    46               const NW_Cache_Mode_t cacheMode, 
       
    47 			  NW_Ucs2* referrerUrl);
       
    48 
       
    49 /* Request previous card load as the result of executing a PREV task */
       
    50 TBrowserStatusCode NW_Wml_DoPrevLoad(void *wml1xCH);
       
    51 
       
    52 /* interface to control navigation events.
       
    53    Note: WML Interpreter invokes this function when ever it is navigating to 
       
    54    a new URL. If this function returns a result "KBrsrSuccess", navigation 
       
    55    is performed,  for all other values the navigation is canceled.
       
    56 */
       
    57 TBrowserStatusCode NW_Wml_CanNavigateToUri(void);
       
    58 
       
    59 #ifdef __cplusplus
       
    60 } // extern "C" {
       
    61 #endif /* __cplusplus */
       
    62 
       
    63 #endif /* WML_API_H */