File indexing completed on 2024-04-21 04:34:27

0001 /*****************************************************************************
0002  * Copyright (c) 2007 Piyush verma <piyush.verma@gmail.com>                  *
0003  * Copyright (c) 2009, 2010 Niko Sams <niko.sams@gmail.com>                  *
0004  * Copyright (c) 2010 Milian Wolff <mail@milianw.de>                         *
0005  *                                                                           *
0006  * This program is free software; you can redistribute it and/or modify      *
0007  * it under the terms of the GNU General Public License as published by      *
0008  * the Free Software Foundation; either version 2 of the License, or         *
0009  * (at your option) any later version.                                       *
0010  *                                                                           *
0011  * This program is distributed in the hope that it will be useful,           *
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
0014  * GNU General Public License for more details.                              *
0015  *                                                                           *
0016  * You should have received a copy of the GNU General Public License         *
0017  * along with this program.  If not, see <http://www.gnu.org/licenses/>.     *
0018  *****************************************************************************/
0019 
0020 #ifndef CSS_PARSEJOB_H
0021 #define CSS_PARSEJOB_H
0022 
0023 #include <language/backgroundparser/parsejob.h>
0024 
0025 #include <QStringList>
0026 
0027 #include <ktexteditor/range.h>
0028 
0029 namespace Css
0030 {
0031 struct AstNode;
0032 class LanguageSupport;
0033 class EditorIntegrator;
0034 
0035 class ParseJob : public KDevelop::ParseJob
0036 {
0037     Q_OBJECT
0038 
0039 public:
0040     explicit ParseJob(const KDevelop::IndexedString &url, KDevelop::ILanguageSupport* languageSupport);
0041     ~ParseJob() override;
0042 
0043 protected:
0044     void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override;
0045 };
0046 
0047 }
0048 
0049 #endif
0050 // kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on; auto-insert-doxygen on