00001 #ifndef LOCALFILESERVER_H 00002 #define LOCALFILESERVER_H 00003 00004 #include "fileserver.h" 00005 #include "arcfileelement.h" 00006 00007 class MainWindow; 00008 00009 class LocalFileServer : public FileServer 00010 { 00011 public: 00012 LocalFileServer(); 00013 00014 private: 00015 00016 public: 00017 QStringList getFileInfoLabels(); 00018 void updateFileList(QString URL); 00019 QVector<ARCFileElement> &getFileList() { return fileList; } 00020 bool goUpOneFolder(); 00021 QString getCurrentURL(); 00022 QString getCurrentPath(); 00023 bool copyFromServer(QString sourcePath, QString destinationPath); 00024 bool copyToServer(QString sourcePath, QString destinationPath); 00025 bool copyToServer(QList<QUrl> &urlList, QString destinationPath); 00026 bool deleteItem(QString path); 00027 bool makeDir(QString path); 00028 unsigned int getFilePermissions(QString path); 00029 void setFilePermissions(QString path, unsigned int permissions); 00030 bool deleteItems(QStringList& paths) {return false;} 00031 00032 00033 }; 00034 00035 #endif // LOCALFILESERVER_H