author | ar <ar> | 2004-01-07 20:22:49 (UTC) |
---|---|---|
committer | ar <ar> | 2004-01-07 20:22:49 (UTC) |
commit | dd56d03c7a07ad1cf4f715ba22cbbf6b3d8392e8 (patch) (side-by-side diff) | |
tree | 92c625add3c9d24e65c1550bc5449420a85342ce /library/storage.h | |
parent | 24a62e8789083f446138aebfa11409b73886aa88 (diff) | |
download | opie-dd56d03c7a07ad1cf4f715ba22cbbf6b3d8392e8.zip opie-dd56d03c7a07ad1cf4f715ba22cbbf6b3d8392e8.tar.gz opie-dd56d03c7a07ad1cf4f715ba22cbbf6b3d8392e8.tar.bz2 |
new functions getCfPath, getSdPath, getMmcPath returns mountpoints
-rw-r--r-- | library/storage.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/library/storage.h b/library/storage.h index 0a0698f..35a1109 100644 --- a/library/storage.h +++ b/library/storage.h @@ -19,37 +19,41 @@ **********************************************************************/ #ifndef __storage_h__ #define __storage_h__ #include <qobject.h> #include <qlist.h> class FileSystem; class QCopChannel; class StorageInfo : public QObject { Q_OBJECT public: StorageInfo( QObject *parent=0 ); - const QList<FileSystem> &fileSystems() const { return mFileSystems; } - const FileSystem *fileSystemOf( const QString &filename ); - static bool hasCf(); - static bool hasSd(); - static bool hasMmc(); + const QList<FileSystem> &fileSystems() const { return mFileSystems; } + const FileSystem *fileSystemOf( const QString &filename ); + static bool hasCf(); + static bool hasSd(); + static bool hasMmc(); + + QString getCfPath(); + QString getSdPath(); + QString getMmcPath(); signals: void disksChanged(); public slots: void update(); private slots: void cardMessage( const QCString& msg, const QByteArray& data ); private: QList<FileSystem> mFileSystems; QCopChannel *channel; }; class FileSystem { public: |