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


Public Slots | |
| void | update () |
Signals | |
| void | disksChanged () |
Public Member Functions | |
| StorageInfo (QObject *parent=0) | |
| const QList< FileSystem > & | fileSystems () const |
| const FileSystem * | fileSystemOf (const QString &filename) |
Static Public Member Functions | |
| static bool | hasCf () |
| returns whether device has Cf mounted | |
| static bool | hasSd () |
| returns whether device has SD mounted | |
| static bool | hasMmc () |
| returns whether device has mmc mounted | |
Private Slots | |
| void | cardMessage (const QCString &msg, const QByteArray &data) |
Private Attributes | |
| QList< FileSystem > | mFileSystems |
| QCopChannel * | channel |
This class provides access to the mount information for the Linux filesystem. Each mount point is represented by the FileSystem class. To ensure this class has the most up to date size information, call the update() method. Note that this will automatically be signaled by the operating system when a disk has been mounted or unmounted.
Definition at line 29 of file storage.h.
|
|
Constructor that determines the current mount points of the filesystem. The standard parent parameters is passed on to QObject. Definition at line 93 of file storage.cpp. References cardMessage(), channel, mFileSystems, TRUE, and update(). |
|
||||||||||||
|
Definition at line 117 of file storage.cpp. References update(). Referenced by StorageInfo(). |
|
|
Gets emitted when a disk has been mounted or unmounted, such as when a CF c Referenced by update(). |
|
|
Returns the longest matching FileSystem that starts with the same prefix as filename as its mount point. Definition at line 106 of file storage.cpp. References i, mFileSystems, and QString::startsWith(). Referenced by AppLnk::linkFile(). |
|
|
|
returns whether device has Cf mounted
Definition at line 285 of file storage.cpp. References deviceTab(). Referenced by AdvancedFm::init(), and BackupAndRestore::refreshBackupLocations(). |
|
|
returns whether device has mmc mounted
Definition at line 305 of file storage.cpp. References deviceTab(). Referenced by AdvancedFm::init(), BackupAndRestore::refreshBackupLocations(), and AdvancedFm::SDButtonPushed(). |
|
|
returns whether device has SD mounted
Definition at line 295 of file storage.cpp. References deviceTab(). Referenced by AdvancedFm::init(), BackupAndRestore::refreshBackupLocations(), and AdvancedFm::SDButtonPushed(). |
|
|
Updates the mount and free space available information for each mount point. This method is automatically called when a disk is mounted or unmounted. Definition at line 130 of file storage.cpp. References QValueList< T >::append(), QValueList< T >::begin(), disksChanged(), QValueList< T >::end(), FALSE, i, isCF(), QString::left(), mFileSystems, tr, and TRUE. Referenced by Server::cardInfoString(), cardMessage(), Server::installLocationsString(), StorageInfo(), Server::systemMsg(), and FileSysInfo::updateMounts(). |
|
|
Definition at line 50 of file storage.h. Referenced by StorageInfo(). |
|
|
Definition at line 49 of file storage.h. Referenced by fileSystemOf(), fileSystems(), StorageInfo(), and update(). |
1.4.2