epoc32/include/msvftext.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- a/epoc32/include/msvftext.h	Tue Mar 16 16:12:26 2010 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,79 +0,0 @@
     1.4 -// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -#ifndef __MSVFTEXT_H__
    1.20 -#define __MSVFTEXT_H__
    1.21 -
    1.22 -#include <e32base.h>
    1.23 -
    1.24 -#include <mentact.h>
    1.25 -#include <mtclbase.h>
    1.26 -#include <mtmdef.h>
    1.27 -
    1.28 -class CRichText;
    1.29 -
    1.30 -class CMsvFindText : public CMsgActive
    1.31 -/** A utility class which searches through given plain text or rich text for a 
    1.32 -specified text string.
    1.33 -
    1.34 -The class is an active object and searching can be done synchronously or asynchronously. 
    1.35 -An instance of this class can be re-used to perform multiple searches for 
    1.36 -text. 
    1.37 -@publishedAll
    1.38 -@released
    1.39 -*/
    1.40 -	{
    1.41 -public:
    1.42 -	IMPORT_C static CMsvFindText* NewLC(TInt aPriority = EPriorityStandard);
    1.43 -	IMPORT_C static CMsvFindText* NewL(TInt aPriority = EPriorityStandard);
    1.44 -	IMPORT_C ~CMsvFindText();
    1.45 -	//
    1.46 -	IMPORT_C void FindTextL(const TDesC& aFind, const TDesC& aSource, TMsvPartList aFlags, TRequestStatus& aStatus);
    1.47 -	IMPORT_C void FindRichTextL(const TDesC& aFind, const CRichText& aSource, TMsvPartList aFlags, TRequestStatus& aStatus);
    1.48 -	//
    1.49 -	IMPORT_C TBool FindTextL(const TDesC& aFind, const TDesC& aSource, TMsvPartList aFlags);
    1.50 -	IMPORT_C TBool FindRichTextL(const TDesC& aFind, const CRichText& aSource, TMsvPartList aFlags);
    1.51 -	//
    1.52 -	inline TBool FoundText() const;
    1.53 -	//
    1.54 -private:
    1.55 -	CMsvFindText(TInt aPriority);
    1.56 -	//
    1.57 -	void InitialiseL(const TDesC& aFind, const TDesC* aPlainSource, const CRichText* aRichSource, TMsvPartList aFlags);
    1.58 -	void DoFindAsyncL(TRequestStatus& aStatus);
    1.59 -	void DoComplete(TInt&);
    1.60 -	TBool DoFindSyncL();
    1.61 -	TBool DoFindStepL();
    1.62 -	TBool DoFindTextL();
    1.63 -	void DoRunL();
    1.64 -	void Check();
    1.65 -	//
    1.66 -private:
    1.67 -	HBufC* iBuf;
    1.68 -	HBufC* iFind;
    1.69 -	TInt iSourcePos;
    1.70 -	TInt iMaxRead;
    1.71 -	TInt iSourceLen;
    1.72 -	const CRichText* iRichText;
    1.73 -	const TDesC* iPlainText;
    1.74 -	TMsvPartList iFlags;
    1.75 -	TChar iPreChar;
    1.76 -	TChar iPostChar;
    1.77 -	TBool iFoundText;
    1.78 -	};
    1.79 -
    1.80 -#include <msvftext.inl>
    1.81 -
    1.82 -#endif