Header Sep
Symbian OS Tips, Tricks & Code
Score
Login to rate page

December 2005
Simple file manager based on listbox for UIQ 3

[Back]

December 2006: example application updated from UIQ 3 beta SDK to final UIQ 3 SDK

This example shows how one of the more useful controls, CQikListBox, can be used to create a simple file manager. The file manager allows the user to browse through system file structure. When working with this application, please be aware of the new Platform Security introduced with UIQ 3 – data caging. Not all of the folders are publicly available. To be able to access the whole file structure, add the required capabilities to the resources and then apply for a Symbian Signed DevCert to access the necessary capabilities. More information>>

Download example application>>

To build this project for the P990 smartphone, use the following commands:

$ bldmake bldfiles
$ abld build gcce urel
$ makesis MyFileMan_gcce.pkg

This example will familiarize you with new the CQikListBox class as some of basic list functionality is shown. You can browse through the files in normal view mode or in full screen. There is a command to switch between these two modes.

When the file manager is started, the user is given an option to browse drives 'C' or 'D'. This is hard coded. When a new folder is opened, the application scans its content. After that, new content in the listbox is updated to reflect this. The first row of the listbox gives the option to go back. Then folders are added and files after that. The user can mark files but not folders.

 

The application allows moving or copying. A new class, CQikViewDialog is used for this purpose. A view based dialog is displayed and the user can browse to the destination folder. Removing of files is also possible.

For more information about listbox, refer to the UIQ 3 beta SDK documentation>>   
» UIQ 3 SDK » UIQ Developer Library » UIQ API Reference » UIQ C++ Component reference » Qikon » CQikListBox
» UIQ 3 SDK » UIQ Developer Library » UIQ How-To Guides » Controls » List Box » Introductory guide

Also see the P990 Developers' Guidelines>>

 

Score
Login to rate page