Skip to content
Commit 29e12760 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Split core from KNewStuff, add prelim QML components

Differential Revision: https://phabricator.kde.org/D3260

This commit represents work aiming to split KNewStuff3 into two
parts, KNewStuff3 and KNewStuffCore respectively.

KNewStuff3 retains all functionality (and BC) with the previously
released versions of the framework.

KNewStuffCore exposes the previously unexposed core parts, and
further reduces the dependency burden, resulting in a new Tier 2
framework.

Finally, KNewStuffQuick is a preliminary set of Qt Quick
components, based on KNewStuffCore, which expose the newstuff
functionality to Qt Quick based applications.

A number of small details have also been sorted, and bits of
documentation fixed for clarity.

Squashed commit of the following:

commit 8f0b094a
Merge: ffba1999 a591ee33
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 16 12:57:18 2016 +0000

    Merge branch 'master' into ui-business-split

commit ffba1999
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 13:48:26 2016 +0000

    Add and use the DownloadLinkInfo container to the items model

    This would be a prime spot for a bit of caching, but we need
    to ensure the cache is correctly invalidated as well when entries
    change

commit 42ee526e
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 13:47:57 2016 +0000

    Create a container for download link information

commit 0b478678
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 09:06:57 2016 +0000

    Heh, initializer lists are weird ;) Handy, though!

commit fd5f6691
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 08:46:34 2016 +0000

    Also this timer...

commit bbe3c7c9
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 08:45:43 2016 +0000

    Don't need this timer

commit a058594f
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 08:45:20 2016 +0000

    Constness

commit 5b152943
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 08:44:51 2016 +0000

    Fix a constness issue, and some documentation

commit 807de557
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 14 08:40:28 2016 +0000

    Previous statement regarding SHARED/MODULE for QML plugins was incorrect

commit 048f5a6b
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 9 15:34:29 2016 +0000

    Fix connection signature

commit d030607c
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 9 15:27:28 2016 +0000

    Fix includes to work with new project structure

commit 7ae0926c
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 9 15:26:36 2016 +0000

    Simplify KNSCore::DownloadManager a bit

commit 8aac2e12
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 9 15:25:11 2016 +0000

    Split the core project into a separate CMakeLists.txt

    This is... well, special, but it works around a really annoying
    issue where automoc will generate a file with the same filename,
    just because there's a DownloadManager in both KNS3 and KNSCore...

commit d318fd77
Author: l10n daemon script <scripty@kde.org>
Date:   Sat Nov 5 11:07:14 2016 +0000

    Upgrade ECM and KF5 version requirements for 5.28.0 release.

commit 01640b53
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 9 13:46:04 2016 +0000

    Deprecate KNS3::DownloadManager

    While it might seem to possibly make sense to extend
    KNSCore::DownloadManager, the simplistic nature of the class makes
    that an unnecessary thing, especially given that it makes better
    logical sense to simply move it. We cannot remove this one entirely,
    as it is already exported, so create a KNSCore version and mark this one
    deprecated instead. Slight code increase, but simpler end result.

commit 645c27f2
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Nov 9 13:45:30 2016 +0000

    Add a modified DownloadManager to KNSCore

commit 86d78f16
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Nov 8 14:10:35 2016 +0000

    Introduce the KNSCore namespace

commit 6e55c842
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Nov 8 11:05:16 2016 +0000

    Add some documentation to Question

commit 40c724fd
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 7 15:28:07 2016 +0000

    Remove the terrible-bad-coder hack. Don't leave workaround around ;)

commit 3c0b5e74
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 7 15:26:26 2016 +0000

    No reset(), use begin/endResetModel() like we're supposed to

commit ac6956ba
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 7 14:50:40 2016 +0000

    Unexport the jobs (and adjust test so it still links)

commit ce011cf2
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 7 11:21:24 2016 +0000

    No reason for the Qt Quick subdir to be optional here

commit 606f4c1f
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Nov 7 11:20:38 2016 +0000

    Qt Quick plugins are modules, not shared (thanks apol)

commit 4dcc722d
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Fri Nov 4 11:02:08 2016 +0000

    A bit of cleaning up of leftovers from porting

commit 80b51bc0
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Fri Nov 4 10:35:59 2016 +0000

    Move things around a bit in the knscore source listing

commit 2c2e5003
Merge: 659e7235 4d5a820c
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Fri Nov 4 10:29:08 2016 +0000

    Merge branch 'master' into ui-business-split

commit 659e7235
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Nov 3 14:30:48 2016 +0000

    Initialise the widget question listener

commit 5c6f18aa
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Nov 3 14:13:39 2016 +0000

    Use the new Question system to ask things from core

commit fda49c87
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Nov 3 14:10:53 2016 +0000

    Add a system for asking questions from inside the core

    This is terribly roundabout, but it allows us to ask questions
    inline, and forwarding them to the appropriate UI implementation.
    The current implenentation restores the old QWidget based UI to
    its previous level of functionality (pending some details), and
    later another implementation will be added to the Qt Quick plugin

commit e9e8d37b
Author: Aleix Pol <aleixpol@kde.org>
Date:   Wed Oct 26 11:44:48 2016 +0200

    Add missing since statement

    Suggested and reviewed by Albert Astals

commit 29ebc405
Author: Aleix Pol <aleixpol@kde.org>
Date:   Wed Oct 26 01:56:35 2016 +0200

    Make it possible to query installed entries

    Much like with updates. It will be useful to be able to query for
    installed packages without having to look them all up.

    REVIEW: 129257

commit a170d329
Author: Aleix Pol <aleixpol@kde.org>
Date:   Mon Oct 24 16:36:46 2016 +0200

    small clazy fixes

    ++readability
    reserve qlist size
    use const& on bigger foreach types

commit 8c69b8ba
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Mon Oct 24 15:05:41 2016 +0100

    There is no such icon size - use smallMedium for the badge

commit 9856e844
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Oct 11 17:35:02 2016 +0100

    Also don't require kmessageboxes here...

commit 8ee4c8ba
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Oct 11 16:21:00 2016 +0100

    Don't include kmessagebox in core... still a TODO

commit 8159f6ab
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Oct 11 14:35:13 2016 +0100

    Oops... if we don't require kio, don't use the includes

commit 37e708ec
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Oct 11 11:21:59 2016 +0100

    Forward item-clicked for installed files

commit 58011690
Merge: 0d1f932a f9bdb567
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Oct 11 11:21:39 2016 +0100

    Merge remote-tracking branch 'origin/master' into ui-business-split

commit 0d1f932a
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Aug 18 15:03:44 2016 +0100

    Add a bit of documentation for NewStuffList

commit ea2c76eb
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Aug 18 15:02:41 2016 +0100

    Add a cmake config file for the QtQuick plugin (because that's useful)

commit 25111e86
Author: Jeremy Whiting <jpwhiting@kde.org>
Date:   Mon Aug 15 07:48:24 2016 -0600

    No longer allow installing to generic data folder because of potential security hole.
    REVIEW:128219

commit f2911e73
Author: l10n daemon script <scripty@kde.org>
Date:   Sat Aug 6 08:37:01 2016 +0000

    Upgrade ECM and KF5 version requirements for 5.25.0 release.

commit 7dc9caaf
Author: l10n daemon script <scripty@kde.org>
Date:   Sun Jul 24 13:23:40 2016 +0000

    Qt 5.5.0 is now required, as discussed on kde-frameworks-devel

commit e7c870a4
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 14:39:28 2016 +0100

    Add a little badge for installed and updateable items in NewStuffItem

commit 260b2f6c
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 14:37:22 2016 +0100

    Forward messages from engine to NewStuffList users

commit 3a447248
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 13:29:52 2016 +0100

    More useful spinner (now with words...)

commit 7c408bfb
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 13:29:30 2016 +0100

    Forward message signals from engine to Qt Quick

commit 0f96f501
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:40:20 2016 +0100

    Add fetchMore support to the quick itemsmodel

commit 4902bd08
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:06:36 2016 +0100

    Add install/uninstall/update actions to the NewStuffItem component

    We are now able to both install and uninstall items from Qt Quick

commit a0c6df05
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:05:00 2016 +0100

    Expose the model item to the delegates (so they can do things)

commit 9207943d
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:02:20 2016 +0100

    Commentary

commit 979a112b
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:01:54 2016 +0100

    Add install/uninstall functions to ItemsModel, and a status role

commit 4019ced2
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:01:16 2016 +0100

    Actually make DownloadJob do things (using HTTPWorker)

commit ee7e9c3c
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 10:00:19 2016 +0100

    Adjust HTTPJob to adapted worker API

commit a3a129f2
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Aug 9 09:59:53 2016 +0100

    Add a DownloadJob type to HTTPWorker

commit fd55a944
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Fri Aug 5 13:54:47 2016 +0100

    Add the components to the build, and actually make the CMake modules work

commit a8c32158
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Fri Aug 5 13:52:19 2016 +0100

    Add the initial code for a set of NewStuff Qt Quick components

    This contains two types (qml friendly engine and itemsmodel wrappers),
    and two (for now Kirigami dependent) components for ease of use.
    The user is not required to use the components and can just use
    the engine and model separately.

commit 414e47c5
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Jul 21 13:21:33 2016 +0100

    Emit and handle error messages

commit 0342f68e
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Jul 21 12:53:16 2016 +0100

    Add atticahelper to core

commit 9240318e
Merge: c74f868c 0d4072be
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Jul 20 14:44:23 2016 +0100

    Merge remote-tracking branch 'origin/master' into ui-business-split

commit c74f868c
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Jul 20 14:32:10 2016 +0100

    Properly move the imageloader and itemsmodel to core, and adjust code accordingly

commit a235f3a5
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Wed Jul 20 13:23:57 2016 +0100

    Add the new debug area to all the core classes (and adjust autotest)

commit bafe2c60
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Jul 19 15:55:47 2016 +0100

    A bit of signalling

commit c582de1e
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Jul 19 15:55:13 2016 +0100

    Process and forward http jobs (using the worker)

commit ebcc1588
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Tue Jul 19 15:54:00 2016 +0100

    Add a small worker class for http (qnam based, does redirecty things)

commit 16ff1a9b
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Fri Jul 15 14:58:40 2016 +0100

    Add a little worker class to do async file copying

    Next step, http get with qnam with redirection support, wooh!

commit 2e758eaf
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Jul 14 14:43:40 2016 +0100

    Adjust tests to link with new core core

commit fb11a989
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Jul 14 14:41:26 2016 +0100

    The first series of changes to create a KNewStuffCore and a KNewStuff

    This is the very initial steps toward being able to have a KNewStuff
    which does not pull in the gigantic number of dependencies it does when
    the UI part is included (and which we don't particularly want for
    Qt Quick based applications)

commit a536458f
Author: Dan Leinir Turthra Jensen <admin@leinir.dk>
Date:   Thu Jul 14 14:39:43 2016 +0100

    Initial set of job classes to replace the KIO stuff...

    It would be good if we could work out a way of injecting KIO here,
    but we should be able to at least use this for the frankly basic
    tasks that we require.
parent a591ee33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment