File indexing completed on 2024-04-28 05:42:14
0001 // clang-format off 0002 /** 0003 * KDiff3 - Text Diff And Merge Tool 0004 * 0005 * SPDX-FileCopyrightText: 2021 Michael Reeves <reeves.87@gmail.com> 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 * 0008 */ 0009 // clang-format on 0010 0011 #ifndef FILEACCESSJOBHANDLERMOC_H 0012 #define FILEACCESSJOBHANDLERMOC_H 0013 0014 #include "../FileAccessJobHandler.h" 0015 0016 class FileAccessJobHandlerMoc: public FileAccessJobHandler 0017 { 0018 public: 0019 using FileAccessJobHandler::FileAccessJobHandler; 0020 0021 FileAccessJobHandler* copy(FileAccess* inFileAccess) override { return new FileAccessJobHandlerMoc(inFileAccess);} 0022 bool get(void* /*pDestBuffer*/, long /*maxLength*/) override {return true;}; 0023 bool put(const void* /*pSrcBuffer*/, long /*maxLength*/, bool /*bOverwrite*/, bool /*bResume*/ = false, qint32 /*permissions*/ = -1) override {return true;}; 0024 bool stat(bool /*bWantToWrite*/ = false) override {return true;}; 0025 bool copyFile(const QString& /*dest*/) override {return true;}; 0026 bool rename(const FileAccess& /*dest*/) override {return true;}; 0027 bool listDir(DirectoryList* /*pDirList*/, bool /*bRecursive*/, bool /*bFindHidden*/, 0028 const QString& /*filePattern*/, const QString& /*fileAntiPattern*/, 0029 const QString& /*dirAntiPattern*/, bool /*bFollowDirLinks*/, IgnoreList& /*ignoreList*/) override {return true;}; 0030 bool removeFile(const QUrl& /*fileName*/) override {return true;}; 0031 bool symLink(const QUrl& /*linkTarget*/, const QUrl& /*linkLocation*/) override { return true;}; 0032 0033 protected: 0034 bool mkDirImp(const QString& /*dirName*/) override {return true;}; 0035 bool rmDirImp(const QString& /*dirName*/) override {return true;}; 0036 }; 0037 0038 #endif /* FILEACCESSJOBHANDLERMOC_H */