examples/network/qftp/ftpwindow.h
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    53 class QTreeWidget;
    53 class QTreeWidget;
    54 class QTreeWidgetItem;
    54 class QTreeWidgetItem;
    55 class QProgressDialog;
    55 class QProgressDialog;
    56 class QPushButton;
    56 class QPushButton;
    57 class QUrlInfo;
    57 class QUrlInfo;
       
    58 class QNetworkSession;
    58 QT_END_NAMESPACE
    59 QT_END_NAMESPACE
    59 
    60 
    60 class FtpWindow : public QDialog
    61 class FtpWindow : public QDialog
    61 {
    62 {
    62     Q_OBJECT
    63     Q_OBJECT
    76     void processItem(QTreeWidgetItem *item, int column);
    77     void processItem(QTreeWidgetItem *item, int column);
    77     void cdToParent();
    78     void cdToParent();
    78     void updateDataTransferProgress(qint64 readBytes,
    79     void updateDataTransferProgress(qint64 readBytes,
    79                                     qint64 totalBytes);
    80                                     qint64 totalBytes);
    80     void enableDownloadButton();
    81     void enableDownloadButton();
       
    82     void enableConnectButton();
    81 //![0]
    83 //![0]
    82 
    84 
    83 private:
    85 private:
    84     QLabel *ftpServerLabel;
    86     QLabel *ftpServerLabel;
    85     QLineEdit *ftpServerLineEdit;
    87     QLineEdit *ftpServerLineEdit;
    96     QHash<QString, bool> isDirectory;
    98     QHash<QString, bool> isDirectory;
    97     QString currentPath;
    99     QString currentPath;
    98     QFtp *ftp;
   100     QFtp *ftp;
    99     QFile *file;
   101     QFile *file;
   100 
   102 
   101 #ifdef Q_OS_SYMBIAN
   103     QNetworkSession *networkSession;
   102     bool bDefaultIapSet;
       
   103 #endif
       
   104 //![1]
   104 //![1]
   105 };
   105 };
   106 
   106 
   107 #endif
   107 #endif