summaryrefslogtreecommitdiff
path: root/noncore/net/opieftp/opieftp.cpp
authorllornkcor <llornkcor>2002-04-22 03:16:47 (UTC)
committer llornkcor <llornkcor>2002-04-22 03:16:47 (UTC)
commit0a4f886e48153d6f423cc8ad8b31ce491128d423 (patch) (unidiff)
tree6cbbf373919a5e0be34a2b541a7e7eedd27eea58 /noncore/net/opieftp/opieftp.cpp
parent6417ac419f6aa07eec671f3821766c0c0cf958f0 (diff)
downloadopie-0a4f886e48153d6f423cc8ad8b31ce491128d423.zip
opie-0a4f886e48153d6f423cc8ad8b31ce491128d423.tar.gz
opie-0a4f886e48153d6f423cc8ad8b31ce491128d423.tar.bz2
added extern C for #include ftplib.h
Diffstat (limited to 'noncore/net/opieftp/opieftp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp6
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
@@ -9,13 +9,17 @@
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
16extern "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>
@@ -1229,12 +1233,14 @@ void OpieFtp::serverComboSelected(int index)
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();