contenthandling/webrecognisers/weburlrec/weburlrec.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:05:08 +0300
branchRCL_3
changeset 18 0818dd463d41
parent 0 2e3d3ce01487
permissions -rw-r--r--
Revision: 201031 Kit: 201033

// 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__