Akonadi

akonadicontrol/agenttype.h
1/*
2 SPDX-FileCopyrightText: 2007-2008 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QHash>
10#include <QString>
11#include <QStringList>
12#include <QVariantMap>
13
14class AgentManager;
15class QSettings;
16
17class AgentType
18{
19public:
20 enum LaunchMethod {
21 Process, /// Standalone executable
22 Server, /// Agent plugin launched in AgentManager
23 Launcher /// Agent plugin launched in own process
24 };
25
26public:
27 AgentType();
28 [[nodiscard]] bool load(const QString &fileName, AgentManager *manager);
29 void save(QSettings *config) const;
30
31 QString identifier;
32 QString name;
33 QString comment;
34 QString icon;
35 QStringList mimeTypes;
36 QStringList capabilities;
37 QString exec;
38 QVariantMap custom;
39 uint instanceCounter = 0;
40 LaunchMethod launchMethod = Process;
41
42 static const QLatin1StringView CapabilityUnique;
43 static const QLatin1StringView CapabilityResource;
44 static const QLatin1StringView CapabilityAutostart;
45 static const QLatin1StringView CapabilityPreprocessor;
46 static const QLatin1StringView CapabilitySearch;
47};
The agent manager has knowledge about all available agents (it scans for .desktop files in the agent ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.