author | mickeyl <mickeyl> | 2004-01-13 19:19:34 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-13 19:19:34 (UTC) |
commit | 399cf645e63e53043975fa2b26768d8db6d83ee4 (patch) (side-by-side diff) | |
tree | d6138ca3bab8edc6b8fd02b134ae2d8e395cee33 | |
parent | 061ccf5b9d384b1f24d203e96f1f04ccf1dcf133 (diff) | |
download | opie-399cf645e63e53043975fa2b26768d8db6d83ee4.zip opie-399cf645e63e53043975fa2b26768d8db6d83ee4.tar.gz opie-399cf645e63e53043975fa2b26768d8db6d83ee4.tar.bz2 |
comments should go into the header file
-rw-r--r-- | libopie2/opiecore/ostorageinfo.cpp | 11 | ||||
-rw-r--r-- | libopie2/opiecore/ostorageinfo.h | 21 |
2 files changed, 19 insertions, 13 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 @@ -1,20 +1,20 @@ /* This file is part of the Opie Project Copyright (C) 2004 Andreas 'ar' Richter <ar@oszine.de> - =. + =. .=l. .>+-= _;:, .> :=|. This program is free software; you can .> <`_, > . <= redistribute it and/or modify it under :`=1 )Y*s>-.-- : the terms of the GNU Library General Public .="- .-=="i, .._ License as published by the Free Software - . .-<_> .<> Foundation; either version 2 of the License, ._= =} : or (at your option) any later version. .%`+i> _;_. .i_,=:_. -<s. This program is distributed in the hope that + . -:. = it will be useful, but WITHOUT ANY WARRANTY; : .. .:, . . . without even the implied warranty of =_ + =;=|` MERCHANTABILITY or FITNESS FOR A _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU ..}^=.= = ; Library General Public License for more ++= -. .` .: details. @@ -40,53 +40,46 @@ OStorageInfo::~OStorageInfo() QString OStorageInfo::cfPath()const { QString r = ""; 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 @@ -24,26 +24,39 @@ -- :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef OSTORAGE_H #define OSTORAGE_H #include <qpe/storage.h> class OStorageInfo : public StorageInfo { Q_OBJECT public: -public: + OStorageInfo( QObject *parent=0 ); ~OStorageInfo(); - QString cfPath()const; - QString sdPath()const; - QString mmcPath()const; + /** + * @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 + |