webengine/wmlengine/src/wmlcontrol/include/WmlEngineInterface.h
branchRCL_3
changeset 49 919f36ff910f
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
       
     1 /*
       
     2 * Copyright (c) 2006 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 #ifndef WMLENGINEINTERFACE_H
       
    19 #define WMLENGINEINTERFACE_H
       
    20 
       
    21 //  INCLUDES
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <COEDEF.H>
       
    25 #include <brctldefs.h>
       
    26 #include <WmlEngineDefs.h>
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 //Forword declrartion;
       
    31 class CBrCtl;
       
    32 class MWmlInterface;
       
    33 class CView;
       
    34 class CShell;
       
    35 class HistoryController;
       
    36 class CWmlContentInterface;
       
    37 class CWmlDispatcher;
       
    38 class CWmlResourceLoadListener;
       
    39 class TBrCtlImageCarrier;
       
    40 class CCoeControl;
       
    41 //class THistoryStackPosition;
       
    42 class TCertInfo;
       
    43 
       
    44 
       
    45 // CLASS DECLARATION
       
    46 /**
       
    47 *
       
    48 *  @lib resLoader.lib
       
    49 *  @since 3.0
       
    50 */
       
    51 
       
    52 class MWmlEngineInterface 
       
    53     {
       
    54     public: 
       
    55 	  //Only the seconds phase contruction is done here.
       
    56       virtual void ConstructL( CBrCtl* aBrCtl, TRect& aRect, MWmlInterface* aWmlInterface ) = 0;
       
    57 
       
    58 	  inline virtual ~MWmlEngineInterface() {};
       
    59 	  
       
    60 	  virtual CWmlResourceLoadListener* LoadResourceL(  const TDesC& aUrl, void *aLoadContext,
       
    61                         void * /*NW_Url_RespCallback_t*/ aPartialLoadCallback, TUint16 aTransId) = 0;
       
    62 
       
    63 	  virtual CCoeControl* coeControl() = 0;
       
    64 
       
    65 	  virtual TBool WmlLink() = 0;
       
    66 
       
    67 	  virtual TInt AppId() = 0;
       
    68 
       
    69 	  virtual void SetAppId( TInt aApId ) = 0;
       
    70 
       
    71 	  virtual void SetWmlLink( TBool aLink ) = 0 ;
       
    72 
       
    73 	  virtual HBufC* PageInfoLC( TBrCtlDefs::TBrCtlPageInfo aBrCtlPageInfo ) = 0;
       
    74 
       
    75       virtual void SetBrowserSettingL( TUint aSetting, TUint aValue ) = 0;
       
    76 
       
    77 	  virtual void SetHistoryController( HistoryControllerInterface* aHistoryController ) = 0;
       
    78 
       
    79 	  virtual HistoryControllerInterface& HistoryController() const = 0;
       
    80 
       
    81 	  virtual void InputElementEditComplete( TBool aInputConfirmed ) = 0;
       
    82 
       
    83 	  virtual void GainFocus() = 0;
       
    84 
       
    85 	  virtual void LoseFocus() = 0;
       
    86 
       
    87 	  virtual TInt ProcessBack() = 0;
       
    88 
       
    89 	  virtual TInt HandleDo( TUint32 aElemId ) = 0;
       
    90 
       
    91 	  virtual CArrayFixFlat<TBrCtlImageCarrier>* GetPageImagesL() = 0;
       
    92 
       
    93 	  virtual TBrCtlDefs::TBrCtlElementType GetFocusedElementType() = 0;
       
    94 
       
    95 	  virtual TWmlEngineDefs::THistoryStackPosition HistoryStackPosition() = 0;
       
    96 
       
    97 	  virtual void MakeVisible(TBool aVisible) = 0;
       
    98 
       
    99 	  virtual void SetFocus( TBool aFocus, TDrawNow aDrawNow ) = 0;
       
   100 
       
   101 	  virtual void SetRect( const TRect &aRect ) = 0;
       
   102 
       
   103 	  //TBrowserStatusCode
       
   104 
       
   105 	  virtual 	TInt WMLPartialResponse( CWmlContentInterface* aWmlContentInterface,
       
   106 											const TUint16* aUri,
       
   107         									TPtr8& aBody,
       
   108         									void* aHeaders,
       
   109                                         	TUint8* aContentTypeString,
       
   110 			                                TUint8* aContentLocationString,
       
   111 			                                TBool aNoStore,
       
   112 			                                TUint8* aBoundaryString,
       
   113 			                                TUint16* aLastModified,
       
   114 			                                TUint16 aCharset,
       
   115 			                                TUint8* aCharsetString,
       
   116 			                                TUint aHttpStatus,
       
   117 			                                TUint8 aMethod,
       
   118 			                                TUint16 aTransId,
       
   119 			                                TInt aChunkIndex,
       
   120 			                                void* aCertInfo,
       
   121 			                                TUint aContentLength,
       
   122 			                                TInt aErr,
       
   123 			                                void* aLoadContext,
       
   124 			                                void* aPartialCallback ) = 0;
       
   125 
       
   126 	  virtual void WmlLoadUrlL( const TDesC& aUrl ) = 0;
       
   127 	  virtual void LoadImages() = 0;
       
   128 		
       
   129 	  virtual TRect WmlViewRectangle() = 0;
       
   130 
       
   131       virtual void ScrollTo(TPoint aPoint) = 0;
       
   132    virtual void SetCertInfo( const TCertInfo*  aCertInfo ) = 0;
       
   133    virtual const TCertInfo* CertInfo() const = 0;
       
   134 	  
       
   135       virtual void* loadContext() = 0;
       
   136       virtual void* partialLoadCallback() = 0;
       
   137       virtual TUint16 transId() = 0;
       
   138 
       
   139       virtual void WmlParameters( const char* data, int length, TDesC& contentType, TDesC& charset, TInt httpStatus, TInt chunkIndex, TDesC& url  ) = 0;	
       
   140       virtual TSize WMLDocumentSize() = 0;
       
   141       virtual TPoint WMLDocumentPosition() = 0;
       
   142 
       
   143     private:       
       
   144        
       
   145 
       
   146     };
       
   147 
       
   148 #endif      // WMLDISPATCHER_H            
       
   149 // End of File