Namespaces
Variants
Actions

Item Finder API

Jump to: navigation, search
Article Metadata

Code Example
Article
Created: ltomuta (16 Jun 2007)
Last edited: hamishwillee (08 May 2013)


Note.png
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.

APIPurpose

Plugin utility used for automatic tags ( http, email, phone numbers )

Header:

#include <aknitemfinder.h>
Note.png
Note: :In S60 5th edition extensions plug-in, the API is changed to CItemFinder and the same can be located at epoc32\include\itemfinder.h

Use cases

The CAKnItemFinder class provides the functionality of highlighting, selecting and retrieving items like phone number, URL, http address in text viewer editors.

Example code

iAutoFinder = CAknItemFinder::NewL(); 
//Must be called before editor creation in order to have effect
iAutoFinder->SetFindModeL(CAknItemFinder::EPhoneNumber |
CAknItemFinder::EUrlAddress |
CAknItemFinder::EEmailAddress );
 
iAutoFinder->SetEditor((CEikRichTextEditor**)&iDialText); // iDial is any editor.

The following code is used to scroll down for the found items through the editor

TBool iReturn = iAutoFinder->NextItemOrScrollL( CAknItemFinder::ENextDown );

The following code is used to retrieve the selected item.

HBufC* iBuff = iAutoFinder->CurrentItem().iItemDescriptor;

Sample Application

File:UseItemFinder.zip

This page was last modified on 8 May 2013, at 03:02.
227 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved