contenthandling/webrecognisers/eBookmark/ebookmark.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __EBookmark_H__
       
    17 #define __EBookmark_H__
       
    18 
       
    19 #if !defined(__APMREC_H__)
       
    20 #include <apmrec.h>
       
    21 #endif
       
    22 
       
    23 const TInt KMaxQualiferLength=12;
       
    24 
       
    25 class CEBookmarkRecognizer : public CApaDataRecognizerType
       
    26 // Recognizes eBookmark from files with eBm extension and BEGIN: and URL: fields
       
    27 	{
       
    28 public: // from CApaDataRecognizerType
       
    29 	CEBookmarkRecognizer();
       
    30 	TUint PreferredBufSize();
       
    31 	TDataType SupportedDataTypeL(TInt aIndex) const;
       
    32 #ifdef __UI_FRAMEWORKS_V2__
       
    33 	static CApaDataRecognizerType* NewL();
       
    34 #endif //__UI_FRAMEWORKS_V2__
       
    35 private:
       
    36 	// from CApaDataRecognizerType
       
    37 	void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
       
    38 	};
       
    39 
       
    40 #endif // __EBookmark_H__