00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef MYDD_H
00011 #define MYDD_H
00012
00013 #include <QtCore>
00014 #include <QtGui>
00015 #include <QtNetwork>
00016
00017 #include "mytreewidget.h"
00018
00019
00021
00027
00028
00029 class MyFtp;
00030
00031 class MyDD : public QDir
00032 {
00033 private:
00035 bool hidden;
00036
00038 QString ScanDirList;
00039
00041 QString reply;
00042
00043 public:
00045 MyTreeWidget *lvLocal;
00046
00048 QLineEdit *leDirPath;
00049
00052 MyDD (MyTreeWidget *local, QLineEdit *path = NULL);
00053
00056 bool changePath ();
00057
00060 bool changePath (const QString &LocalPath);
00061
00063 inline void refreshList ()
00064 {
00065 changePath (".");
00066 }
00067
00069 QString scanDir (const QString &LocalPath);
00070
00072 bool isFileExist (const QString &file);
00073
00075 void delSelection ();
00076
00078 void delDir (const QString &dir);
00079
00082 void renameSelection (QString newName, bool restoreExt = true);
00083
00086 void showHiddenFiles (bool show);
00087
00089 inline bool showHiddenFiles ()
00090 {
00091 return hidden;
00092 }
00093 };
00094
00095 #endif