Diffstat (limited to 'libopie2/opiecore/ostorageinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/ostorageinfo.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libopie2/opiecore/ostorageinfo.cpp b/libopie2/opiecore/ostorageinfo.cpp index cf9dc6c..6712282 100644 --- a/libopie2/opiecore/ostorageinfo.cpp +++ b/libopie2/opiecore/ostorageinfo.cpp | |||
@@ -29,65 +29,63 @@ | |||
29 | 29 | ||
30 | #include <opie2/ostorage.h> | 30 | #include <opie2/ostorage.h> |
31 | 31 | ||
32 | OStorageInfo::OStorageInfo( QObject *parent ) | 32 | OStorageInfo::OStorageInfo( QObject *parent ) |
33 | : StorageInfo( parent ) | 33 | : StorageInfo( parent ) |
34 | { | 34 | { |
35 | } | 35 | } |
36 | 36 | ||
37 | OStorageInfo::~OStorageInfo() | 37 | OStorageInfo::~OStorageInfo() |
38 | { | 38 | { |
39 | } | 39 | } |
40 | 40 | ||
41 | QString OStorageInfo::getCfPath() | 41 | QString OStorageInfo::cfPath()const |
42 | { | 42 | { |
43 | QString r = ""; | 43 | QString r = ""; |
44 | 44 | ||
45 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 45 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
46 | { | 46 | { |
47 | if ( (*i)->disk().left( 8 ) == "/dev/hda" ) | 47 | if ( (*i)->disk().left( 8 ) == "/dev/hda" ) |
48 | { | 48 | { |
49 | r = (*i)->path(); | 49 | r = (*i)->path(); |
50 | break; | 50 | break; |
51 | } | 51 | } |
52 | } | 52 | } |
53 | return r; | 53 | return r; |
54 | } | 54 | } |
55 | 55 | ||
56 | /*! | 56 | /*! |
57 | * @fn QString StorageInfo::getSdPath() | ||
58 | * @brief returns the Mount-Path of Sd Card | 57 | * @brief returns the Mount-Path of Sd Card |
59 | * | 58 | * |
60 | */ | 59 | */ |
61 | QString OStorageInfo::getSdPath() | 60 | QString OStorageInfo::sdPath()const |
62 | { | 61 | { |
63 | QString r = ""; | 62 | QString r = ""; |
64 | 63 | ||
65 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 64 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
66 | { | 65 | { |
67 | if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) | 66 | if ( (*i)->disk().left( 9 ) == "/dev/mmcd" ) |
68 | { | 67 | { |
69 | r = (*i)->path(); | 68 | r = (*i)->path(); |
70 | break; | 69 | break; |
71 | } | 70 | } |
72 | } | 71 | } |
73 | return r; | 72 | return r; |
74 | } | 73 | } |
75 | 74 | ||
76 | /*! | 75 | /*! |
77 | * @fn QString StorageInfo::getMmcPath() | ||
78 | * @brief returns the Mount-Path of Mmc Card | 76 | * @brief returns the Mount-Path of Mmc Card |
79 | * | 77 | * |
80 | */ | 78 | */ |
81 | QString OStorageInfo::getMmcPath() | 79 | QString OStorageInfo::mmcPath()const |
82 | { | 80 | { |
83 | QString r = ""; | 81 | QString r = ""; |
84 | 82 | ||
85 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) | 83 | for (QListIterator<FileSystem> i( fileSystems() ); i.current(); ++i) |
86 | { | 84 | { |
87 | if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1" ) | 85 | if ( (*i)->disk().left( 14 ) == "/dev/mmc/part1" ) |
88 | { | 86 | { |
89 | r = (*i)->path(); | 87 | r = (*i)->path(); |
90 | break; | 88 | break; |
91 | } | 89 | } |
92 | } | 90 | } |
93 | return r; | 91 | return r; |