author | mickeyl <mickeyl> | 2005-05-21 20:23:05 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-21 20:23:05 (UTC) |
commit | db6b46788db3653812f07c3018abc5bfaaa821c3 (patch) (unidiff) | |
tree | e159683e96eed09bbc9a886c39c6fd7776fe5f42 | |
parent | afb929e7fd04ecdfec2799a5cf9cf298d1af77c6 (diff) | |
download | opie-db6b46788db3653812f07c3018abc5bfaaa821c3.zip opie-db6b46788db3653812f07c3018abc5bfaaa821c3.tar.gz opie-db6b46788db3653812f07c3018abc5bfaaa821c3.tar.bz2 |
add more methods to OPcmciaSocket
-rw-r--r-- | libopie2/opiecore/linux/opcmciasystem.cpp | 15 | ||||
-rw-r--r-- | libopie2/opiecore/linux/opcmciasystem.h | 9 |
2 files changed, 23 insertions, 1 deletions
diff --git a/libopie2/opiecore/linux/opcmciasystem.cpp b/libopie2/opiecore/linux/opcmciasystem.cpp index c4b5316..c310b85 100644 --- a/libopie2/opiecore/linux/opcmciasystem.cpp +++ b/libopie2/opiecore/linux/opcmciasystem.cpp | |||
@@ -175,4 +175,10 @@ QString OPcmciaSocket::identity() const | |||
175 | 175 | ||
176 | 176 | ||
177 | bool OPcmciaSocket::isUnsupported() const | ||
178 | { | ||
179 | return ( strcmp( name(), "unsupported card" ) == 0 ); | ||
180 | } | ||
181 | |||
182 | |||
177 | bool OPcmciaSocket::isEmpty() const | 183 | bool OPcmciaSocket::isEmpty() const |
178 | { | 184 | { |
@@ -183,4 +189,6 @@ bool OPcmciaSocket::isEmpty() const | |||
183 | bool OPcmciaSocket::isSuspended() const | 189 | bool OPcmciaSocket::isSuspended() const |
184 | { | 190 | { |
191 | //FIXME | ||
192 | return false; | ||
185 | } | 193 | } |
186 | 194 | ||
@@ -202,4 +210,9 @@ bool OPcmciaSocket::suspend() | |||
202 | bool OPcmciaSocket::resume() | 210 | bool OPcmciaSocket::resume() |
203 | { | 211 | { |
204 | return command( "resume "); | 212 | return command( "resume"); |
213 | } | ||
214 | |||
215 | bool OPcmciaSocket::reset() | ||
216 | { | ||
217 | return command( "reset"); | ||
205 | } | 218 | } |
diff --git a/libopie2/opiecore/linux/opcmciasystem.h b/libopie2/opiecore/linux/opcmciasystem.h index 4b445aa..630a434 100644 --- a/libopie2/opiecore/linux/opcmciasystem.h +++ b/libopie2/opiecore/linux/opcmciasystem.h | |||
@@ -125,4 +125,8 @@ class OPcmciaSocket : public QObject | |||
125 | QString identity() const; | 125 | QString identity() const; |
126 | /** | 126 | /** |
127 | * @returns true, if the card is unsupported by the cardmgr | ||
128 | */ | ||
129 | bool isUnsupported() const; | ||
130 | /** | ||
127 | * @returns true, if the socket is empty | 131 | * @returns true, if the socket is empty |
128 | */ | 132 | */ |
@@ -152,4 +156,9 @@ class OPcmciaSocket : public QObject | |||
152 | */ | 156 | */ |
153 | bool resume(); | 157 | bool resume(); |
158 | /** | ||
159 | * Reset card. @returns true, if operation succeeded | ||
160 | * @note: This operation needs root privileges | ||
161 | */ | ||
162 | bool reset(); | ||
154 | 163 | ||
155 | protected: | 164 | protected: |