summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-05-26 02:51:00 (UTC)
committer llornkcor <llornkcor>2003-05-26 02:51:00 (UTC)
commiteaa924af86511fd43fc9eac5438e73972f82158b (patch) (unidiff)
treef6a0c07eba3951d50935ab1a7edccc95a1659949
parent3fee41c94625fdef794a2eaabfc440cd01a1b11a (diff)
downloadopie-eaa924af86511fd43fc9eac5438e73972f82158b.zip
opie-eaa924af86511fd43fc9eac5438e73972f82158b.tar.gz
opie-eaa924af86511fd43fc9eac5438e73972f82158b.tar.bz2
remove extra includes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/filePermissions.cpp4
-rw-r--r--noncore/net/opieftp/inputDialog.cpp4
-rw-r--r--noncore/net/opieftp/main.cpp4
-rw-r--r--noncore/net/opieftp/opieftp.cpp14
4 files changed, 0 insertions, 26 deletions
diff --git a/noncore/net/opieftp/filePermissions.cpp b/noncore/net/opieftp/filePermissions.cpp
index ab094db..f545c1f 100644
--- a/noncore/net/opieftp/filePermissions.cpp
+++ b/noncore/net/opieftp/filePermissions.cpp
@@ -1,48 +1,44 @@
1/**************************************************************************** 1/****************************************************************************
2** copyright 2002 ljp ljp@llornkcor.com 2** copyright 2002 ljp ljp@llornkcor.com
3** Created: Sat Feb 23 19:44:40 2002 L.J. Potter 3** Created: Sat Feb 23 19:44:40 2002 L.J. Potter
4** 4**
5** This file may be distributed and/or modified under the terms of the 5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software 6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the 7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file. 8** packaging of this file.
9** 9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12** 12**
13****************************************************************************/ 13****************************************************************************/
14#include "filePermissions.h" 14#include "filePermissions.h"
15 15
16#include <qfile.h>
17#include <qfileinfo.h> 16#include <qfileinfo.h>
18 17
19#include <qcheckbox.h> 18#include <qcheckbox.h>
20#include <qlabel.h> 19#include <qlabel.h>
21#include <qlineedit.h> 20#include <qlineedit.h>
22#include <qlayout.h>
23#include <qvariant.h>
24#include <qtooltip.h>
25#include <qmessagebox.h> 21#include <qmessagebox.h>
26 22
27#include <unistd.h> 23#include <unistd.h>
28#include <sys/stat.h> 24#include <sys/stat.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <sys/types.h> 26#include <sys/types.h>
31#include <pwd.h> 27#include <pwd.h>
32#include <grp.h> 28#include <grp.h>
33 29
34filePermissions::filePermissions( QWidget* parent, const char* name, bool modal, WFlags fl, const QString &fileName, bool useRemote ) 30filePermissions::filePermissions( QWidget* parent, const char* name, bool modal, WFlags fl, const QString &fileName, bool useRemote )
35 : QDialog( parent, name, modal, fl ) 31 : QDialog( parent, name, modal, fl )
36{ 32{
37 if ( !name ) 33 if ( !name )
38 setName( tr("filePermissions") ); 34 setName( tr("filePermissions") );
39// qDebug("FilePermissions "+fileName); 35// qDebug("FilePermissions "+fileName);
40 resize( 236, 210 ); 36 resize( 236, 210 );
41 isRemote=useRemote; 37 isRemote=useRemote;
42 setMaximumSize( QSize( 236, 210 ) ); 38 setMaximumSize( QSize( 236, 210 ) );
43 setCaption( tr( "Set File Permissions" ) ); 39 setCaption( tr( "Set File Permissions" ) );
44 40
45 TextLabel1 = new QLabel( this, "TextLabel1" ); 41 TextLabel1 = new QLabel( this, "TextLabel1" );
46 TextLabel1->setGeometry( QRect( 25, 5, 175, 20 ) ); 42 TextLabel1->setGeometry( QRect( 25, 5, 175, 20 ) );
47 TextLabel1->setText( tr( "Set file permissions for:" ) ); 43 TextLabel1->setText( tr( "Set file permissions for:" ) );
48 44
diff --git a/noncore/net/opieftp/inputDialog.cpp b/noncore/net/opieftp/inputDialog.cpp
index 373db3b..23741c0 100644
--- a/noncore/net/opieftp/inputDialog.cpp
+++ b/noncore/net/opieftp/inputDialog.cpp
@@ -1,43 +1,39 @@
1/**************************************************************************** 1/****************************************************************************
2 inputDialog.cpp 2 inputDialog.cpp
3 ------------------- 3 -------------------
4** Created: Sat Mar 9 23:33:09 2002 4** Created: Sat Mar 9 23:33:09 2002
5 copyright : (C) 2002 by ljp 5 copyright : (C) 2002 by ljp
6 email : ljp@llornkcor.com 6 email : ljp@llornkcor.com
7 * This program is free software; you can redistribute it and/or modify * 7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by * 8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or * 9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. * 10 * (at your option) any later version. *
11 ***************************************************************************/ 11 ***************************************************************************/
12 12
13#include "inputDialog.h" 13#include "inputDialog.h"
14 14
15#include <qlineedit.h> 15#include <qlineedit.h>
16#include <qlayout.h>
17#include <qvariant.h>
18#include <qtooltip.h>
19#include <qwhatsthis.h>
20 16
21 17
22InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) 18InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
23 : QDialog( parent, name, modal, fl ) 19 : QDialog( parent, name, modal, fl )
24{ 20{
25 if ( !name ) 21 if ( !name )
26 setName( "InputDialog" ); 22 setName( "InputDialog" );
27 resize( 234, 50 ); 23 resize( 234, 50 );
28 setMaximumSize( QSize( 240, 50 ) ); 24 setMaximumSize( QSize( 240, 50 ) );
29 setCaption( tr(name ) ); 25 setCaption( tr(name ) );
30 26
31 LineEdit1 = new QLineEdit( this, "LineEdit1" ); 27 LineEdit1 = new QLineEdit( this, "LineEdit1" );
32 LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); 28 LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) );
33} 29}
34 30
35InputDialog::~InputDialog() 31InputDialog::~InputDialog()
36{ 32{
37 inputText= LineEdit1->text(); 33 inputText= LineEdit1->text();
38 34
39} 35}
40 36
41void InputDialog::setTextEdit(const QString &string) 37void InputDialog::setTextEdit(const QString &string)
42{ 38{
43 LineEdit1->setText(string); 39 LineEdit1->setText(string);
diff --git a/noncore/net/opieftp/main.cpp b/noncore/net/opieftp/main.cpp
index 28676e1..4f5a7d4 100644
--- a/noncore/net/opieftp/main.cpp
+++ b/noncore/net/opieftp/main.cpp
@@ -1,31 +1,27 @@
1 1
2/*************************************************************************** 2/***************************************************************************
3 main.cpp - description 3 main.cpp - description
4 ------------------- 4 -------------------
5 begin : March 10, 2002 5 begin : March 10, 2002
6 copyright : (C) 2002 by llornkcor 6 copyright : (C) 2002 by llornkcor
7 email : ljp@llornkcor.com 7 email : ljp@llornkcor.com
8 * This program is free software; you can redistribute it and/or modify * 8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by * 9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or * 10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. * 11 * (at your option) any later version. *
12 ***************************************************************************/ 12 ***************************************************************************/
13#include <qpe/qpeapplication.h> 13#include <qpe/qpeapplication.h>
14#include <qpe/qcopenvelope_qws.h>
15#include <qpe/config.h>
16#include <qstring.h>
17#include <qstringlist.h>
18 14
19 15
20 16
21#include "opieftp.h" 17#include "opieftp.h"
22 18
23int main(int argc, char *argv[]) 19int main(int argc, char *argv[])
24{ 20{
25 QPEApplication a(argc, argv); 21 QPEApplication a(argc, argv);
26 22
27 OpieFtp opieftp; 23 OpieFtp opieftp;
28 a.showMainWidget( &opieftp); 24 a.showMainWidget( &opieftp);
29 return a.exec(); 25 return a.exec();
30} 26}
31 27
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index e81b7ca..668a03d 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -1,77 +1,63 @@
1/*************************************************************************** 1/***************************************************************************
2 opieftp.cpp 2 opieftp.cpp
3 ------------------- 3 -------------------
4** Created: Sat Mar 9 23:33:09 2002 4** Created: Sat Mar 9 23:33:09 2002
5 copyright : (C) 2002 by ljp 5 copyright : (C) 2002 by ljp
6 email : ljp@llornkcor.com 6 email : ljp@llornkcor.com
7 * This program is free software; you can redistribute it and/or modify * 7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by * 8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or * 9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. * 10 * (at your option) any later version. *
11 ***************************************************************************/ 11 ***************************************************************************/
12//#define DEVELOPERS_VERSION 12//#define DEVELOPERS_VERSION
13 13
14#include "opieftp.h" 14#include "opieftp.h"
15 15
16extern "C" { 16extern "C" {
17#include "../ftplib/ftplib.h" 17#include "../ftplib/ftplib.h"
18} 18}
19 19
20#include "inputDialog.h" 20#include "inputDialog.h"
21 21
22#include <qpe/qpemenubar.h> 22#include <qpe/qpemenubar.h>
23#include <qpe/qpetoolbar.h>
24#include <qpe/qpeapplication.h> 23#include <qpe/qpeapplication.h>
25#include <qpe/resource.h> 24#include <qpe/resource.h>
26#include <qpe/qcopenvelope_qws.h>
27#include <qpe/config.h> 25#include <qpe/config.h>
28#include <qpe/mimetype.h> 26#include <qpe/mimetype.h>
29#include <qpe/qpemessagebox.h>
30 27
31#include <qstringlist.h>
32#include <qtextstream.h> 28#include <qtextstream.h>
33#include <qpushbutton.h> 29#include <qpushbutton.h>
34#include <qtoolbutton.h> 30#include <qtoolbutton.h>
35#include <qdatetime.h>
36#include <qdir.h>
37#include <qfile.h>
38#include <qstring.h>
39#include <qcombobox.h> 31#include <qcombobox.h>
40#include <qpopupmenu.h>
41#include <qlistview.h> 32#include <qlistview.h>
42#include <qmainwindow.h>
43#include <qlabel.h> 33#include <qlabel.h>
44#include <qprogressbar.h> 34#include <qprogressbar.h>
45#include <qspinbox.h> 35#include <qspinbox.h>
46#include <qtabwidget.h> 36#include <qtabwidget.h>
47#include <qwidget.h>
48#include <qlayout.h> 37#include <qlayout.h>
49#include <qimage.h>
50#include <qpixmap.h>
51#include <qmessagebox.h> 38#include <qmessagebox.h>
52#include <qlineedit.h> 39#include <qlineedit.h>
53#include <qregexp.h>
54#include <qlistbox.h> 40#include <qlistbox.h>
55 41
56#include <unistd.h> 42#include <unistd.h>
57#include <stdlib.h> 43#include <stdlib.h>
58 44
59 45
60QProgressBar *ProgressBar; 46QProgressBar *ProgressBar;
61static netbuf *conn=NULL; 47static netbuf *conn=NULL;
62 48
63static int log_progress(netbuf *, int xfered, void *) 49static int log_progress(netbuf *, int xfered, void *)
64{ 50{
65// int fsz = *(int *)arg; 51// int fsz = *(int *)arg;
66// int pct = (xfered * 100) / fsz; 52// int pct = (xfered * 100) / fsz;
67// printf("%3d%%\r", pct); 53// printf("%3d%%\r", pct);
68// fflush(stdout); 54// fflush(stdout);
69 ProgressBar->setProgress(xfered); 55 ProgressBar->setProgress(xfered);
70 qApp->processEvents(); 56 qApp->processEvents();
71 return 1; 57 return 1;
72} 58}
73 59
74OpieFtp::OpieFtp( ) 60OpieFtp::OpieFtp( )
75 : QMainWindow( ) 61 : QMainWindow( )
76{ 62{
77 setCaption( tr( "OpieFtp" ) ); 63 setCaption( tr( "OpieFtp" ) );