// WE_DOCIN.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#if !defined(__WE_DOCIN_H__)
#define __WE_DOCIN_H__

#if !defined(__WTLSESSN_H__)
#include <wtlsessn.h>
#endif
#if !defined(__WEBDOCIN_H__)
#include "webdocin.h"
#endif

class CWebDocumentInfo : public CBase, public MWebDocumentInfo
	{
public:
	IMPORT_C static CWebDocumentInfo* NewL(tWtlHandle aHandle, CWtlSession* aWtlSession);
	IMPORT_C HBufC* UrlL() const;
	IMPORT_C TUint Size() const;
	IMPORT_C void MimeTypeL(TDataType& aDataType) const;
	IMPORT_C TTime CachedTime() const;
	IMPORT_C TTime CacheExpiryTime() const;
	IMPORT_C TTime LastModifiedTime() const;
	IMPORT_C TUint Language() const;
	IMPORT_C TBool Secure() const;
	IMPORT_C TBool Cached() const;
	IMPORT_C ~CWebDocumentInfo();
private:
	CWebDocumentInfo();
	void ConstructL(tWtlHandle aHandle, CWtlSession* aWtlSession);
	static void DoUrlCleanup(TAny* aSelf);
private:
	CWtlSession::SWtlDocData iDocInfo;
	CWtlSession* iSession;	
	};

#endif
