Akonadi

akonadicontrol/agenttype.h
1 /*
2  SPDX-FileCopyrightText: 2007-2008 Volker Krause <[email protected]>
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 
14 class AgentManager;
15 class QSettings;
16 
17 class AgentType
18 {
19 public:
20  enum LaunchMethod {
21  Process, /// Standalone executable
22  Server, /// Agent plugin launched in AgentManager
23  Launcher /// Agent plugin launched in own process
24  };
25 
26 public:
27  AgentType();
28  Q_REQUIRED_RESULT 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;
37  QString exec;
38  QVariantMap custom;
39  uint instanceCounter = 0;
40  LaunchMethod launchMethod = Process;
41 
42  static const QLatin1String CapabilityUnique;
43  static const QLatin1String CapabilityResource;
44  static const QLatin1String CapabilityAutostart;
45  static const QLatin1String CapabilityPreprocessor;
46  static const QLatin1String CapabilitySearch;
47 };
48 
The agent manager has knowledge about all available agents (it scans for .desktop files in the agent ...
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
Capabilities capabilities()
QString name(StandardShortcut id)
const QList< QKeySequence > & save()
QStringList mimeTypes(Mode mode=Writing)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.