-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 | |||
@@ -32,57 +32,58 @@ | |||
32 | using namespace Opie::Core; | 32 | using namespace Opie::Core; |
33 | 33 | ||
34 | OStorageInfo::OStorageInfo( QObject *parent ) | 34 | OStorageInfo::OStorageInfo( QObject *parent ) |
35 | : StorageInfo( parent ) | 35 | : StorageInfo( parent ) |
36 | { | 36 | { |
37 | } | 37 | } |
38 | 38 | ||
39 | OStorageInfo::~OStorageInfo() | 39 | OStorageInfo::~OStorageInfo() |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
43 | QString OStorageInfo::cfPath()const | 43 | QString OStorageInfo::cfPath()const |
44 | { | 44 | { |
45 | QString r = ""; | 45 | QString r = ""; |
46 | 46 | ||
47 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 47 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
48 | { | 48 | { |
49 | if ( (*i)->disk().left( 8 ) == "/dev/hda" ) | 49 | if ( (*i)->disk().left( 8 ) == "/dev/hda" ) |
50 | { | 50 | { |
51 | r = (*i)->path(); | 51 | r = (*i)->path(); |
52 | break; | 52 | break; |
53 | } | 53 | } |
54 | } | 54 | } |
55 | return r; | 55 | return r; |
56 | } | 56 | } |
57 | 57 | ||
58 | QString OStorageInfo::sdPath()const | 58 | QString OStorageInfo::sdPath()const |
59 | { | 59 | { |
60 | QString r = ""; | 60 | QString r = ""; |
61 | 61 | ||
62 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 62 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
63 | { | 63 | { |
64 | if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) | 64 | if ( (*i)->disk().left( 9 ) == "/dev/mmcd" || |
65 | (*i)->disk().left( 14 ) == "/dev/mmc/part1" ) | ||
65 | { | 66 | { |
66 | r = (*i)->path(); | 67 | r = (*i)->path(); |
67 | break; | 68 | break; |
68 | } | 69 | } |
69 | } | 70 | } |
70 | return r; | 71 | return r; |
71 | } | 72 | } |
72 | 73 | ||
73 | QString OStorageInfo::mmcPath()const | 74 | QString OStorageInfo::mmcPath()const |
74 | { | 75 | { |
75 | QString r = ""; | 76 | QString r = ""; |
76 | 77 | ||
77 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 78 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
78 | { | 79 | { |
79 | if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1"|| | 80 | if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1"|| |
80 | (*i)->disk().left(11) == "/dev/mmcblk" ) | 81 | (*i)->disk().left(11) == "/dev/mmcblk" ) |
81 | { | 82 | { |
82 | r = (*i)->path(); | 83 | r = (*i)->path(); |
83 | break; | 84 | break; |
84 | } | 85 | } |
85 | } | 86 | } |
86 | return r; | 87 | return r; |
87 | } | 88 | } |
88 | 89 | ||