Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Core::OPcmciaSystem Class Reference

A container class for the linux pcmcia subsystem. More...

#include </home/clem/local/src/opie/libopie2/opiecore/linux/opcmciasystem.h>

Collaboration diagram for Opie::Core::OPcmciaSystem:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QList< OPcmciaSocketCardList
typedef QListIterator< OPcmciaSocketCardIterator

Public Member Functions

int count () const
int cardCount () const
CardIterator iterator () const
OPcmciaSocketsocket (unsigned int number)
void restart ()
void synchronize ()

Static Public Member Functions

static OPcmciaSysteminstance ()

Protected Member Functions

 OPcmciaSystem ()

Private Attributes

CardList _interfaces
int _major
Private * d

Static Private Attributes

static OPcmciaSystem_instance = 0

Detailed Description

A container class for the linux pcmcia subsystem.

This class provides access to all available pcmcia/cf cards on your device.

Author:
Michael 'Mickey' Lauer <mickey@Vanille.de>

Definition at line 54 of file opcmciasystem.h.


Member Typedef Documentation

typedef QListIterator<OPcmciaSocket> Opie::Core::OPcmciaSystem::CardIterator
 

Definition at line 60 of file opcmciasystem.h.

typedef QList<OPcmciaSocket> Opie::Core::OPcmciaSystem::CardList
 

Definition at line 56 of file opcmciasystem.h.


Constructor & Destructor Documentation

OPcmciaSystem::OPcmciaSystem  )  [protected]
 

Definition at line 58 of file opcmciasystem.cpp.

References _major, QTextStream::atEnd(), driver, QFile::exists(), IO_ReadOnly, QFile::open(), PROC_DEVICES, qDebug(), qWarning(), QTextStream::readLine(), and synchronize().

Referenced by instance().


Member Function Documentation

int OPcmciaSystem::cardCount  )  const
 

Returns:
the number of populated sockets

Definition at line 138 of file opcmciasystem.cpp.

References iterator().

Referenced by main().

int OPcmciaSystem::count  )  const
 

Returns:
the number of available sockets

Definition at line 132 of file opcmciasystem.cpp.

References _interfaces.

Referenced by main(), and PcmciaManager::mousePressEvent().

OPcmciaSystem * OPcmciaSystem::instance  )  [static]
 

Returns:
a pointer to the (one and only) OSystem instance

Definition at line 164 of file opcmciasystem.cpp.

References _instance, and OPcmciaSystem().

Referenced by main(), and ConfigDialog::writeConfiguration().

OPcmciaSystem::CardIterator OPcmciaSystem::iterator  )  const
 

Returns:
an iterator usable for iterating through all sound cards

Definition at line 171 of file opcmciasystem.cpp.

References _interfaces.

Referenced by cardCount(), PcmciaManager::cardMessage(), PcmciaManager::handleSystemChannel(), main(), PcmciaManager::mousePressEvent(), and CardsCategory::populate().

void OPcmciaSystem::restart  ) 
 

Restarts the subsystem

Definition at line 157 of file opcmciasystem.cpp.

OPcmciaSocket * OPcmciaSystem::socket unsigned int  number  ) 
 

Returns:
a pointer to the OPcmciaSocket object correspinding to socket number n, or 0, if not found
See also:
OPcmciaSocket

Definition at line 151 of file opcmciasystem.cpp.

References _interfaces.

void OPcmciaSystem::synchronize  ) 
 

For internal use only.

Rebuild the internal database

Note:
Sometimes it might be useful to call this from client code, e.g. after issuing a cardctl insert

Definition at line 90 of file opcmciasystem.cpp.

References _interfaces, _major, QTextStream::atEnd(), QFile::exists(), IO_ReadOnly, QFile::open(), qDebug(), qWarning(), and QTextStream::readLine().

Referenced by PcmciaManager::mousePressEvent(), and OPcmciaSystem().


Member Data Documentation

OPcmciaSystem * OPcmciaSystem::_instance = 0 [static, private]
 

Definition at line 56 of file opcmciasystem.cpp.

Referenced by instance().

CardList Opie::Core::OPcmciaSystem::_interfaces [private]
 

Definition at line 100 of file opcmciasystem.h.

Referenced by count(), iterator(), socket(), and synchronize().

int Opie::Core::OPcmciaSystem::_major [private]
 

Definition at line 101 of file opcmciasystem.h.

Referenced by OPcmciaSystem(), and synchronize().

Private* Opie::Core::OPcmciaSystem::d [private]
 

Definition at line 104 of file opcmciasystem.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:00:33 2005 for OPIE by  doxygen 1.4.2