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

Qsmb Class Reference

#include </home/clem/local/src/opie/noncore/net/opie-smb/qsmb.h>

Inheritance diagram for Qsmb:

Inheritance graph
[legend]
Collaboration diagram for Qsmb:

Collaboration graph
[legend]
List of all members.

Public Slots

void clear ()
void scanClicked ()
void hostSelected (int)
void DoItClicked ()
void umountIt ()
bool runCommand (const QStringList &)

Public Member Functions

 Qsmb (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~Qsmb ()
void scan ()
void DoIt ()

Static Public Member Functions

static QString appName ()

Public Attributes

QString out

Private Slots

void TextViewClicked (QListViewItem *)

Private Member Functions

bool isMounted (const QString &)
QString getMount (const QString &)

Private Attributes

QListViewItem * top_element
QComboBox * hosts
pthread_t tpid
bool scanning

Constructor & Destructor Documentation

Qsmb::Qsmb QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 67 of file qsmb.cpp.

References FormQPESMBBase::BtnClear, FormQPESMBBase::BtnScan, FormQPESMBBase::CBHost, clear(), FormQPESMBBase::DoItBtn, DoItClicked(), hostSelected(), FormQPESMBBase::ListViewScan, FormQPESMBBase::mountpt, NULL, FormQPESMBBase::password, scanClicked(), scanning, TextViewClicked(), FormQPESMBBase::TextViewOutput, top_element, umountIt(), and FormQPESMBBase::username.

Qsmb::~Qsmb  ) 
 

Definition at line 94 of file qsmb.cpp.


Member Function Documentation

static QString Qsmb::appName  )  [inline, static]
 

Definition at line 48 of file qsmb.h.

References QString::fromLatin1().

void Qsmb::clear  )  [slot]
 

Definition at line 98 of file qsmb.cpp.

References FormQPESMBBase::CBHost, FormQPESMBBase::ListViewScan, NULL, scanning, FormQPESMBBase::TextViewOutput, and top_element.

Referenced by Qsmb(), and scan().

void Qsmb::DoIt  ) 
 

Definition at line 301 of file qsmb.cpp.

References FormQPESMBBase::CBHost, QValueList< T >::clear(), QFile::close(), QDir::currentDirPath(), IO_WriteOnly, isMounted(), QStringList::join(), FormQPESMBBase::ListViewScan, FormQPESMBBase::LScan, FormQPESMBBase::mountpt, FormQPESMBBase::onbootBtn, QFile::open(), FormQPESMBBase::password, qApp, qWarning(), runCommand(), scanning, QString::stripWhiteSpace(), text, FormQPESMBBase::TextViewOutput, and FormQPESMBBase::username.

Referenced by runitm().

void Qsmb::DoItClicked  )  [slot]
 

Definition at line 113 of file qsmb.cpp.

References FormQPESMBBase::ListViewScan, NULL, runitm(), scanning, tpid, tr, and warning().

Referenced by Qsmb().

QString Qsmb::getMount const QString  )  [private]
 

Definition at line 454 of file qsmb.cpp.

References QString::find().

Referenced by hostSelected().

void Qsmb::hostSelected int   )  [slot]
 

Definition at line 191 of file qsmb.cpp.

References QTextStream::atEnd(), FormQPESMBBase::CBHost, QString::find(), getMount(), IO_ReadOnly, FormQPESMBBase::ListViewScan, FormQPESMBBase::LScan, out, FormQPESMBBase::password, QTextStream::readLine(), runCommand(), s, scanning, QStringList::split(), QString::stripWhiteSpace(), text, FormQPESMBBase::TextViewOutput, and FormQPESMBBase::username.

Referenced by Qsmb().

bool Qsmb::isMounted const QString  )  [private]
 

Definition at line 436 of file qsmb.cpp.

References QString::find().

Referenced by DoIt(), and umountIt().

bool Qsmb::runCommand const QStringList  )  [slot]
 

Definition at line 417 of file qsmb.cpp.

References Process::exec(), QString::find(), QStringList::join(), out, qWarning(), and FormQPESMBBase::TextViewOutput.

Referenced by DoIt(), hostSelected(), scan(), and umountIt().

void Qsmb::scan  ) 
 

Definition at line 138 of file qsmb.cpp.

References QTextStream::atEnd(), FormQPESMBBase::CBHost, clear(), QFile::close(), IO_ReadOnly, IO_WriteOnly, QString::left(), FormQPESMBBase::LScan, match(), QFile::open(), out, output, qApp, qWarning(), QTextStream::readLine(), runCommand(), s, scanning, QStringList::split(), and FormQPESMBBase::TextViewOutput.

Referenced by runit().

void Qsmb::scanClicked  )  [slot]
 

Definition at line 107 of file qsmb.cpp.

References NULL, runit(), scanning, and tpid.

Referenced by Qsmb().

void Qsmb::TextViewClicked QListViewItem *   )  [private, slot]
 

Definition at line 472 of file qsmb.cpp.

References QString::isEmpty(), FormQPESMBBase::mountpt, NULL, qWarning(), and text.

Referenced by Qsmb().

void Qsmb::umountIt  )  [slot]
 

Definition at line 383 of file qsmb.cpp.

References QDir::currentDirPath(), isMounted(), QString::left(), FormQPESMBBase::ListViewScan, FormQPESMBBase::mountpt, qWarning(), runCommand(), QString::stripWhiteSpace(), and FormQPESMBBase::TextViewOutput.

Referenced by Qsmb().


Member Data Documentation

QComboBox* Qsmb::hosts [private]
 

Definition at line 56 of file qsmb.h.

QString Qsmb::out
 

Definition at line 68 of file qsmb.h.

Referenced by hostSelected(), runCommand(), and scan().

bool Qsmb::scanning [private]
 

Definition at line 58 of file qsmb.h.

Referenced by clear(), DoIt(), DoItClicked(), hostSelected(), Qsmb(), scan(), and scanClicked().

QListViewItem* Qsmb::top_element [private]
 

Definition at line 55 of file qsmb.h.

Referenced by clear(), and Qsmb().

pthread_t Qsmb::tpid [private]
 

Definition at line 57 of file qsmb.h.

Referenced by DoItClicked(), and scanClicked().


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