Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FileSystem Class Reference

The FileSystem class describes a single mount point. More...

#include </home/clem/local/src/opie/library/storage.h>

Collaboration diagram for FileSystem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

const QStringdisk () const
const QStringpath () const
const QStringname () const
const QStringoptions () 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

Detailed Description

The FileSystem class describes a single mount point.

This class simply returns information about a mount point, including file system name, mount point, human readable name, size information and mount options information.

See also:
StorageInfo

Definition at line 53 of file storage.h.


Constructor & Destructor Documentation

FileSystem::FileSystem const QString disk,
const QString path,
const QString humanname,
bool  rem,
const QString opts
[private]
 

Definition at line 327 of file storage.cpp.

References update().


Member Function Documentation

long FileSystem::availBlocks  )  const [inline]
 

Returns the number of available blocks on the file system

Definition at line 62 of file storage.h.

References availBlks.

Referenced by MountInfo::updateData().

long FileSystem::blockSize  )  const [inline]
 

Returns the size of each block on the file system.

Definition at line 60 of file storage.h.

References blkSize.

Referenced by MountInfo::updateData().

const QString & FileSystem::disk  )  const [inline]
 

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().

bool FileSystem::isRemovable  )  const [inline]
 

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().

bool FileSystem::isWritable  )  const [inline]
 

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.

const QString & FileSystem::name  )  const [inline]
 

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().

const QString & FileSystem::options  )  const [inline]
 

Returns the mount options

Definition at line 59 of file storage.h.

References opts.

const QString & FileSystem::path  )  const [inline]
 

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().

long FileSystem::totalBlocks  )  const [inline]
 

Returns the total number of blocks on the file system

Definition at line 61 of file storage.h.

References totalBlks.

Referenced by MountInfo::updateData().

void FileSystem::update  )  [private]
 

Definition at line 333 of file storage.cpp.

References availBlks, blkSize, fspath, QString::latin1(), and totalBlks.

Referenced by FileSystem().


Friends And Related Function Documentation

friend class StorageInfo [friend]
 

Definition at line 67 of file storage.h.


Member Data Documentation

long FileSystem::availBlks [private]
 

Definition at line 76 of file storage.h.

Referenced by availBlocks(), and update().

long FileSystem::blkSize [private]
 

Definition at line 74 of file storage.h.

Referenced by blockSize(), and update().

QString FileSystem::fsdisk [private]
 

Definition at line 71 of file storage.h.

Referenced by disk().

QString FileSystem::fspath [private]
 

Definition at line 72 of file storage.h.

Referenced by path(), and update().

QString FileSystem::humanname [private]
 

Definition at line 73 of file storage.h.

Referenced by name().

QString FileSystem::opts [private]
 

Definition at line 78 of file storage.h.

Referenced by isWritable(), and options().

bool FileSystem::removable [private]
 

Definition at line 77 of file storage.h.

Referenced by isRemovable().

long FileSystem::totalBlks [private]
 

Definition at line 75 of file storage.h.

Referenced by totalBlocks(), and update().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:32:43 2005 for OPIE by  doxygen 1.4.2