summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp38
1 files changed, 22 insertions, 16 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 9beac94..4e14946 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -62,6 +62,6 @@ static netbuf *conn=NULL;
62 62
63static int log_progress(netbuf *ctl, int xfered, void *arg) 63static int log_progress(netbuf *, int xfered, void *)
64{ 64{
65 int fsz = *(int *)arg; 65// int fsz = *(int *)arg;
66 int pct = (xfered * 100) / fsz; 66// int pct = (xfered * 100) / fsz;
67// printf("%3d%%\r", pct); 67// printf("%3d%%\r", pct);
@@ -227,3 +227,4 @@ OpieFtp::OpieFtp( )
227 227
228 connect( UsernameComboBox,SIGNAL(textChanged(const QString &)),this,SLOT( UsernameComboBoxEdited(const QString & ) )); 228 connect( UsernameComboBox,SIGNAL(textChanged(const QString &)),this,
229 SLOT( UsernameComboBoxEdited(const QString & ) ));
229 230
@@ -237,3 +238,4 @@ OpieFtp::OpieFtp( )
237 238
238 connect( PasswordEdit,SIGNAL(textChanged(const QString &)),this,SLOT( PasswordEditEdited(const QString & ) )); 239 connect( PasswordEdit,SIGNAL(textChanged(const QString &)),this,
240 SLOT( PasswordEditEdited(const QString & ) ));
239 241
@@ -249,3 +251,4 @@ OpieFtp::OpieFtp( )
249 connect(ServerComboBox,SIGNAL(activated(int)),this,SLOT(serverComboSelected(int ) )); 251 connect(ServerComboBox,SIGNAL(activated(int)),this,SLOT(serverComboSelected(int ) ));
250 connect(ServerComboBox,SIGNAL(textChanged(const QString &)),this,SLOT(serverComboEdited(const QString & ) )); 252 connect(ServerComboBox,SIGNAL(textChanged(const QString &)),this,
253 SLOT(serverComboEdited(const QString & ) ));
251 254
@@ -349,3 +352,3 @@ void OpieFtp::cleanUp()
349 352
350void OpieFtp::tabChanged(QWidget *w) 353void OpieFtp::tabChanged(QWidget *)
351{ 354{
@@ -391,3 +394,3 @@ void OpieFtp::newConnection()
391 394
392void OpieFtp::serverComboEdited(const QString & edit) 395void OpieFtp::serverComboEdited(const QString & )
393{ 396{
@@ -399,3 +402,3 @@ void OpieFtp::serverComboEdited(const QString & edit)
399 402
400void OpieFtp::UsernameComboBoxEdited(const QString & use) { 403void OpieFtp::UsernameComboBoxEdited(const QString &) {
401// currentServerConfig = -1; 404// currentServerConfig = -1;
@@ -403,3 +406,3 @@ void OpieFtp::UsernameComboBoxEdited(const QString & use) {
403 406
404void OpieFtp::PasswordEditEdited(const QString & pass) { 407void OpieFtp::PasswordEditEdited(const QString & ) {
405// currentServerConfig = -1; 408// currentServerConfig = -1;
@@ -444,3 +447,3 @@ void OpieFtp::connector()
444 cfg.setGroup("Server"); 447 cfg.setGroup("Server");
445 int current=cfg.readNumEntry("currentServer", 1); 448// int current=cfg.readNumEntry("currentServer", 1);
446 449
@@ -655,3 +658,3 @@ void OpieFtp::populateLocalView()
655 QFileInfo sym( symLink); 658 QFileInfo sym( symLink);
656 fileS.sprintf( "%10li", sym.size() ); 659 fileS.sprintf( "%10i", sym.size() );
657 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() ); 660 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() );
@@ -660,3 +663,3 @@ void OpieFtp::populateLocalView()
660// qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); 663// qDebug("Not a dir: "+currentDir.canonicalPath()+fileL);
661 fileS.sprintf( "%10li", fi->size() ); 664 fileS.sprintf( "%10i", fi->size() );
662 fileL.sprintf( "%s",fi->fileName().data() ); 665 fileL.sprintf( "%s",fi->fileName().data() );
@@ -816,2 +819,4 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
816// QCopEnvelope ( "QPE/System", "notBusy()" ); 819// QCopEnvelope ( "QPE/System", "notBusy()" );
820 Remote_View->ensureItemVisible(Remote_View->firstChild());
821
817 } 822 }
@@ -857,2 +862,3 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem)
857 } 862 }
863 Local_View->ensureItemVisible(Local_View->firstChild());
858 } 864 }
@@ -888,3 +894,3 @@ void OpieFtp::showHidden()
888 894
889void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) 895void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &, int)
890{ 896{
@@ -896,3 +902,3 @@ void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point,
896 902
897void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) 903void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &, int )
898{ 904{
@@ -1307,3 +1313,3 @@ void OpieFtp::serverComboSelected(int index)
1307 cfg.setGroup("Server"); 1313 cfg.setGroup("Server");
1308 int numberOfEntries = cfg.readNumEntry("numberOfEntries",0); 1314// int numberOfEntries = cfg.readNumEntry("numberOfEntries",0);
1309 1315