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

NetworkDialog Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-gutenbrowser/NetworkDialog.h>

Collaboration diagram for NetworkDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NetworkDialog (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0, const QStringList netList=0)
 ~NetworkDialog ()
void initDialog ()

Public Attributes

QFile fiole
QTimer * connectionTimer
QTimer * timer
int timerProgess
bool posTimer
QString s_partialFileName
QString s_finally
bool foundIt
bool successDownload
QLabel * warnLabel
QLabel * TextLabel3
QPushButton * buttonHelp
bool ok
QString local_library
QString ftp_host
QString ftp_base_dir
QString dir
QString strUrl
QString networkUrl
QPushButton * buttonCancel
QString localFileName
bool fileFound
int i
int totalBytesDownloaded
bool autoOk

Protected Attributes

QHBoxLayout * hbox

Private Slots

bool downloadFile (QString strUrl)
void doOk ()

Constructor & Destructor Documentation

NetworkDialog::NetworkDialog QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE,
WFlags  fl = 0,
const QStringList  netList = 0
 

Definition at line 54 of file NetworkDialog.cpp.

References dir, ftp_base_dir, ftp_host, QDir::homeDirPath(), initDialog(), local_library, localFileName, networkUrl, s_partialFileName, strUrl, and tr.

NetworkDialog::~NetworkDialog  ) 
 

Definition at line 83 of file NetworkDialog.cpp.


Member Function Documentation

void NetworkDialog::doOk  )  [private, slot]
 

Definition at line 253 of file NetworkDialog.cpp.

References downloadFile(), QString::find(), ftp_host, QString::isEmpty(), QString::length(), oendl, owarn, successDownload, TextLabel3, tr, and TRUE.

Referenced by initDialog().

bool NetworkDialog::downloadFile QString  strUrl  )  [private, slot]
 

Definition at line 115 of file NetworkDialog.cpp.

References conn, QString::contains(), dir, QTextStream::eof(), FALSE, QString::find(), ftp_host, FtpChdir(), FtpConnect(), FtpDir(), FtpGet(), FtpLastResponse(), FTPLIB_ASCII, FTPLIB_CALLBACK, FTPLIB_CALLBACKARG, FTPLIB_CALLBACKBYTES, FTPLIB_IDLETIME, FtpLogin(), FtpOptions(), FtpQuit(), FtpSize(), i, IO_ReadOnly, QString::latin1(), QString::length(), local_library, localFileName, log_progress(), message, odebug, oendl, QFile::open(), ProgressBar1, qApp, qDebug(), Config::readEntry(), QTextStream::readLine(), QString::right(), s, s_partialFileName, Config::setGroup(), QString::sprintf(), str, successDownload, t, TextLabel3, TRUE, and warnLabel.

Referenced by doOk().

void NetworkDialog::initDialog  ) 
 

Definition at line 86 of file NetworkDialog.cpp.

References buttonCancel, doOk(), ProgressBar1, TextLabel3, totalBytesDownloaded, tr, TRUE, and warnLabel.

Referenced by NetworkDialog().


Member Data Documentation

bool NetworkDialog::autoOk
 

Definition at line 63 of file NetworkDialog.h.

QPushButton* NetworkDialog::buttonCancel
 

Definition at line 58 of file NetworkDialog.h.

Referenced by initDialog().

QPushButton* NetworkDialog::buttonHelp
 

Definition at line 50 of file NetworkDialog.h.

QTimer* NetworkDialog::connectionTimer
 

Definition at line 42 of file NetworkDialog.h.

QString NetworkDialog::dir
 

Definition at line 55 of file NetworkDialog.h.

Referenced by downloadFile(), and NetworkDialog().

bool NetworkDialog::fileFound
 

Definition at line 61 of file NetworkDialog.h.

QFile NetworkDialog::fiole
 

Definition at line 41 of file NetworkDialog.h.

bool NetworkDialog::foundIt
 

Definition at line 47 of file NetworkDialog.h.

QString NetworkDialog::ftp_base_dir
 

Definition at line 54 of file NetworkDialog.h.

Referenced by NetworkDialog().

QString NetworkDialog::ftp_host
 

Definition at line 53 of file NetworkDialog.h.

Referenced by doOk(), downloadFile(), and NetworkDialog().

QHBoxLayout* NetworkDialog::hbox [protected]
 

Definition at line 68 of file NetworkDialog.h.

int NetworkDialog::i
 

Definition at line 62 of file NetworkDialog.h.

Referenced by downloadFile().

QString NetworkDialog::local_library
 

Definition at line 52 of file NetworkDialog.h.

Referenced by downloadFile(), and NetworkDialog().

QString NetworkDialog::localFileName
 

Definition at line 60 of file NetworkDialog.h.

Referenced by downloadFile(), LibraryDialog::getEtext(), and NetworkDialog().

QString NetworkDialog::networkUrl
 

Definition at line 55 of file NetworkDialog.h.

Referenced by NetworkDialog().

bool NetworkDialog::ok
 

Definition at line 51 of file NetworkDialog.h.

bool NetworkDialog::posTimer
 

Definition at line 45 of file NetworkDialog.h.

QString NetworkDialog::s_finally
 

Definition at line 46 of file NetworkDialog.h.

QString NetworkDialog::s_partialFileName
 

Definition at line 46 of file NetworkDialog.h.

Referenced by downloadFile(), and NetworkDialog().

QString NetworkDialog::strUrl
 

Definition at line 55 of file NetworkDialog.h.

Referenced by NetworkDialog().

bool NetworkDialog::successDownload
 

Definition at line 47 of file NetworkDialog.h.

Referenced by doOk(), downloadFile(), and LibraryDialog::getEtext().

QLabel* NetworkDialog::TextLabel3
 

Definition at line 49 of file NetworkDialog.h.

Referenced by doOk(), downloadFile(), and initDialog().

QTimer* NetworkDialog::timer
 

Definition at line 43 of file NetworkDialog.h.

int NetworkDialog::timerProgess
 

Definition at line 44 of file NetworkDialog.h.

int NetworkDialog::totalBytesDownloaded
 

Definition at line 62 of file NetworkDialog.h.

Referenced by initDialog().

QLabel* NetworkDialog::warnLabel
 

Definition at line 48 of file NetworkDialog.h.

Referenced by downloadFile(), and initDialog().


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