Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/duchain/documentfinderhelpers.h
Show All 21 Lines | |||||
22 | #ifndef DOCUMENTFINDERHELPERS_H | 22 | #ifndef DOCUMENTFINDERHELPERS_H | ||
23 | #define DOCUMENTFINDERHELPERS_H | 23 | #define DOCUMENTFINDERHELPERS_H | ||
24 | 24 | | |||
25 | #include <QStringList> | 25 | #include <QStringList> | ||
26 | #include <QVector> | 26 | #include <QVector> | ||
27 | 27 | | |||
28 | #include <QUrl> | 28 | #include <QUrl> | ||
29 | 29 | | |||
30 | #include "clangprivateexport.h" | ||||
31 | | ||||
30 | /// Helper class for handling @see IBuddyDocumentFinder features. | 32 | /// Helper class for handling @see IBuddyDocumentFinder features. | ||
31 | namespace DocumentFinderHelpers | 33 | namespace DocumentFinderHelpers | ||
32 | { | 34 | { | ||
33 | /// @return All supported mime types | 35 | /// @return All supported mime types | ||
34 | QStringList mimeTypesList(); | 36 | KDEVCLANGPRIVATE_EXPORT QStringList mimeTypesList(); | ||
35 | 37 | | |||
36 | /** | 38 | /** | ||
37 | * Considers the URLs as buddy documents if the base path (without extension) | 39 | * Considers the URLs as buddy documents if the base path (without extension) | ||
38 | * is the same, and one extension starts with h/H and the other one with c/C. | 40 | * is the same, and one extension starts with h/H and the other one with c/C. | ||
39 | * For example, foo.hpp and foo.C are buddies. | 41 | * For example, foo.hpp and foo.C are buddies. | ||
40 | */ | 42 | */ | ||
41 | bool areBuddies(const QUrl &url1, const QUrl& url2); | 43 | KDEVCLANGPRIVATE_EXPORT bool areBuddies(const QUrl &url1, const QUrl& url2); | ||
42 | 44 | | |||
43 | /// @see KDevelop::IBuddyDocumentFinder | 45 | /// @see KDevelop::IBuddyDocumentFinder | ||
44 | bool buddyOrder(const QUrl &url1, const QUrl& url2); | 46 | KDEVCLANGPRIVATE_EXPORT bool buddyOrder(const QUrl &url1, const QUrl& url2); | ||
45 | 47 | | |||
46 | /// @see KDevelop::IBuddyDocumentFinder | 48 | /// @see KDevelop::IBuddyDocumentFinder | ||
47 | QVector< QUrl > getPotentialBuddies(const QUrl &url, bool checkDUChain = true); | 49 | KDEVCLANGPRIVATE_EXPORT QVector< QUrl > getPotentialBuddies(const QUrl &url, bool checkDUChain = true); | ||
48 | }; | 50 | }; | ||
49 | 51 | | |||
50 | #endif // DOCUMENTFINDERHELPERS_H | 52 | #endif // DOCUMENTFINDERHELPERS_H |