First public contribution.
1 // Copyright (c) 1994-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\euser\us_hand.cpp
21 _LIT(KLiteralMatchAny, "*");
23 EXPORT_C TFindHandleBase::TFindHandleBase()
24 : iMatch(KLiteralMatchAny)
28 The default constructed TFindHandleBase object has the default match pattern, i.e.
29 the single character "*".
37 EXPORT_C TFindHandleBase::TFindHandleBase(const TDesC& aMatch)
40 Constructor with match pattern.
42 This constructor creates a TFindHandleBase object with the specified match
45 @param aMatch A reference to the descriptor containing the match pattern.
53 EXPORT_C void TFindHandleBase::Find(const TDesC& aMatch)
55 Sets a new match pattern.
57 On return from this function, this TFindHandleBase object contains a copy
58 of the supplied match pattern; the source descriptor can, therefore, be safely
61 @param aMatch A reference to the descriptor containing the new match pattern.
70 Implementation for TFindXxxxxxx::Next(TFullName &aResult) methods
73 TInt TFindHandleBase::NextObject(TFullName& aResult, TInt aObjectType)
75 TBuf8<KMaxFullName> match8;
77 TInt r = Exec::ObjectNext((TObjectType)aObjectType, match8, *this);
85 EXPORT_C void RHandleBase::SetHandleNC(TInt aHandle)
87 Sets the handle-number of this handle to the specified
88 value, and marks it as not closable.
90 @param aHandle The handle-number to be set.
93 SetHandle(aHandle|CObjectIx::ENoClose);