diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-10-20 11:08:22 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-10-20 11:10:13 +0200 |
| commit | 3c74d908de8efc8e2578a69b528370c40bae7ca4 (patch) | |
| tree | dc1356668f748b5ef9452a1c1d97e50e0447ed03 /src/search/filenamesearchprotocol.h | |
| parent | bfdc5a44d2d8415c2f9fbe2e536de564eba6d2e4 (diff) | |
The filenamesearch ioslave has been moved to kio-extras, remove it from Dolphin.
See commit 05689c462745edbaeebcfc63d456877746805451 in kio-extras
Diffstat (limited to 'src/search/filenamesearchprotocol.h')
| -rw-r--r-- | src/search/filenamesearchprotocol.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/search/filenamesearchprotocol.h b/src/search/filenamesearchprotocol.h deleted file mode 100644 index 732aef942..000000000 --- a/src/search/filenamesearchprotocol.h +++ /dev/null @@ -1,59 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Peter Penz <[email protected]> * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - ***************************************************************************/ - -#ifndef FILENAMESEARCHPROTOCOL_H -#define FILENAMESEARCHPROTOCOL_H - -#include <kio/slavebase.h> - -class KUrl; -class QRegExp; - -/** - * @brief Lists files where the filename matches do a given query. - * - * The query is defined as part of the "search" query item of the URL. - * The directory where the searching is started is defined in the "url" query - * item. If the query item "checkContent" is set to "yes", all files with - * a text MIME type will be checked for the content. - */ -class FileNameSearchProtocol : public KIO::SlaveBase { -public: - FileNameSearchProtocol(const QByteArray& pool, const QByteArray& app); - virtual ~FileNameSearchProtocol(); - - virtual void listDir(const QUrl& url) Q_DECL_OVERRIDE; - -private: - void searchDirectory(const KUrl& directory); - - /** - * @return True, if the pattern m_searchPattern is part of - * the file \a fileName. - */ - bool contentContainsPattern(const KUrl& fileName) const; - - void cleanup(); - - bool m_checkContent; - QRegExp* m_regExp; - QSet<QString> m_iteratedDirs; -}; - -#endif |
