summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/linux/opcmciasystem.cpp15
-rw-r--r--libopie2/opiecore/linux/opcmciasystem.h9
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
@@ -176,2 +176,8 @@ QString OPcmciaSocket::identity() const
+bool OPcmciaSocket::isUnsupported() const
+{
+ return ( strcmp( name(), "unsupported card" ) == 0 );
+}
+
+
bool OPcmciaSocket::isEmpty() const
@@ -184,2 +190,4 @@ bool OPcmciaSocket::isSuspended() const
{
+ //FIXME
+ return false;
}
@@ -203,3 +211,8 @@ bool OPcmciaSocket::resume()
{
- return command( "resume ");
+ return command( "resume");
+}
+
+bool OPcmciaSocket::reset()
+{
+ return command( "reset");
}
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
@@ -126,2 +126,6 @@ class OPcmciaSocket : public QObject
/**
+ * @returns true, if the card is unsupported by the cardmgr
+ */
+ bool isUnsupported() const;
+ /**
* @returns true, if the socket is empty
@@ -153,2 +157,7 @@ class OPcmciaSocket : public QObject
bool resume();
+ /**
+ * Reset card. @returns true, if operation succeeded
+ * @note: This operation needs root privileges
+ */
+ bool reset();