File indexing completed on 2024-05-12 04:38:07
0001 /* 0002 SPDX-FileCopyrightText: 2012 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_ICONTEXTBROWSER_H 0008 #define KDEVPLATFORM_ICONTEXTBROWSER_H 0009 0010 #include <language/languageexport.h> 0011 0012 #include <language/duchain/duchainpointer.h> 0013 0014 #include <QObject> 0015 0016 namespace KDevelop { 0017 /** 0018 * @brief Interface to the context browser plugin. 0019 */ 0020 class KDEVPLATFORMLANGUAGE_EXPORT IContextBrowser 0021 { 0022 public: 0023 virtual ~IContextBrowser(); 0024 0025 /** 0026 * Show a widget with the uses of @p declaration. 0027 */ 0028 virtual void showUses(const DeclarationPointer& declaration) = 0; 0029 }; 0030 } 0031 0032 Q_DECLARE_INTERFACE(KDevelop::IContextBrowser, "org.kdevelop.IContextBrowser") 0033 0034 #endif // KDEVPLATFORM_ICONTEXTBROWSER_H