KNewStuff

entrywrapper.h
1 /*
2  SPDX-FileCopyrightText: 2020 Dan Leinir Turthra Jensen <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef ENTRYWRAPPER_H
8 #define ENTRYWRAPPER_H
9 
10 #include <QObject>
11 
12 #include "entryinternal.h"
13 #include "knewstuffcore_export.h"
14 
15 namespace KNSCore
16 {
17 // This is for passing an entryinternal through qml, particularly useful for lists
18 // such as changedEntries. This is supposed to closely approximate the current
19 // codepaths used in client code (which expects a list of entries), but for KF6
20 // we will want to turn this into a model instead, probably with some handy
21 // iteration assistance for use in places which would previously use the lists.
23 
35 class KNEWSTUFFCORE_EXPORT EntryWrapper : public QObject
36 {
37  Q_OBJECT
38 public:
39  explicit EntryWrapper(const EntryInternal& entry, QObject *parent = nullptr);
40  virtual ~EntryWrapper();
41 
46  EntryInternal entry() const;
47 private:
48  class Private;
49  Private *d;
50 };
51 }
52 Q_DECLARE_METATYPE(KNSCore::EntryWrapper*)
53 
54 #endif//ENTRYWRAPPER_H
Contains the core functionality for handling interaction with NewStuff providers. ...
KNewStuff data entry container.
Definition: entryinternal.h:49
TODO KF6 see above (in short, make this class irrelevant so it can be removed)
Definition: entrywrapper.h:35
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.