From fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 07 Apr 2004 13:07:42 +0000 Subject: add gutenbrowser --- (limited to 'noncore/apps/opie-gutenbrowser/NetworkDialog.h') diff --git a/noncore/apps/opie-gutenbrowser/NetworkDialog.h b/noncore/apps/opie-gutenbrowser/NetworkDialog.h new file mode 100644 index 0000000..447979f --- a/dev/null +++ b/noncore/apps/opie-gutenbrowser/NetworkDialog.h @@ -0,0 +1,84 @@ +/*************************************************************************** + NetworkDialog.h - description + ------------------- + begin : Sun Aug 27 2000 + copyright : (C) 2000 -2004 by llornkcor + email : ljp@llornkcor.com +***************************************************************************/ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +#ifndef NETWORKDIALOG_H +#define NETWORKDIALOG_H + +#include +#include +#include +#include +#include +#include +#include +#include + +//#include + +//class QProgressBar; + +class NetworkDialog : public QDialog +{ + Q_OBJECT + +public: + NetworkDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QStringList netList=0); +/* NetworkDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QString & UrlStr = 0, const QString & dirStr=0,const QString & fileStr=0, const QString & psrtialFile=0); */ + ~NetworkDialog(); + + QFile fiole; + QTimer * connectionTimer; + QTimer * timer; + int timerProgess; + bool posTimer; + QString s_partialFileName, s_finally; + bool foundIt, successDownload; + QLabel * warnLabel; + QLabel* TextLabel3; + QPushButton* buttonHelp; + bool ok; + QString local_library; + QString ftp_host; + QString ftp_base_dir; + QString dir, strUrl, networkUrl; + + QPushButton* buttonOk; + QPushButton* buttonCancel; + + QString localFileName; + bool fileFound; + int i, totalBytesDownloaded; + bool autoOk; + + void initDialog(); + +protected: + QHBoxLayout* hbox; + +private slots: + bool downloadFile( QString strUrl); + void connectionTimeSlot(); + void timeSlot(); + void doOk(); + + private: +/* #ifndef Q_WS_QWS */ + +/* QString getOpenFileName(); */ +/* QUrlOperator op; */ +/* #endif */ +}; + +#endif // NETWORKDIALOG_H -- cgit v0.9.0.2