Alkimia API

alknewstuffengine.h
1/*
2 SPDX-FileCopyrightText: 2024 Ralf Habacker ralf.habacker @freenet.de
3
4 This file is part of libalkimia.
5
6 SPDX-License-Identifier: LGPL-2.1-or-later
7*/
8
9#ifndef ALKNEWSTUFFENGINE_H
10#define ALKNEWSTUFFENGINE_H
11
12#include <alkimia/alk_export.h>
13#include <alkimia/alknewstuffentry.h>
14
15#include <QList>
16#include <QObject>
17#include <QStringList>
18
19/**
20 * Platform independent wrapper for the new stuff engine
21 *
22 * @author Ralf Habacker
23 */
24class ALK_EXPORT AlkNewStuffEngine : public QObject
25{
26 Q_OBJECT
27public:
28 explicit AlkNewStuffEngine(QObject *parent = nullptr);
29 /**
30 * Initialization of the new stuff engine
31 * @param configFile path to the configuration file (.knsrc)
32 * @return true - the engine was initialized
33 * @return false - the engine could not be initialized
34 */
35 bool init(const QString &configFile);
36
37 /**
38 * Start check for updates and return
39 * Update results are obtained using the updatesAvailable() signal.
40 */
41 void checkForUpdates();
42
43 AlkNewStuffEntryList installedEntries() const;
44
45 /**
46 * Reload installed entries
47 */
48 void reload();
49
51 void updatesAvailable(const AlkNewStuffEntryList &entries);
52
53private:
54 class Private;
55 Private *const d;
56};
57
58#endif // ALKNEWSTUFFENGINE_H
Platform independent wrapper for the new stuff engine.
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.