author | llornkcor <llornkcor> | 2005-03-20 05:33:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-03-20 05:33:24 (UTC) |
commit | d5451e7abbfa3c3d14202311abccac8781736dae (patch) (side-by-side diff) | |
tree | 15f4a9c23c05edec52af01283fbfb1b9faac34b0 | |
parent | 76ec755d83f3143373337de84e3740915adfdc02 (diff) | |
download | opie-d5451e7abbfa3c3d14202311abccac8781736dae.zip opie-d5451e7abbfa3c3d14202311abccac8781736dae.tar.gz opie-d5451e7abbfa3c3d14202311abccac8781736dae.tar.bz2 |
add sd path for familiar
-rw-r--r-- | libopie2/opiecore/ostorageinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opiecore/ostorageinfo.cpp b/libopie2/opiecore/ostorageinfo.cpp index 6c7c138..6a3646e 100644 --- a/libopie2/opiecore/ostorageinfo.cpp +++ b/libopie2/opiecore/ostorageinfo.cpp @@ -16,73 +16,74 @@ : .. .:, . . . without even the implied warranty of =_ + =;=|` MERCHANTABILITY or FITNESS FOR A _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU ..}^=.= = ; Library General Public License for more ++= -. .` .: details. : = ...= . :.=- -. .:....=;==+<; You should have received a copy of the GNU -_. . . )=. = Library General Public License along with -- :-=` 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. */ #include <opie2/ostorageinfo.h> using namespace Opie::Core; OStorageInfo::OStorageInfo( QObject *parent ) : StorageInfo( parent ) { } 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; } QString OStorageInfo::sdPath()const { QString r = ""; for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) { - if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) + if ( (*i)->disk().left( 9 ) == "/dev/mmcd" || + (*i)->disk().left( 14 ) == "/dev/mmc/part1" ) { r = (*i)->path(); break; } } return r; } QString OStorageInfo::mmcPath()const { QString r = ""; for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) { if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1"|| (*i)->disk().left(11) == "/dev/mmcblk" ) { r = (*i)->path(); break; } } return r; } |