File indexing completed on 2024-05-12 04:38:08
0001 /* 0002 SPDX-FileCopyrightText: 2007 David Nolden <david.nolden.kdevelop@art-master.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #ifndef KDEVPLATFORM_INCLUDEITEM_H 0008 #define KDEVPLATFORM_INCLUDEITEM_H 0009 0010 #include <QUrl> 0011 0012 #include <language/languageexport.h> 0013 0014 class QDebug; 0015 0016 namespace KDevelop { 0017 class KDEVPLATFORMLANGUAGE_EXPORT IncludeItem 0018 { 0019 public: 0020 IncludeItem(); 0021 0022 ///Constructs the url from basePath and name. 0023 QUrl url() const; 0024 0025 ///The name of this include-item, starting behind basePath. 0026 QString name; 0027 ///basePath + name = Absolute path of file 0028 QUrl basePath; 0029 ///Which path in the include-path was used to find this item? 0030 int pathNumber = 0; 0031 ///If this is true, this item represents a sub-directory. Else it represents a file. 0032 bool isDirectory = false; 0033 }; 0034 } 0035 0036 KDEVPLATFORMLANGUAGE_EXPORT QDebug operator<<(const QDebug& dbg, const KDevelop::IncludeItem& item); 0037 Q_DECLARE_TYPEINFO(KDevelop::IncludeItem, Q_MOVABLE_TYPE); 0038 0039 #endif // KDEVPLATFORM_INCLUDEITEM_H