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