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

OpieTooth::HciConfWrapper Class Reference

#include </home/clem/local/src/opie/noncore/net/opietooth/manager/hciconfwrapper.h>

Collaboration diagram for OpieTooth::HciConfWrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HciConfWrapper (const QString &fileName)
 ~HciConfWrapper ()
void load ()
void save ()
void setPinHelper (const QString &app)
void setName (const QString &name)
void setIscan (bool enable)
void setPscan (bool enable)
void setAuth (bool enable)
void setEncrypt (bool enable)

Private Member Functions

void setValue (const QString &entry, const QString &value)

Private Attributes

QString m_fileName
QStringList m_file

Constructor & Destructor Documentation

OpieTooth::HciConfWrapper::HciConfWrapper const QString fileName  ) 
 

Definition at line 13 of file hciconfwrapper.cpp.

References m_fileName.

OpieTooth::HciConfWrapper::~HciConfWrapper  ) 
 

Definition at line 17 of file hciconfwrapper.cpp.


Member Function Documentation

void OpieTooth::HciConfWrapper::load  ) 
 

This loads the config file and stores it inside the m_file

readAll() into a QByteArray QStringList::split('
', array ) would this be faster? -zecke

Definition at line 103 of file hciconfwrapper.cpp.

References QValueList< T >::append(), QTextStream::atEnd(), QValueList< T >::clear(), IO_ReadOnly, m_file, m_fileName, odebug, oendl, QFile::open(), owarn, QTextStream::readLine(), and stream.

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::save  ) 
 

Definition at line 124 of file hciconfwrapper.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), Opie::Core::endl(), IO_WriteOnly, QValueList< T >::isEmpty(), QString::latin1(), m_file, m_fileName, oendl, QFile::open(), owarn, and stream.

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setAuth bool  enable  ) 
 

Definition at line 49 of file hciconfwrapper.cpp.

References setValue().

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setEncrypt bool  enable  ) 
 

Definition at line 59 of file hciconfwrapper.cpp.

References setValue().

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setIscan bool  enable  ) 
 

Definition at line 30 of file hciconfwrapper.cpp.

References setValue().

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setName const QString name  ) 
 

Definition at line 25 of file hciconfwrapper.cpp.

References odebug, oendl, and setValue().

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setPinHelper const QString app  ) 
 

Definition at line 21 of file hciconfwrapper.cpp.

References setValue().

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setPscan bool  enable  ) 
 

Definition at line 39 of file hciconfwrapper.cpp.

References setValue().

Referenced by OpieTooth::BlueBase::writeToHciConfig().

void OpieTooth::HciConfWrapper::setValue const QString entry,
const QString value
[private]
 

Definition at line 69 of file hciconfwrapper.cpp.

References QValueList< T >::begin(), QString::contains(), QValueList< T >::end(), QValueList< T >::insert(), QValueList< T >::isEmpty(), m_file, odebug, oendl, QValueList< T >::remove(), QString::replace(), QString::simplifyWhiteSpace(), QString::startsWith(), and str.

Referenced by setAuth(), setEncrypt(), setIscan(), setName(), setPinHelper(), and setPscan().


Member Data Documentation

QStringList OpieTooth::HciConfWrapper::m_file [private]
 

Definition at line 29 of file hciconfwrapper.h.

Referenced by load(), save(), and setValue().

QString OpieTooth::HciConfWrapper::m_fileName [private]
 

Definition at line 28 of file hciconfwrapper.h.

Referenced by HciConfWrapper(), load(), and save().


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