KNewStuff

kmoretoolspresets.h
1 /*
2  SPDX-FileCopyrightText: 2015 Gregor Mi <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef KMORETOOLSPRESETS_H
8 #define KMORETOOLSPRESETS_H
9 
10 #include <QString>
11 #include <QUrl>
12 
13 #include "knewstuff_export.h"
14 
15 class KMoreTools;
16 class KMoreToolsService;
17 
38 class KNEWSTUFF_EXPORT KMoreToolsPresets
39 {
40 public:
107  static QList<KMoreToolsService*> registerServicesByGroupingNames(
108  KMoreTools* kmt, const QStringList& groupingNames);
109 
129  static KMoreToolsService* registerServiceByDesktopEntryName(
130  KMoreTools* kmt, const QString& desktopEntryName);
131 
132  // todo later: add another method registerServiceByDesktopEntryNames (plural) that handles
133  // a list of desktopEntryNames.
134 };
135 
136 #endif
A service described in a .desktop file (kmt-desktopfile) which will be called "registered service"...
Definition: kmoretools.h:361
Provides static methods to make use of desktop files provided by KMoreTools.
Helps to create user-configurable menus with tools which are potentially not yet installed.
Definition: kmoretools.h:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:43:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.