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

WLANImp Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings/wlan/wlanimp.h>

Collaboration diagram for WLANImp:

Collaboration graph
[legend]
List of all members.

Public Slots

void rescanNeighbourhood ()
void selectNetwork (QListViewItem *)

Public Member Functions

 WLANImp (QWidget *parent=0, const char *name=0, Interface *i=0, bool modal=FALSE, WFlags fl=0)
void setProfile (const QString &profile)
 WLANImp (QWidget *parent=0, const char *name=0, Interface *i=0, bool modal=FALSE, WFlags fl=0)
 ~WLANImp ()
void setProfile (const QString &profile)

Protected Member Functions

void accept ()
void accept ()

Private Slots

void typeChanged (int)

Private Member Functions

void parseSettingFile ()
void changeAndSaveSettingFile ()
void parseOpts ()
void writeOpts ()
void parseKeyStr (QString keystr)
QString formatKey (QString input)
void handlePacket (Opie::Net::OPacket *)
void displayFoundNetwork (const QString &mode, int channel, const QString &ssid, const Opie::Net::OMacAddress &mac)

Private Attributes

InterfaceSetupImpinterfaceSetup
QStringList settingsFileText
QString currentProfile
InterfaceSetupImpinterfaceSetup
Interfacesinterfaces
Interfaceinterface

Constructor & Destructor Documentation

WLANImp::WLANImp QWidget *  parent = 0,
const char *  name = 0,
Interface i = 0,
bool  modal = FALSE,
WFlags  fl = 0
 

Constructor, read in the wireless.opts file for parsing later.

Definition at line 29 of file wlanimp.cpp.

References QTextStream::eof(), interfaceSetup, IO_ReadOnly, odebug, oendl, QFile::open(), parseSettingFile(), QTextStream::readLine(), settingsFileText, QStringList::split(), stream, typeChanged(), and WIRELESS_OPTS.

WLANImp::WLANImp QWidget *  parent = 0,
const char *  name = 0,
Interface i = 0,
bool  modal = FALSE,
WFlags  fl = 0
 

WLANImp::~WLANImp  ) 
 

Definition at line 68 of file wlanimp2.cpp.


Member Function Documentation

void WLANImp::accept  )  [protected]
 

void WLANImp::accept  )  [protected]
 

Check to see if the current config is valid Save wireless.opts, save interfaces

Definition at line 213 of file wlanimp.cpp.

References changeAndSaveSettingFile(), OProcess::DontCare, interfaceSetup, OProcess::NoCommunication, oendl, owarn, InterfaceSetupImp::saveChanges(), and Opie::Core::OProcess::start().

void WLANImp::changeAndSaveSettingFile  )  [private]
 

Saves settings to the wireless.opts file using the current profile

Definition at line 143 of file wlanimp.cpp.

References QString::at(), QValueList< T >::begin(), QString::contains(), currentProfile, QValueList< T >::end(), IO_ReadWrite, QString::left(), QString::length(), odebug, oendl, QFile::open(), output, QFile::remove(), settingsFileText, stream, and WIRELESS_OPTS.

Referenced by accept().

void WLANImp::displayFoundNetwork const QString mode,
int  channel,
const QString ssid,
const Opie::Net::OMacAddress mac
[private]
 

QString WLANImp::formatKey QString  input  )  [private]
 

Definition at line 283 of file wlanimp2.cpp.

References i, QString::insert(), len, and QString::length().

Referenced by writeOpts().

void WLANImp::handlePacket Opie::Net::OPacket *   )  [private]
 

Referenced by rescanNeighbourhood().

void WLANImp::parseKeyStr QString  keystr  )  [private]
 

Definition at line 172 of file wlanimp2.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QString::isNull(), QString::null, and QStringList::split().

Referenced by parseOpts().

void WLANImp::parseOpts  )  [private]
 

Definition at line 80 of file wlanimp2.cpp.

References error(), Interfaces::getInterfaceOption(), i, interfaces, Interfaces::isInterfaceSet(), QString::isNull(), parseKeyStr(), and QString::replace().

void WLANImp::parseSettingFile  )  [private]
 

Parses the settings file that was read in and gets any setting from it.

Definition at line 68 of file wlanimp.cpp.

References QString::at(), QValueList< T >::begin(), QString::contains(), currentProfile, QValueList< T >::end(), QString::find(), QString::left(), QString::length(), QString::mid(), QString::right(), settingsFileText, and QString::toInt().

Referenced by setProfile(), and WLANImp().

void WLANImp::rescanNeighbourhood  )  [slot]
 

Definition at line 441 of file wlanimp2.cpp.

References assert, QTextStream::atEnd(), Interface::getInterfaceName(), handlePacket(), i, Opie::Net::ONetwork::instance(), interface, IO_ReadOnly, QString::isEmpty(), lab, name, odebug, oendl, QFile::open(), owarn, p, and qApp.

void WLANImp::selectNetwork QListViewItem *   )  [slot]
 

Definition at line 612 of file wlanimp2.cpp.

References col_chn, col_mac, and col_ssid.

void WLANImp::setProfile const QString profile  ) 
 

void WLANImp::setProfile const QString profile  ) 
 

Change the profile for both wireless settings and network settings.

Definition at line 60 of file wlanimp.cpp.

References interfaceSetup, parseSettingFile(), and InterfaceSetupImp::setProfile().

Referenced by WLANModule::configure().

void WLANImp::typeChanged int   )  [private, slot]
 

Definition at line 52 of file wlanimp.cpp.

Referenced by WLANImp().

void WLANImp::writeOpts  )  [private]
 

Definition at line 301 of file wlanimp2.cpp.

References error(), formatKey(), Interfaces::getInterfaceName(), Interfaces::getInterfaceOption(), interfaces, interfaceSetup, Interfaces::isInterfaceSet(), QStringList::join(), odebug, oendl, Interfaces::removeInterfaceOption(), InterfaceSetupImp::saveChanges(), Interfaces::setInterfaceOption(), and warning().


Member Data Documentation

QString WLANImp::currentProfile [private]
 

Definition at line 49 of file wlanimp2.h.

Referenced by changeAndSaveSettingFile(), and parseSettingFile().

Interface* WLANImp::interface [private]
 

Definition at line 47 of file wlanimp2.h.

Referenced by rescanNeighbourhood().

Interfaces* WLANImp::interfaces [private]
 

Definition at line 46 of file wlanimp2.h.

Referenced by parseOpts(), and writeOpts().

InterfaceSetupImp* WLANImp::interfaceSetup [private]
 

Definition at line 45 of file wlanimp2.h.

InterfaceSetupImp* WLANImp::interfaceSetup [private]
 

Definition at line 28 of file wlanimp.h.

Referenced by accept(), setProfile(), WLANImp(), and writeOpts().

QStringList WLANImp::settingsFileText [private]
 

Definition at line 29 of file wlanimp.h.

Referenced by changeAndSaveSettingFile(), parseSettingFile(), and WLANImp().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:55:52 2005 for OPIE by  doxygen 1.4.2