summaryrefslogtreecommitdiff
path: root/noncore/net/opieftp/opieftp.h
authorllornkcor <llornkcor>2002-07-20 02:35:34 (UTC)
committer llornkcor <llornkcor>2002-07-20 02:35:34 (UTC)
commit8256eec0103a50f80905e71891904a4267754559 (patch) (unidiff)
tree8dc249ea2db645d38c9ce39a6000e9ee833978b4 /noncore/net/opieftp/opieftp.h
parenta4a56e27ba0f4fd2bdbc56e20c9e7f4ccc8be535 (diff)
downloadopie-8256eec0103a50f80905e71891904a4267754559.zip
opie-8256eec0103a50f80905e71891904a4267754559.tar.gz
opie-8256eec0103a50f80905e71891904a4267754559.tar.bz2
fixes and changes.. _should_ remember servers. Still needs work
Diffstat (limited to 'noncore/net/opieftp/opieftp.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/noncore/net/opieftp/opieftp.h b/noncore/net/opieftp/opieftp.h
index ad36b1d..2aa691a 100644
--- a/noncore/net/opieftp/opieftp.h
+++ b/noncore/net/opieftp/opieftp.h
@@ -21,59 +21,64 @@
21 21
22class QVBoxLayout; 22class QVBoxLayout;
23class QHBoxLayout; 23class QHBoxLayout;
24class QGridLayout; 24class QGridLayout;
25class QComboBox; 25class QComboBox;
26class QListView; 26class QListView;
27class QListviewItem; 27class QListViewItem;
28class QLabel; 28class QLabel;
29class QProgressBar; 29class QProgressBar;
30class QSpinBox; 30class QSpinBox;
31class QTabWidget; 31class QTabWidget;
32class QWidget; 32class QWidget;
33class QPEToolBar; 33class QPEToolBar;
34class QPEMenuBar; 34class QPEMenuBar;
35class QPopupMenu; 35class QPopupMenu;
36class QFile; 36class QFile;
37class QListViewItem;
38class QLineEdit; 37class QLineEdit;
39class QPushButton; 38class QPushButton;
40class QToolButton; 39class QToolButton;
41class QStringList; 40class QStringList;
41class QListBox;
42 42
43class OpieFtp : public QMainWindow 43class OpieFtp : public QMainWindow
44{ 44{
45 Q_OBJECT 45 Q_OBJECT
46 46
47public: 47public:
48 OpieFtp( ); 48 OpieFtp( );
49 ~OpieFtp(); 49 ~OpieFtp();
50 50
51 QTabWidget *TabWidget; 51 QTabWidget *TabWidget;
52 QWidget *tab, *tab_2, *tab_3; 52 QWidget *tab, *tab_2, *tab_3;
53 QListView *Local_View, *Remote_View; 53 QListView *Local_View, *Remote_View;
54 QListBox *serverListView;
54 55
55 QComboBox *UsernameComboBox, *ServerComboBox, *currentPathCombo; 56 QComboBox *UsernameComboBox, *ServerComboBox, *currentPathCombo;
56 QLineEdit *PasswordEdit, *remotePath; 57 QLineEdit *PasswordEdit, *remotePath;
57 QLabel *TextLabel2, *TextLabel1, *TextLabel3, *TextLabel4;; 58 QLabel *TextLabel2, *TextLabel1, *TextLabel3, *TextLabel4;;
58 QSpinBox* PortSpinBox; 59 QSpinBox* PortSpinBox;
59 QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu, *aboutMenu; 60 QPopupMenu *connectionMenu, *localMenu, *remoteMenu, *tabMenu, *aboutMenu;
60 QDir currentDir; 61 QDir currentDir;
61 QString currentRemoteDir; 62 QString currentRemoteDir;
62 QString filterStr; 63 QString filterStr;
63 QListViewItem * item; 64 QListViewItem * item;
64 QPushButton *connectServerBtn;// 65 QPushButton *connectServerBtn, *newServerButton;//
65 QToolButton *cdUpButton, *homeButton, *docButton; 66 QToolButton *cdUpButton, *homeButton, *docButton;
66 bool b; 67 bool b;
67 int currentServerConfig; 68 int currentServerConfig;
68protected slots: 69protected slots:
69 void upDir(); 70 void upDir();
70 void homeButtonPushed(); 71 void homeButtonPushed();
71 void docButtonPushed(); 72 void docButtonPushed();
72 void doAbout(); 73 void doAbout();
74
73 void serverComboEdited(const QString & ); 75 void serverComboEdited(const QString & );
76 void UsernameComboBoxEdited(const QString & );
77 void PasswordEditEdited(const QString & );
78
74 void showLocalMenu( QListViewItem *); 79 void showLocalMenu( QListViewItem *);
75 void showRemoteMenu( QListViewItem *); 80 void showRemoteMenu( QListViewItem *);
76 void doLocalCd(); 81 void doLocalCd();
77 void doRemoteCd(); 82 void doRemoteCd();
78 void localUpload(); 83 void localUpload();
79 void remoteDownload(); 84 void remoteDownload();
@@ -90,31 +95,42 @@ protected slots:
90 void ListPressed( int, QListViewItem *, const QPoint&, int); 95 void ListPressed( int, QListViewItem *, const QPoint&, int);
91 void RemoteListPressed( int, QListViewItem *, const QPoint&, int); 96 void RemoteListPressed( int, QListViewItem *, const QPoint&, int);
92 void localMakDir(); 97 void localMakDir();
93 void localDelete(); 98 void localDelete();
94 void remoteMakDir(); 99 void remoteMakDir();
95 void remoteDelete(); 100 void remoteDelete();
101
96 bool remoteDirList(const QString &); 102 bool remoteDirList(const QString &);
97 bool remoteChDir(const QString &); 103 bool remoteChDir(const QString &);
104
98 void tabChanged(QWidget*); 105 void tabChanged(QWidget*);
99 void cleanUp(); 106 void cleanUp();
107
100 void remoteRename(); 108 void remoteRename();
101 void localRename(); 109 void localRename();
110
102 void currentPathComboChanged(); 111 void currentPathComboChanged();
103 void currentPathComboActivated(const QString &); 112 void currentPathComboActivated(const QString &);
104 void switchToLocalTab(); 113 void switchToLocalTab();
105 void switchToRemoteTab(); 114 void switchToRemoteTab();
106 void switchToConfigTab(); 115 void switchToConfigTab();
116
107 void fillCombos(); 117 void fillCombos();
118 void clearCombos();
108 void fillRemoteCombo(const QString&); 119 void fillRemoteCombo(const QString&);
109 void fillCombo(const QString &); 120 void fillCombo(const QString &);
110 void serverComboSelected(int); 121 void serverComboSelected(int);
111 void deleteServer(); 122 void deleteServer();
112 void connectorBtnToggled(bool); 123 void connectorBtnToggled(bool);
124 void NewServer();
125 void serverListClicked( const QString &);
126
113protected: 127protected:
128 bool fuckeduphack;
114 QStringList remoteDirPathStringList, localDirPathStringList; 129 QStringList remoteDirPathStringList, localDirPathStringList;
130 QString newServerName;
115 void nullifyCallBack(); 131 void nullifyCallBack();
116 QGridLayout* tabLayout; 132 QGridLayout* tabLayout;
117 QGridLayout* tabLayout_2; 133 QGridLayout* tabLayout_2;
118 QGridLayout* tabLayout_3; 134 QGridLayout* tabLayout_3;
119 135
120}; 136};