File: DialogHacking.txt

package info (click to toggle)
kf6-knewstuff 6.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,972 kB
  • sloc: cpp: 10,681; xml: 132; sh: 19; makefile: 7
file content (63 lines) | stat: -rw-r--r-- 1,871 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
How do providers, categories, feeds and entries correlate?
And authors on top of that?

Authors are simple: each entry is linked to one author, even if the
author is the same the objects differ. We can change this in the future,
right now there is no need to do that.
The other objects are a bit more difficult.

DXS: provider -> category -> feed/list -> entries
GHNS: provider -> feed [with categories] -> entries

Example
-------

The maintainer of an application offers extensions in the categories
"image" and "script". Since the application has a lot of users, both
kde-coolextensions.org and kde-betterextensions.org offer such extensions.
The provider.xml file would thus contain the two <provider>s. When fetching
the feed files for most popular/most downloaded/most recent, those files
need to contain entries of *all* categories! A workaround is to add virtual
providers for each category (there won't be much difference in the UI), but
ideally with frameworks such as Hotstuff the right number of items will be
inserted into the feed.
With DXS, the problem doesn't exist since DXS fetches all categories first
and then the feeds for each category. DXS also allows to retrieve all entries
of a certain category, so it is much more flexible in general.

GHNS setup:
-----------
 provider kde-coolextensions.org
  feed most-recent
   entry a [category image]
   entry b [category script]
   ...
  feed most-downloaded
  ...
 provider kde-betterextensions.org
  ...

Alternative GHNS setup:
-----------------------
 provider kde-coolextensions.org/image
  feed most-recent
   entry a [image]
   entry c [image]
   ..
  ..
 provider kde-coolextensions.org/script
  ...

DXS setup:
----------
 provider kde-coolextensions.org
  category image
   feed most-recent
    entry a [image]
    entry c [image]
    ...
   ...
  ...
 provider kde-betterextensions.org
  ...