-rw-r--r-- | libopie2/opiecore/ostorageinfo.cpp | 9 | ||||
-rw-r--r-- | libopie2/opiecore/ostorageinfo.h | 15 |
2 files changed, 15 insertions, 9 deletions
diff --git a/libopie2/opiecore/ostorageinfo.cpp b/libopie2/opiecore/ostorageinfo.cpp index a45fcb6..aa8d2fc 100644 --- a/libopie2/opiecore/ostorageinfo.cpp +++ b/libopie2/opiecore/ostorageinfo.cpp @@ -44,49 +44,42 @@ QString OStorageInfo::cfPath()const for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) { if ( (*i)->disk().left( 8 ) == "/dev/hda" ) { r = (*i)->path(); break; } } return r; } -/*! -* @brief returns the Mount-Path of Sd Card -* -*/ QString OStorageInfo::sdPath()const { QString r = ""; for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) { if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) { r = (*i)->path(); break; } } return r; } -/*! -* @brief returns the Mount-Path of Mmc Card -* -*/ QString OStorageInfo::mmcPath()const { QString r = ""; for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) { if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1" ) { r = (*i)->path(); break; } } return r; } + diff --git a/libopie2/opiecore/ostorageinfo.h b/libopie2/opiecore/ostorageinfo.h index 9b61a2e..740fa85 100644 --- a/libopie2/opiecore/ostorageinfo.h +++ b/libopie2/opiecore/ostorageinfo.h @@ -28,22 +28,35 @@ */ #ifndef OSTORAGE_H #define OSTORAGE_H #include <qpe/storage.h> class OStorageInfo : public StorageInfo { Q_OBJECT public: -public: + OStorageInfo( QObject *parent=0 ); ~OStorageInfo(); + /** + * @returns the mount path of the CF (Compact Flash) card + * + **/ QString cfPath()const; + /** + * @returns the mount path of the SD (Secure Digital) card + * + **/ QString sdPath()const; + /** + * @returns the mount path of the MMC (MultiMedia) card + * + **/ QString mmcPath()const; }; #endif // OSTORAGE_H + |