contenthandling/webrecognisers/weburlrec/weburlrec.h
author srilekhas <srilekhas@symbian.org>
Fri, 22 Oct 2010 16:02:50 +0100
branchRCL_3
changeset 83 20e07ff6040b
parent 0 2e3d3ce01487
permissions -rw-r--r--
Remerge fixes for Bug 2524, Bug 2414 (Symbian splashscreen and shutdown)

// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// RECSCHEME.H
// 
//

#ifndef __WEBURLREC_H__
#define __WEBURLREC_H__

#if !defined(__APMREC_H__)
#include <apmrec.h>
#endif

const TInt KMaxQualiferLength=12;

class CApaSchemeRecognizer : public CApaDataRecognizerType
// Recognises schemes which form the front of urls
	{
public: // from CApaDataRecognizerType
	CApaSchemeRecognizer();
	TUint PreferredBufSize();
	TDataType SupportedDataTypeL(TInt aIndex) const;
#ifdef __UI_FRAMEWORKS_V2__
	static CApaDataRecognizerType* NewL();
#endif //__UI_FRAMEWORKS_V2__
private:
	// from CApaDataRecognizerType
	void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
	TBool FindScheme(const TDesC& aScheme, const TDesC& aUrl);
	};

#endif // __WEBURLREC_H__