webengine/wmlengine/src/MVC/include/httploader_mlinkresolvercallbacks.h
branchRCL_3
changeset 94 919f36ff910f
equal deleted inserted replaced
93:79859ed3eea9 94:919f36ff910f
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Callback classes from Link resolver to the UI and back
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MLINKRESOLVERCALLBACKS_H
       
    19 #define MLINKRESOLVERCALLBACKS_H
       
    20 
       
    21 #include <brctldefs.h>
       
    22 
       
    23 #include "BrsrStatusCodes.h"
       
    24 #include "urlloader_urlresponse.h"
       
    25 
       
    26 //  INCLUDES
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 class MBrCtlLinkResolver;
       
    40 class CWmlResourceLoadListener;
       
    41 
       
    42 /**
       
    43 *  Callback class for requests to the UI from Link Resolver.
       
    44 *
       
    45 *  @lib httploader.lib
       
    46 *  @since 2.0
       
    47 */
       
    48 class MHttpLoader_LinkResolverCallbacks
       
    49     {
       
    50 
       
    51 public: // New functions
       
    52 
       
    53     /**
       
    54     * Called to obtain the current URL.
       
    55     * @since 2.8
       
    56 	* @param 
       
    57     * @return The current URL
       
    58     */
       
    59     virtual HBufC* CurrentUrlLC() = 0;
       
    60 
       
    61     /**
       
    62     * Called to obtain a pointer to the Link Resolver
       
    63     * @since 2.8
       
    64     * @return The Browser Control's Link Resolver
       
    65     */
       
    66     virtual MBrCtlLinkResolver* LinkResolver() = 0;
       
    67     
       
    68 
       
    69     /**
       
    70     * Called to check if the Host Application should be called to resolve the URL
       
    71     * @since 2.8
       
    72     * @return ETrue if the Host Application will resolve the URL, EFalse otherwise
       
    73     */
       
    74     virtual TBool ShouldResolveUrl(TBool aIsTopLevel, NW_Uint8 aReason) = 0;
       
    75     
       
    76     /**
       
    77     * Called to Load Url to resolve the URL
       
    78     * @since 3.1
       
    79     * @return 
       
    80     */
       
    81     virtual void LoadLinkUrl(const TDesC& aUrl, void* aHeaders ) = 0;
       
    82     
       
    83     /**
       
    84     * Called to Load Url to resolve the URL
       
    85     * @since 3.1
       
    86     * @return 
       
    87     */
       
    88     virtual void PostLinkUrl(TDesC& aUrl, TDesC8& aPostData, TDesC& aContentType) = 0;
       
    89     	
       
    90     /**
       
    91     * Called to Load Ebbeded content
       
    92     * @since 3.1
       
    93     * @return 
       
    94     */
       
    95     virtual CWmlResourceLoadListener* LoadEmbededUrl( const TDesC& aUrl, void *aLoadContext,
       
    96                         void* aPartialLoadCallback, TUint16 aTransId  ) = 0;
       
    97 
       
    98 	/**
       
    99     * Called to set the ONENTERBACKWORD event
       
   100     * @since 3.1
       
   101     * @return void
       
   102     */
       
   103     virtual void SetOnEnterBackwordReason() = 0;
       
   104 	
       
   105     /**
       
   106     * Convert a charset from string to IANA encoding
       
   107     * @since 2.8
       
   108     * @return IANA encoding of the charset
       
   109     */
       
   110     virtual TUint16 ConvertCharset(const TDesC8& aCharset) = 0;
       
   111 
       
   112     };
       
   113 
       
   114 #endif      // MLINKRESOLVERCALLBACKS_H   
       
   115 
       
   116 // End of File