src/MyFtp/mydd.h

00001 /****************************************************************************
00002 ** Simplification et complétion de la classe QDir
00003 ** Créé par Anacr0x et Cocophotos :
00004 **          anacr0x@free.fr
00005 **          cocophotos@hotmail.com
00006 **
00007 ** Sous licence GPL v2 ou plus
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

Generated on Wed Jan 2 20:39:34 2008 for Scythia by  doxygen 1.5.4