CHAPTER 4. DEVELOPING APPLICATIONS
4.2 MIZI Prizm 2.0 DIRECTORY STRUCTURE
This section explains directory structure of MIZI Prizm 2.0 with its corresponding
API.
A. MIZI Prizm 2.0 directories consists of following;
Read/Write MIZI Prizm 2.0 directory:
It is a directory which exists in read/write-able file system. Application must
use this directory to store data in PDA permanently.
Root path: "$HOME/Linuette"
Read-only MIZI Prizm 2.0 directory:
It is a read-only directory that is used to restore MIZI Prizm 2.0 as factory
default. Consequently, you can NOT modify it before you replace file system
of target device.
Root path: "$LINUETTEDIR"
Document directory:
Any user document will be stored in this directory. Also it is unique user-accessible
directory.
Root path: "$HOME/Document"
B. System Directory Structure
The directories of MIZI Prizm 2.0 are shown in following list:
| bin |
: binary file directory |
| lib |
: library file directory |
| plug-in |
: plug-in directory |
| setting |
: config file directory |
| database |
: database file directory |
| pixmap |
: icon and image file directory |
| sound |
: wave file directory |
| desktop |
: desktop file directory where contains application information |
| trans |
: message file directory for each language |
MIZI Prizm 2.0 searches file in read/write-able directory initially for reading.
If it fails, then it continues to search in read-only directory.
By contrast with reading, MIZI Prizm 2.0 writes a file to read/write directory
ONLY.
C. Document Directory Structure
Reconfiguring of document structure is possible. Factory default is as follows;
An application can create a temporary directory such as Photo
or Multimedia to save user data.
When user inserts an external storage (CF, SD, MMC, etc) to the device, then temporary
directory with corresponding name will be automatically created. If user removes
those external storages from the device, then the temporary directory shall be
deleted.
D. SDK support
Following APIs could be used to get absolute path of the class MzApplication
• QString documentDir ()
• QString linuetteDir (bool system=false)
• QString pixmapDir (bool system=false)
• QString plug-inDir (bool system=false)
• QString binDir (bool system=false)
• QString desktopDir (bool system=false)
• QString settingDir (bool system=false)
• QString transDir (bool system=false)
• QString helpDir (bool system=false)
• QString startupDir (bool system=false)
• QString soundDir (bool system=false)
• QString tempDir ()
The APIs return read/write-able directory path.
It returns read-only directory path if "system" argument is true.
|