-
Notifications
You must be signed in to change notification settings - Fork 2
/
export.h
38 lines (33 loc) · 1.53 KB
/
export.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "ConfigKeys.h" // IWYU pragma: export
#include "JetbrainsApplication.h"
#include "Project.h" // IWYU pragma: export
#include "SettingsDirectory.h" // IWYU pragma: export
namespace JetbrainsAPI
{
/**
* Get all applications with manual configuration and file watchers
* @param config Config group which has the custom mapping configuration
* By using the config module from the KRunner plugin the config group gets created using:
* @code KSharedConfig::openConfig(QStringLiteral("krunnerplugins/jetbrainsrunnerrc"))->group("Config");
*/
QList<JetbrainsApplication *> fetchApplications(const KConfigGroup &config, bool filterEmpty = true, bool fileWatchers = true);
/**
* Get the installed applications but don't use the manual mapping which can be configured in the
* KRunner settings module https://github.com/alex1701c/JetBrainsRunner
* @param filterEmpty remove apps that have no recent projects from the list
* @param fileWatchers use file watchers to reparse the recent projects when they change
*/
inline QList<JetbrainsApplication *> fetchApplications(bool filterEmpty = true, bool fileWatchers = true)
{
return fetchApplications(KConfigGroup(), filterEmpty, fileWatchers);
}
/**
* Get the JetbrainsApplications without reading the recent projects
* @param config Config group which has the custom mapping configuration
*/
QList<JetbrainsApplication *> fetchRawApplications(const KConfigGroup &config);
/**
* Overload for fetchRawApplications(const KConfigGroup &config)
*/
QList<JetbrainsApplication *> fetchRawApplications();
}