author | mickeyl <mickeyl> | 2005-05-22 21:55:59 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-22 21:55:59 (UTC) |
commit | b153f9739d300b3bc608ea76968b818818fce1d0 (patch) (side-by-side diff) | |
tree | 8b05eedb78f5eab6b5d49c68248da8425f09410b /libopie2/opiecore/linux/opcmciasystem.h | |
parent | ffe68fa0d9b4eb89fe1549b5734ca6ab23c8ab62 (diff) | |
download | opie-b153f9739d300b3bc608ea76968b818818fce1d0.zip opie-b153f9739d300b3bc608ea76968b818818fce1d0.tar.gz opie-b153f9739d300b3bc608ea76968b818818fce1d0.tar.bz2 |
start talking directly to pcmcia card services
Diffstat (limited to 'libopie2/opiecore/linux/opcmciasystem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/linux/opcmciasystem.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/libopie2/opiecore/linux/opcmciasystem.h b/libopie2/opiecore/linux/opcmciasystem.h index 630a434..ef34964 100644 --- a/libopie2/opiecore/linux/opcmciasystem.h +++ b/libopie2/opiecore/linux/opcmciasystem.h @@ -30,6 +30,8 @@ #ifndef OPCMCIASYSTEM_H #define OPCMCIASYSTEM_H +#include "linux_pcmcia.h" + #include <qobject.h> #include <qlist.h> @@ -92,6 +94,9 @@ class OPcmciaSystem : public QObject private: static OPcmciaSystem* _instance; CardList _interfaces; + int _major; + + private: class Private; Private *d; }; @@ -108,9 +113,9 @@ class OPcmciaSocket : public QObject public: /** * Constructor. Normally you don't create @ref OPcmciaSocket objects yourself, - * but access them via @ref OPcmciaSystem::card(). + * but access them via @ref OPcmciaSystem::socket(). */ - OPcmciaSocket( int socket, QObject* parent, const char* name ); + OPcmciaSocket( int major, int socket, QObject* parent, const char* name ); /** * Destructor. */ @@ -160,13 +165,30 @@ class OPcmciaSocket : public QObject * @note: This operation needs root privileges */ bool reset(); + /** + * @returns a list of product IDs + */ + const QStringList& productIdentity() const; + /** + * @returns the manufacturer ID pair + */ +#if 0 + const QPair& manufacturerIdentity() const; +#endif - protected: + private: + QStringList _productId; private: void init(); + void buildInformation(); + void cleanup(); bool command( const QString& cmd ); + bool getTuple( cisdata_t tuple ); + int _major; int _socket; + int _fd; + ds_ioctl_arg_t _ioctlarg; private: class Private; |