#include </home/clem/local/src/opie/library/storage.h>
Collaboration diagram for FileSystem:

Public Member Functions | |
| const QString & | disk () const |
| const QString & | path () const |
| const QString & | name () const |
| const QString & | options () const |
| long | blockSize () const |
| long | totalBlocks () const |
| long | availBlocks () const |
| bool | isRemovable () const |
| bool | isWritable () const |
Private Member Functions | |
| FileSystem (const QString &disk, const QString &path, const QString &humanname, bool rem, const QString &opts) | |
| void | update () |
Private Attributes | |
| QString | fsdisk |
| QString | fspath |
| QString | humanname |
| long | blkSize |
| long | totalBlks |
| long | availBlks |
| bool | removable |
| QString | opts |
Friends | |
| class | StorageInfo |
This class simply returns information about a mount point, including file system name, mount point, human readable name, size information and mount options information.
Definition at line 53 of file storage.h.
|
||||||||||||||||||||||||
|
Definition at line 327 of file storage.cpp. References update(). |
|
|
Returns the number of available blocks on the file system Definition at line 62 of file storage.h. References availBlks. Referenced by MountInfo::updateData(). |
|
|
Returns the size of each block on the file system. Definition at line 60 of file storage.h. References blkSize. Referenced by MountInfo::updateData(). |
|
|
Returns the file system name, such as /dev/hda3 Definition at line 56 of file storage.h. References fsdisk. Referenced by AppLnk::linkFile(), and FileSysInfo::updateMounts(). |
|
|
Returns flag whether the file system can be removed, such as a CF card would be removable, but the internal memory wouldn't Definition at line 63 of file storage.h. References removable. Referenced by Opie::Core::OGlobal::isDocumentFileName(), and AppLnk::linkFile(). |
|
|
Returns flag whether the file system is mounted as writable or read-only. Returns FALSE if read-only, TRUE if read and write. Definition at line 64 of file storage.h. References QString::contains(), and opts. |
|
|
Returns the translated, human readable name for the mount directory. Definition at line 58 of file storage.h. References humanname. Referenced by DCIM_DirLister::findCameras(), Mediadlg::init(), Opie::Core::OGlobal::isDocumentFileName(), and MountInfo::MountInfo(). |
|
|
Returns the mount options Definition at line 59 of file storage.h. References opts. |
|
|
Returns the mount path, such as /home Definition at line 57 of file storage.h. References fspath. Referenced by DocumentListPrivate::appendDocpath(), DCIM_DirLister::findCameras(), Mediadlg::init(), AppLnk::linkFile(), and MountInfo::MountInfo(). |
|
|
Returns the total number of blocks on the file system Definition at line 61 of file storage.h. References totalBlks. Referenced by MountInfo::updateData(). |
|
|
Definition at line 333 of file storage.cpp. References availBlks, blkSize, fspath, QString::latin1(), and totalBlks. Referenced by FileSystem(). |
|
|
|
|
|
Definition at line 76 of file storage.h. Referenced by availBlocks(), and update(). |
|
|
Definition at line 74 of file storage.h. Referenced by blockSize(), and update(). |
|
|
Definition at line 71 of file storage.h. Referenced by disk(). |
|
|
|
|
|
Definition at line 73 of file storage.h. Referenced by name(). |
|
|
Definition at line 78 of file storage.h. Referenced by isWritable(), and options(). |
|
|
Definition at line 77 of file storage.h. Referenced by isRemovable(). |
|
|
Definition at line 75 of file storage.h. Referenced by totalBlocks(), and update(). |
1.4.2