📄 index.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>FindItemTestApp Example</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 3rd Edition SDK FP1 for Symbian OS </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs"> <ul> <li id="current"><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><h1>FindItemTestApp Example</h1><p><a class="el" href="index.html#intro_sec">1. About this Example</a> <br><a class="el" href="index.html#Pre_sec">2. Prerequisites</a> <br><a class="el" href="index.html#Design_sec">3. Design and Implementation</a><p><hr><h2><a class="anchor" name="intro_sec">1. About this Example</a></h2>FindItemTestApp is an example application that demonstrates Find Item API functionality. Find Item API offers methods for parsing phone numbers, e-mail addresses or URI addresses from given text.<p><hr><h2><a class="anchor" name="Pre_sec">2. Prerequisites</a></h2><ul><li>Symbian 9.1 platform.</li></ul><p><hr><h2><a class="anchor" name="Design_sec">3. Design and Implementation</a></h2>FindItemTestApp is a simple Symbian Series 60 based UI application. <code>HandleCommandL</code> method of <code>CFindItemTestAppAppUI</code> class handles commands entered by user and directs the service requests to the right method that handles them.<p>The following sections explain the capabilities of the application, the current state of scalableUI support, the module dependencies and finally, steps required to build and use the application..<h3><a class="anchor" name="Sub31">3.1 Capabilities</a></h3>The program capabilities are defined in FindItemTestApp.mmp file: CAPABILITY NONE<h3><a class="anchor" name="Sub32">3.2 ScalableUI</a></h3>The program takes screen parameters in the start of the application. The program does not support changing the screen layout while the program is running.<h3><a class="anchor" name="Sub33">3.3 Module dependencies</a></h3>At build time there exists following module dependencies:<ul><li><em>FindItemTestApp</em> requires <em>CommonEngine.lib</em> because the Find Item API is a part of the CommonEngine.</li></ul><p>In addition, several UI related libraries provided by SDK are required: euser, apparc, cone, eikcore, eikcoctl, avkon, efsrv, CommonEngine, bafl.<h3><a class="anchor" name="Sub34">3.4 Building the example application</a></h3>Application can be built in directory <code>FindItemTestApp\group</code> by running the following commands:<ul><li><code>bldmake bldfiles</code></li><li><code>abld build winscw udeb</code></li></ul><p>In addition it is possible to create project from <em>CodeWarrior</em> IDE by running the following command:<ul><li><code>abld makefile cw_ide</code></li></ul><p>After succesful build, application can be found and started from<ul><li><b>Applications > Installed > FindItemTestApp</b>.</li></ul><h3><a class="anchor" name="Sub35">3.5 Using the application</a></h3>In the following is described a typical use case scenario for the FindItemTestApp application. The scenario is as follows:<p><ul><li>User starts the application</li><li>User selects example text</li><li>User searches phone numbers</li><li>User searches mail addresses</li><li>User searches URIs</li><li>User searches URLs</li><li>User searches all items</li><li>User exits from the application</li></ul><p>The rest of the sub sections describe how individual scenario steps are performed.<h4><a class="anchor" name="Subsub351">3.5.1 Select example text</a></h4>After starting the application, there is an instructions displayed on the screen. Select <b>Options > Example text</b> to view the example text.<br> By selecting <b>Back</b>, the user returns to instructions view.<p><div align="center"><img src="instructions.jpg" alt="instructions.jpg"></div><h5 align="center">Figure 1 Application's instructions</h5><p><div align="center"><img src="optionlist.jpg" alt="optionlist.jpg"></div><h5 align="center">Figure 2 Opened optionlist</h5><p><div align="center"><img src="example_text.jpg" alt="example_text.jpg"></div><h5 align="center">Figure 3 The example text</h5><h4><a class="anchor" name="Subsub352">3.5.2 Search items</a></h4>Select <b>Options > Search phone numbers / Search mail addresses / Search URIs / Search URLs / Saerch all items</b> to view the results of the wanted search.<br> By selecting <b>Back</b>, the user returns to instructions view.<p><div align="center"><img src="found_phone_numbers.jpg" alt="found_phone_numbers.jpg"></div><h5 align="center">Figure 4 Found phone numbers</h5><p><div align="center"><img src="found_uris.jpg" alt="found_uris.jpg"></div><h5 align="center">Figure 5 Found URIs</h5><p><div align="center"><img src="found_all_items.jpg" alt="found_all_items.jpg"></div><h5 align="center">Figure 6 Found all items</h5><h4><a class="anchor" name="Subsub353">3.5.3 Exiting from the application</a></h4>By selecting <b>Options > Exit</b> in the instructions view, the user exits the application. <hr><table x-use-null-cells style="x-cell-content-align: top; width: 100%; border-spacing: 0px; border-spacing: 0px;" cellspacing=0 width=100%> <col style="width: 50%;"> <col style="width: 50%;"> <tr style="x-cell-content-align: top;" valign=top> <td style="width: 50%; padding-right: 10px; padding-left: 10px; border-right-style: None; border-left-style: None; border-top-style: None; border-bottom-style: None;" width=50%> <p style="font-family: Arial;"><small style="font-size: smaller;">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -