author | llornkcor <llornkcor> | 2002-04-22 03:16:47 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-22 03:16:47 (UTC) |
commit | 0a4f886e48153d6f423cc8ad8b31ce491128d423 (patch) (unidiff) | |
tree | 6cbbf373919a5e0be34a2b541a7e7eedd27eea58 | |
parent | 6417ac419f6aa07eec671f3821766c0c0cf958f0 (diff) | |
download | opie-0a4f886e48153d6f423cc8ad8b31ce491128d423.zip opie-0a4f886e48153d6f423cc8ad8b31ce491128d423.tar.gz opie-0a4f886e48153d6f423cc8ad8b31ce491128d423.tar.bz2 |
added extern C for #include ftplib.h
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index e15bbef..d78b7d1 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -3,25 +3,29 @@ | |||
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 | |||
16 | extern "C" { | ||
15 | #include "ftplib.h" | 17 | #include "ftplib.h" |
18 | } | ||
19 | |||
16 | #include "inputDialog.h" | 20 | #include "inputDialog.h" |
17 | 21 | ||
18 | #include <qpe/qpemenubar.h> | 22 | #include <qpe/qpemenubar.h> |
19 | #include <qpe/qpetoolbar.h> | 23 | #include <qpe/qpetoolbar.h> |
20 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
21 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 26 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
24 | #include <qpe/mimetype.h> | 28 | #include <qpe/mimetype.h> |
25 | #include <qpe/qpemessagebox.h> | 29 | #include <qpe/qpemessagebox.h> |
26 | 30 | ||
27 | #include <qstringlist.h> | 31 | #include <qstringlist.h> |
@@ -1223,24 +1227,26 @@ void OpieFtp::serverComboSelected(int index) | |||
1223 | int divider = remoteServerStr.length() - remoteServerStr.find(":",0,TRUE); | 1227 | int divider = remoteServerStr.length() - remoteServerStr.find(":",0,TRUE); |
1224 | port = remoteServerStr.right( divider - 1); | 1228 | port = remoteServerStr.right( divider - 1); |
1225 | bool ok; | 1229 | bool ok; |
1226 | int portInt = port.toInt(&ok,10); | 1230 | int portInt = port.toInt(&ok,10); |
1227 | if( portInt == 0) portInt = 21; | 1231 | if( portInt == 0) portInt = 21; |
1228 | 1232 | ||
1229 | PortSpinBox->setValue( portInt); | 1233 | PortSpinBox->setValue( portInt); |
1230 | 1234 | ||
1231 | remotePath->setText(cfg.readEntry("RemotePath", "/")); | 1235 | remotePath->setText(cfg.readEntry("RemotePath", "/")); |
1232 | 1236 | ||
1233 | username = cfg.readEntry("Username", "anonymous"); | 1237 | username = cfg.readEntry("Username", "anonymous"); |
1234 | UsernameComboBox->lineEdit()->setText(username); | 1238 | UsernameComboBox->lineEdit()->setText(username); |
1239 | |||
1240 | // qDebug("Password is "+cfg.readEntryCrypt(username, "me@opieftp.org")); | ||
1235 | PasswordEdit->setText(cfg.readEntryCrypt(username, "me@opieftp.org")); | 1241 | PasswordEdit->setText(cfg.readEntryCrypt(username, "me@opieftp.org")); |
1236 | 1242 | ||
1237 | cfg.setGroup("Server"); | 1243 | cfg.setGroup("Server"); |
1238 | temp.sprintf("%d",currentServerConfig); | 1244 | temp.sprintf("%d",currentServerConfig); |
1239 | cfg.writeEntry("currentServer", temp); | 1245 | cfg.writeEntry("currentServer", temp); |
1240 | update(); | 1246 | update(); |
1241 | } | 1247 | } |
1242 | // UsernameComboBox->lineEdit()->setText("root"); | 1248 | // UsernameComboBox->lineEdit()->setText("root"); |
1243 | // PasswordEdit->setText( tr( "" ) ); | 1249 | // PasswordEdit->setText( tr( "" ) ); |
1244 | // ServerComboBox->lineEdit()->setText( tr( "192.168.129.201" ) ); | 1250 | // ServerComboBox->lineEdit()->setText( tr( "192.168.129.201" ) ); |
1245 | // remotePath->setText( currentRemoteDir = "/home/llornkcor/"); | 1251 | // remotePath->setText( currentRemoteDir = "/home/llornkcor/"); |
1246 | // PortSpinBox->setValue( 4242); | 1252 | // PortSpinBox->setValue( 4242); |