-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 28 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.h | 4 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.pro | 4 |
3 files changed, 24 insertions, 12 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 7f5d71c..e15bbef 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -13,24 +13,25 @@ | |||
13 | 13 | ||
14 | #include "opieftp.h" | 14 | #include "opieftp.h" |
15 | #include "ftplib.h" | 15 | #include "ftplib.h" |
16 | #include "inputDialog.h" | 16 | #include "inputDialog.h" |
17 | 17 | ||
18 | #include <qpe/qpemenubar.h> | 18 | #include <qpe/qpemenubar.h> |
19 | #include <qpe/qpetoolbar.h> | 19 | #include <qpe/qpetoolbar.h> |
20 | #include <qpe/qpeapplication.h> | 20 | #include <qpe/qpeapplication.h> |
21 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/config.h> | 23 | #include <qpe/config.h> |
24 | #include <qpe/mimetype.h> | 24 | #include <qpe/mimetype.h> |
25 | #include <qpe/qpemessagebox.h> | ||
25 | 26 | ||
26 | #include <qstringlist.h> | 27 | #include <qstringlist.h> |
27 | #include <qtextstream.h> | 28 | #include <qtextstream.h> |
28 | #include <qpushbutton.h> | 29 | #include <qpushbutton.h> |
29 | #include <qtoolbutton.h> | 30 | #include <qtoolbutton.h> |
30 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
31 | #include <qdir.h> | 32 | #include <qdir.h> |
32 | #include <qfile.h> | 33 | #include <qfile.h> |
33 | #include <qstring.h> | 34 | #include <qstring.h> |
34 | #include <qcombobox.h> | 35 | #include <qcombobox.h> |
35 | #include <qpopupmenu.h> | 36 | #include <qpopupmenu.h> |
36 | #include <qlistview.h> | 37 | #include <qlistview.h> |
@@ -75,25 +76,25 @@ OpieFtp::OpieFtp( ) | |||
75 | layout->setMargin( 2); | 76 | layout->setMargin( 2); |
76 | 77 | ||
77 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 78 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
78 | 79 | ||
79 | QPEMenuBar *menuBar = new QPEMenuBar(this); | 80 | QPEMenuBar *menuBar = new QPEMenuBar(this); |
80 | // QPEToolBar *menuBar = new QPEToolBar(this); | 81 | // QPEToolBar *menuBar = new QPEToolBar(this); |
81 | // menuBar->setHorizontalStretchable( TRUE ); | 82 | // menuBar->setHorizontalStretchable( TRUE ); |
82 | 83 | ||
83 | connectionMenu = new QPopupMenu( this ); | 84 | connectionMenu = new QPopupMenu( this ); |
84 | localMenu = new QPopupMenu( this ); | 85 | localMenu = new QPopupMenu( this ); |
85 | remoteMenu = new QPopupMenu( this ); | 86 | remoteMenu = new QPopupMenu( this ); |
86 | tabMenu = new QPopupMenu( this ); | 87 | tabMenu = new QPopupMenu( this ); |
87 | 88 | ||
88 | layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); | 89 | layout->addMultiCellWidget( menuBar, 0, 0, 0, 2 ); |
89 | 90 | ||
90 | menuBar->insertItem( tr( "Connection" ), connectionMenu); | 91 | menuBar->insertItem( tr( "Connection" ), connectionMenu); |
91 | menuBar->insertItem( tr( "Local" ), localMenu); | 92 | menuBar->insertItem( tr( "Local" ), localMenu); |
92 | menuBar->insertItem( tr( "Remote" ), remoteMenu); | 93 | menuBar->insertItem( tr( "Remote" ), remoteMenu); |
93 | menuBar->insertItem( tr( "View" ), tabMenu); | 94 | menuBar->insertItem( tr( "View" ), tabMenu); |
94 | 95 | ||
95 | connectionMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); | 96 | connectionMenu->insertItem( tr( "New" ), this, SLOT( newConnection() )); |
96 | connectionMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); | 97 | connectionMenu->insertItem( tr( "Connect" ), this, SLOT( connector() )); |
97 | connectionMenu->insertItem( tr( "Disconnect" ), this, SLOT( disConnector() )); | 98 | connectionMenu->insertItem( tr( "Disconnect" ), this, SLOT( disConnector() )); |
98 | 99 | ||
99 | localMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); | 100 | localMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); |
@@ -105,27 +106,30 @@ OpieFtp::OpieFtp( ) | |||
105 | localMenu->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); | 106 | localMenu->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); |
106 | localMenu->setCheckable(TRUE); | 107 | localMenu->setCheckable(TRUE); |
107 | 108 | ||
108 | remoteMenu->insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); | 109 | remoteMenu->insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); |
109 | remoteMenu->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); | 110 | remoteMenu->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); |
110 | remoteMenu->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); | 111 | remoteMenu->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); |
111 | remoteMenu->insertSeparator(); | 112 | remoteMenu->insertSeparator(); |
112 | remoteMenu->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); | 113 | remoteMenu->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); |
113 | 114 | ||
114 | tabMenu->insertItem( tr( "Switch to Local" ), this, SLOT( switchToLocalTab() )); | 115 | tabMenu->insertItem( tr( "Switch to Local" ), this, SLOT( switchToLocalTab() )); |
115 | tabMenu->insertItem( tr( "Switch to Remote" ), this, SLOT( switchToRemoteTab() )); | 116 | tabMenu->insertItem( tr( "Switch to Remote" ), this, SLOT( switchToRemoteTab() )); |
116 | tabMenu->insertItem( tr( "Switch to Config" ), this, SLOT( switchToConfigTab() )); | 117 | tabMenu->insertItem( tr( "Switch to Config" ), this, SLOT( switchToConfigTab() )); |
118 | tabMenu->insertSeparator(); | ||
119 | tabMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); | ||
117 | tabMenu->setCheckable(TRUE); | 120 | tabMenu->setCheckable(TRUE); |
118 | 121 | ||
119 | 122 | ||
123 | |||
120 | cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); | 124 | cdUpButton = new QPushButton(Resource::loadIconSet("up"),"",this,"cdUpButton"); |
121 | cdUpButton ->setFixedSize( QSize( 20, 20 ) ); | 125 | cdUpButton ->setFixedSize( QSize( 20, 20 ) ); |
122 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); | 126 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); |
123 | cdUpButton ->setFlat(TRUE); | 127 | cdUpButton ->setFlat(TRUE); |
124 | layout->addMultiCellWidget( cdUpButton, 0, 0, 3, 3 ); | 128 | layout->addMultiCellWidget( cdUpButton, 0, 0, 3, 3 ); |
125 | cdUpButton->hide(); | 129 | cdUpButton->hide(); |
126 | 130 | ||
127 | // docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",this,"docsButton"); | 131 | // docButton = new QPushButton(Resource::loadIconSet("DocsIcon"),"",this,"docsButton"); |
128 | // docButton->setFixedSize( QSize( 20, 20 ) ); | 132 | // docButton->setFixedSize( QSize( 20, 20 ) ); |
129 | // connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); | 133 | // connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); |
130 | // docButton->setFlat(TRUE); | 134 | // docButton->setFlat(TRUE); |
131 | // layout->addMultiCellWidget( docButton, 0, 0, 6, 6 ); | 135 | // layout->addMultiCellWidget( docButton, 0, 0, 6, 6 ); |
@@ -141,27 +145,27 @@ OpieFtp::OpieFtp( ) | |||
141 | layout->addMultiCellWidget( TabWidget, 1, 1, 0, 4 ); | 145 | layout->addMultiCellWidget( TabWidget, 1, 1, 0, 4 ); |
142 | 146 | ||
143 | // TabWidget->setTabShape(QTabWidget::Triangular); | 147 | // TabWidget->setTabShape(QTabWidget::Triangular); |
144 | 148 | ||
145 | tab = new QWidget( TabWidget, "tab" ); | 149 | tab = new QWidget( TabWidget, "tab" ); |
146 | tabLayout = new QGridLayout( tab ); | 150 | tabLayout = new QGridLayout( tab ); |
147 | tabLayout->setSpacing( 2); | 151 | tabLayout->setSpacing( 2); |
148 | tabLayout->setMargin( 2); | 152 | tabLayout->setMargin( 2); |
149 | 153 | ||
150 | Local_View = new QListView( tab, "Local_View" ); | 154 | Local_View = new QListView( tab, "Local_View" ); |
151 | // Local_View->setResizePolicy( QListView::AutoOneFit ); | 155 | // Local_View->setResizePolicy( QListView::AutoOneFit ); |
152 | Local_View->addColumn( tr("File"),150); | 156 | Local_View->addColumn( tr("File"),150); |
153 | Local_View->addColumn( tr("Size"),-1); | ||
154 | Local_View->setColumnAlignment(1,QListView::AlignRight); | ||
155 | Local_View->addColumn( tr("Date"),-1); | 157 | Local_View->addColumn( tr("Date"),-1); |
158 | Local_View->setColumnAlignment(1,QListView::AlignRight); | ||
159 | Local_View->addColumn( tr("Size"),-1); | ||
156 | Local_View->setColumnAlignment(2,QListView::AlignRight); | 160 | Local_View->setColumnAlignment(2,QListView::AlignRight); |
157 | Local_View->setAllColumnsShowFocus(TRUE); | 161 | Local_View->setAllColumnsShowFocus(TRUE); |
158 | 162 | ||
159 | Local_View->setMultiSelection( TRUE); | 163 | Local_View->setMultiSelection( TRUE); |
160 | Local_View->setSelectionMode(QListView::Extended); | 164 | Local_View->setSelectionMode(QListView::Extended); |
161 | Local_View->setFocusPolicy(QWidget::ClickFocus); | 165 | Local_View->setFocusPolicy(QWidget::ClickFocus); |
162 | 166 | ||
163 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); | 167 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); |
164 | 168 | ||
165 | tabLayout->addWidget( Local_View, 0, 0 ); | 169 | tabLayout->addWidget( Local_View, 0, 0 ); |
166 | 170 | ||
167 | connect( Local_View, SIGNAL( clicked( QListViewItem*)), | 171 | connect( Local_View, SIGNAL( clicked( QListViewItem*)), |
@@ -171,27 +175,27 @@ OpieFtp::OpieFtp( ) | |||
171 | connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), | 175 | connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), |
172 | this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); | 176 | this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); |
173 | 177 | ||
174 | TabWidget->insertTab( tab, tr( "Local" ) ); | 178 | TabWidget->insertTab( tab, tr( "Local" ) ); |
175 | 179 | ||
176 | tab_2 = new QWidget( TabWidget, "tab_2" ); | 180 | tab_2 = new QWidget( TabWidget, "tab_2" ); |
177 | tabLayout_2 = new QGridLayout( tab_2 ); | 181 | tabLayout_2 = new QGridLayout( tab_2 ); |
178 | tabLayout_2->setSpacing( 2); | 182 | tabLayout_2->setSpacing( 2); |
179 | tabLayout_2->setMargin( 2); | 183 | tabLayout_2->setMargin( 2); |
180 | 184 | ||
181 | Remote_View = new QListView( tab_2, "Remote_View" ); | 185 | Remote_View = new QListView( tab_2, "Remote_View" ); |
182 | Remote_View->addColumn( tr("File"),150); | 186 | Remote_View->addColumn( tr("File"),150); |
183 | Remote_View->addColumn( tr("Size"),-1); | ||
184 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | ||
185 | Remote_View->addColumn( tr("Date"),-1); | 187 | Remote_View->addColumn( tr("Date"),-1); |
188 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | ||
189 | Remote_View->addColumn( tr("Size"),-1); | ||
186 | Remote_View->setColumnAlignment(2,QListView::AlignRight); | 190 | Remote_View->setColumnAlignment(2,QListView::AlignRight); |
187 | Remote_View->addColumn( tr("Dir"),-1); | 191 | Remote_View->addColumn( tr("Dir"),-1); |
188 | Remote_View->setColumnAlignment(4,QListView::AlignRight); | 192 | Remote_View->setColumnAlignment(4,QListView::AlignRight); |
189 | Remote_View->setAllColumnsShowFocus(TRUE); | 193 | Remote_View->setAllColumnsShowFocus(TRUE); |
190 | 194 | ||
191 | Remote_View->setMultiSelection( FALSE); | 195 | Remote_View->setMultiSelection( FALSE); |
192 | Remote_View->setSelectionMode(QListView::Extended); | 196 | Remote_View->setSelectionMode(QListView::Extended); |
193 | Remote_View->setFocusPolicy(QWidget::ClickFocus); | 197 | Remote_View->setFocusPolicy(QWidget::ClickFocus); |
194 | 198 | ||
195 | QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); | 199 | QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); |
196 | 200 | ||
197 | connect( Remote_View, SIGNAL( clicked( QListViewItem*)), | 201 | connect( Remote_View, SIGNAL( clicked( QListViewItem*)), |
@@ -602,25 +606,25 @@ void OpieFtp::populateLocalView() | |||
602 | } else { | 606 | } else { |
603 | // qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); | 607 | // qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); |
604 | fileS.sprintf( "%10li", fi->size() ); | 608 | fileS.sprintf( "%10li", fi->size() ); |
605 | fileL.sprintf( "%s",fi->fileName().data() ); | 609 | fileL.sprintf( "%s",fi->fileName().data() ); |
606 | fileDate= fi->lastModified().toString(); | 610 | fileDate= fi->lastModified().toString(); |
607 | if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) { | 611 | if( QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+fileL)).exists() ) { |
608 | fileL+="/"; | 612 | fileL+="/"; |
609 | isDir=TRUE; | 613 | isDir=TRUE; |
610 | // qDebug( fileL); | 614 | // qDebug( fileL); |
611 | } | 615 | } |
612 | } | 616 | } |
613 | if(fileL !="./" && fi->exists()) { | 617 | if(fileL !="./" && fi->exists()) { |
614 | item= new QListViewItem( Local_View,fileL,fileS , fileDate); | 618 | item= new QListViewItem( Local_View,fileL, fileDate, fileS ); |
615 | QPixmap pm; | 619 | QPixmap pm; |
616 | 620 | ||
617 | if(isDir || fileL.find("/",0,TRUE) != -1) { | 621 | if(isDir || fileL.find("/",0,TRUE) != -1) { |
618 | if( !QDir( fi->filePath() ).isReadable()) | 622 | if( !QDir( fi->filePath() ).isReadable()) |
619 | pm = Resource::loadPixmap( "lockedfolder" ); | 623 | pm = Resource::loadPixmap( "lockedfolder" ); |
620 | else | 624 | else |
621 | pm= Resource::loadPixmap( "folder" ); | 625 | pm= Resource::loadPixmap( "folder" ); |
622 | item->setPixmap( 0,pm ); | 626 | item->setPixmap( 0,pm ); |
623 | } else { | 627 | } else { |
624 | if( !fi->isReadable() ) | 628 | if( !fi->isReadable() ) |
625 | pm = Resource::loadPixmap( "locked" ); | 629 | pm = Resource::loadPixmap( "locked" ); |
626 | else { | 630 | else { |
@@ -668,31 +672,31 @@ bool OpieFtp::populateRemoteView( ) | |||
668 | s = t.readLine(); | 672 | s = t.readLine(); |
669 | fileL = s.right(s.length()-55); | 673 | fileL = s.right(s.length()-55); |
670 | fileL = fileL.stripWhiteSpace(); | 674 | fileL = fileL.stripWhiteSpace(); |
671 | if(s.left(1) == "d") | 675 | if(s.left(1) == "d") |
672 | fileL = fileL+"/"; | 676 | fileL = fileL+"/"; |
673 | // fileL = "/"+fileL+"/"; | 677 | // fileL = "/"+fileL+"/"; |
674 | fileS = s.mid( 30, 42-30); | 678 | fileS = s.mid( 30, 42-30); |
675 | fileS = fileS.stripWhiteSpace(); | 679 | fileS = fileS.stripWhiteSpace(); |
676 | fileDate = s.mid( 42, 55-42); | 680 | fileDate = s.mid( 42, 55-42); |
677 | fileDate = fileDate.stripWhiteSpace(); | 681 | fileDate = fileDate.stripWhiteSpace(); |
678 | if(fileL.find("total",0,TRUE) == -1) { | 682 | if(fileL.find("total",0,TRUE) == -1) { |
679 | if(s.left(1) == "d" || fileL.find("/",0,TRUE) != -1) { | 683 | if(s.left(1) == "d" || fileL.find("/",0,TRUE) != -1) { |
680 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate,"d"); | 684 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileDate, fileS,"d"); |
681 | item->setPixmap( 0, Resource::loadPixmap( "folder" )); | 685 | item->setPixmap( 0, Resource::loadPixmap( "folder" )); |
682 | // if(itemDir) | 686 | // if(itemDir) |
683 | item->moveItem(itemDir); | 687 | item->moveItem(itemDir); |
684 | itemDir=item; | 688 | itemDir=item; |
685 | } else { | 689 | } else { |
686 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate,"f"); | 690 | QListViewItem * item = new QListViewItem( Remote_View, fileL, fileDate, fileS,"f"); |
687 | item->setPixmap( 0, Resource::loadPixmap( "fileopen" )); | 691 | item->setPixmap( 0, Resource::loadPixmap( "fileopen" )); |
688 | // if(itemFile) | 692 | // if(itemFile) |
689 | item->moveItem(itemDir); | 693 | item->moveItem(itemDir); |
690 | item->moveItem(itemFile); | 694 | item->moveItem(itemFile); |
691 | itemFile=item; | 695 | itemFile=item; |
692 | } | 696 | } |
693 | } | 697 | } |
694 | } | 698 | } |
695 | QListViewItem * item1 = new QListViewItem( Remote_View, "../"); | 699 | QListViewItem * item1 = new QListViewItem( Remote_View, "../"); |
696 | item1->setPixmap( 0, Resource::loadPixmap( "folder" )); | 700 | item1->setPixmap( 0, Resource::loadPixmap( "folder" )); |
697 | file.close(); | 701 | file.close(); |
698 | if( file.exists()) | 702 | if( file.exists()) |
@@ -1304,12 +1308,20 @@ void OpieFtp::docButtonPushed() { | |||
1304 | populateLocalView(); | 1308 | populateLocalView(); |
1305 | update(); | 1309 | update(); |
1306 | 1310 | ||
1307 | } | 1311 | } |
1308 | 1312 | ||
1309 | void OpieFtp::homeButtonPushed() { | 1313 | void OpieFtp::homeButtonPushed() { |
1310 | QString current = QDir::homeDirPath(); | 1314 | QString current = QDir::homeDirPath(); |
1311 | chdir( current.latin1() ); | 1315 | chdir( current.latin1() ); |
1312 | currentDir.cd( current, TRUE); | 1316 | currentDir.cd( current, TRUE); |
1313 | populateLocalView(); | 1317 | populateLocalView(); |
1314 | update(); | 1318 | update(); |
1315 | } | 1319 | } |
1320 | |||
1321 | void OpieFtp::doAbout() { | ||
1322 | QMessageBox::message("OpieFtp","Opie ftp client is copyright 2002 by\n" | ||
1323 | "L.J.Potter<llornkcor@handhelds.org>\n" | ||
1324 | "and uses ftplib copyright 1996-2000\n" | ||
1325 | "by Thomas Pfau, pfau@cnj.digex.net\n\n" | ||
1326 | "and is licensed by the GPL"); | ||
1327 | } | ||
diff --git a/noncore/net/opieftp/opieftp.h b/noncore/net/opieftp/opieftp.h index 6852b1c..218a958 100644 --- a/noncore/net/opieftp/opieftp.h +++ b/noncore/net/opieftp/opieftp.h | |||
@@ -46,37 +46,37 @@ class OpieFtp : public QMainWindow | |||
46 | public: | 46 | public: |
47 | OpieFtp( ); | 47 | OpieFtp( ); |
48 | ~OpieFtp(); | 48 | ~OpieFtp(); |
49 | 49 | ||
50 | QTabWidget *TabWidget; | 50 | QTabWidget *TabWidget; |
51 | QWidget *tab, *tab_2, *tab_3; | 51 | QWidget *tab, *tab_2, *tab_3; |
52 | QListView *Local_View, *Remote_View; | 52 | QListView *Local_View, *Remote_View; |
53 | 53 | ||
54 | QComboBox *UsernameComboBox, *ServerComboBox, *currentPathCombo; | 54 | QComboBox *UsernameComboBox, *ServerComboBox, *currentPathCombo; |
55 | QLineEdit *PasswordEdit, *remotePath; | 55 | QLineEdit *PasswordEdit, *remotePath; |
56 | QLabel *TextLabel2, *TextLabel1, *TextLabel3, *TextLabel4;; | 56 | QLabel *TextLabel2, *TextLabel1, *TextLabel3, *TextLabel4;; |
57 | QSpinBox* PortSpinBox; | 57 | QSpinBox* PortSpinBox; |
58 | QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu; | 58 | QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu, *aboutMenu; |
59 | QDir currentDir; | 59 | QDir currentDir; |
60 | QString currentRemoteDir; | 60 | QString currentRemoteDir; |
61 | QString filterStr; | 61 | QString filterStr; |
62 | QListViewItem * item; | 62 | QListViewItem * item; |
63 | QPushButton *connectServerBtn, *cdUpButton, *homeButton, *docButton; | 63 | QPushButton *connectServerBtn, *cdUpButton, *homeButton, *docButton; |
64 | bool b; | 64 | bool b; |
65 | int currentServerConfig; | 65 | int currentServerConfig; |
66 | protected slots: | 66 | protected slots: |
67 | void upDir(); | 67 | void upDir(); |
68 | void homeButtonPushed(); | 68 | void homeButtonPushed(); |
69 | void docButtonPushed(); | 69 | void docButtonPushed(); |
70 | 70 | void doAbout(); | |
71 | void serverComboEdited(const QString & ); | 71 | void serverComboEdited(const QString & ); |
72 | void showLocalMenu( QListViewItem *); | 72 | void showLocalMenu( QListViewItem *); |
73 | void showRemoteMenu( QListViewItem *); | 73 | void showRemoteMenu( QListViewItem *); |
74 | void doLocalCd(); | 74 | void doLocalCd(); |
75 | void doRemoteCd(); | 75 | void doRemoteCd(); |
76 | void localUpload(); | 76 | void localUpload(); |
77 | void remoteDownload(); | 77 | void remoteDownload(); |
78 | void newConnection(); | 78 | void newConnection(); |
79 | void connector(); | 79 | void connector(); |
80 | void disConnector(); | 80 | void disConnector(); |
81 | void populateLocalView(); | 81 | void populateLocalView(); |
82 | bool populateRemoteView(); | 82 | bool populateRemoteView(); |
diff --git a/noncore/net/opieftp/opieftp.pro b/noncore/net/opieftp/opieftp.pro index f25d15f..7aead00 100644 --- a/noncore/net/opieftp/opieftp.pro +++ b/noncore/net/opieftp/opieftp.pro | |||
@@ -1,16 +1,16 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | HEADERS = opieftp.h inputDialog.h ftplib.h | 3 | HEADERS = opieftp.h inputDialog.h ftplib.h filePermissions.h |
4 | SOURCES = opieftp.cpp inputDialog.cpp ftplib.c main.cpp | 4 | SOURCES = opieftp.cpp inputDialog.cpp ftplib.c filePermissions.cpp main.cpp |
5 | TARGET = opieftp | 5 | TARGET = opieftp |
6 | REQUIRES=medium-config | 6 | REQUIRES=medium-config |
7 | DESTDIR = $(OPIEDIR)/bin | 7 | DESTDIR = $(OPIEDIR)/bin |
8 | INCLUDEPATH += $(OPIEDIR)/include | 8 | INCLUDEPATH += $(OPIEDIR)/include |
9 | DEPENDPATH += $(OPIEDIR)/include | 9 | DEPENDPATH += $(OPIEDIR)/include |
10 | LIBS += -lqpe | 10 | LIBS += -lqpe |
11 | 11 | ||
12 | TRANSLATIONS = ../../i18n/pt_BR/opieftp.ts | 12 | TRANSLATIONS = ../../i18n/pt_BR/opieftp.ts |
13 | TRANSLATIONS += ../../i18n/de/opieftp.ts | 13 | TRANSLATIONS += ../../i18n/de/opieftp.ts |
14 | TRANSLATIONS += ../../i18n/en/opieftp.ts | 14 | TRANSLATIONS += ../../i18n/en/opieftp.ts |
15 | TRANSLATIONS += ../../i18n/hu/opieftp.ts | 15 | TRANSLATIONS += ../../i18n/hu/opieftp.ts |
16 | TRANSLATIONS += ../../i18n/sl/opieftp.ts | 16 | TRANSLATIONS += ../../i18n/sl/opieftp.ts |