home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / network / ftpclient / ftpmainwindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-11  |  2.1 KB  |  78 lines

  1. /****************************************************************************
  2. ** $Id:  qt/ftpmainwindow.h   3.0.0   edited Jun 1 18:44 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef FTPMAINWINDOW_H
  12. #define FTPMAINWINDOW_H
  13.  
  14. #include <qmainwindow.h>
  15. #include <qurloperator.h>
  16.  
  17. class FtpView;
  18. class QSplitter;
  19. class QVBox;
  20. class QSpinBox;
  21. class QComboBox;
  22. class QLineEdit;
  23. class QNetworkOperation;
  24. class QLabel;
  25. class QProgressBar;
  26.  
  27. class FtpMainWindow : public QMainWindow
  28. {
  29.     Q_OBJECT
  30.  
  31. public:
  32.     FtpMainWindow();
  33.  
  34.     QSplitter *mainSplitter() const {
  35.     return splitter;
  36.     }
  37.  
  38. private:
  39.     void setupLeftSide();
  40.     void setupRightSide();
  41.     void setupCenterCommandBar();
  42.     void setup();
  43.  
  44. private slots:
  45.     void slotLocalDirChanged( const QString &path );
  46.     void slotLocalDirChanged( const QUrlInfo &info );
  47.     void slotRemoteDirChanged( const QString &path );
  48.     void slotRemoteDirChanged( const QUrlInfo &info );
  49.     void slotConnect();
  50.     void slotUpload();
  51.     void slotDownload();
  52.     void slotLocalStart( QNetworkOperation * );
  53.     void slotLocalFinished( QNetworkOperation * );
  54.     void slotRemoteStart( QNetworkOperation * );
  55.     void slotRemoteFinished( QNetworkOperation * );
  56.     void slotLocalDataTransferProgress( int, int, QNetworkOperation * );
  57.     void slotRemoteDataTransferProgress( int, int, QNetworkOperation * );
  58.     void slotLocalMkDir();
  59.     void slotLocalRemove();
  60.     void slotRemoteMkDir();
  61.     void slotRemoteRemove();
  62.     void slotConnectionStateChanged( int, const QString &msg );
  63.     
  64. private:
  65.     QSplitter *splitter;
  66.     QVBox *mainWidget;
  67.     FtpView *leftView, *rightView;
  68.     QComboBox *localCombo, *remoteHostCombo, *remotePathCombo, *userCombo;
  69.     QLineEdit *passLined;
  70.     QSpinBox *portSpin;
  71.     QUrlOperator localOperator, remoteOperator, oldLocal, oldRemote;
  72.     QLabel *progressLabel1, *progressLabel2;
  73.     QProgressBar *progressBar1, *progressBar2;
  74.  
  75. };
  76.  
  77. #endif
  78.