Commit graph

97 commits

Author SHA1 Message Date
Kai Uwe Broulik
dbe076acf5 Build with QT_NO_CONTEXTLESS_CONNECT
Disables the 3-argument connect without a context object. Not providing a context
object can cause issues when the sending object is still alive but the receiver
or an object refered to in the lambda is not.
2026-03-28 11:17:58 +00:00
Kunda Ki
7898cd7837 Cleanup: Fix various typos
Fixes several user-facing and non-user-facing typos.

Found via:  
`codespell -S "*.actions,*.appdata.xml,*.desktop,*.json,*.kksrc,*.metainfo.xml,*.notifyrc,*.po,./po,*.xml" -L claus,doubleclick,filetest,flate,mis,nam,previousy,propt,substract,virtualy`
2025-09-22 15:21:10 +00:00
Nate Graham
21d651997e Improve accuracy of OpenDesktop account provider's description 2025-01-15 16:21:47 +00:00
Laurent Montel
edc07e1374 Add missing include moc 2024-12-11 06:20:21 +00:00
Aleix Pol Gonzalez
7538cf5f8a Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Aleix Pol Gonzalez <aleixpol@kde.org>
2024-04-29 13:38:44 +00:00
Harald Sitter
fc0d0c8d75 attica: implement interface v2 and v3
v3 in particular allows us to get rid of the abysmal nested eventloop
that causes crashes in discover
2024-04-29 13:38:44 +00:00
Mike Lothian
4f7e3e922a Adapt to KConfig API change 2023-12-21 13:55:26 +00:00
Nicolas Fella
3b7192daf6 Adapt to KAccounts API change 2023-12-10 22:27:57 +01:00
Nicolas Fella
9711ea7f54 Reenable and fix attica KAccounts integration 2023-12-04 14:58:55 +01:00
Nicolas Fella
9d53e76728 Add missing include 2023-04-18 15:28:22 +02:00
Dāvis Mosāns
400ed3dde7 Rename Qt5/KF5 to Qt6/KF6 2023-02-28 22:13:36 +01:00
Fabian Vogt
63788e6520 attica-kde: Use the correct location for determining the max cache size
QStorageInfo returns -1 there if the cache directory didn't exist yet.
QNetworkDiskCache happily accepts 0 as max size and eagerly deletes
everything it can on every occasion, triggering cache corruption.

BUG: 464517
2023-01-22 09:22:21 +00:00
Xaver Hugl
d3c40a0582 port all headers to pragma once 2022-12-17 14:18:42 +00:00
Dan Leinir Turthra Jensen
6e8626f2d6 Fix build 2022-02-09 19:17:16 +00:00
Dan Leinir Turthra Jensen
b85cf34298 Only trust the expiration date if it's less than 24 hours 2022-02-09 09:23:50 +00:00
Dan Leinir Turthra Jensen
8e164050c5 Fix missing variable name 2022-02-08 11:21:17 +00:00
Dan Leinir Turthra Jensen
798027fd17 Add a granular cache preference thing to attica-kde
This allows us to explicitly add cache preference to specific calls.
Usually attica calls want to be very current, but in some cases we can
assume things aren't going to change often (such as the categories
call), and we can just use the cached version for those calls.
2022-02-08 11:16:16 +00:00
Aleix Pol
f8f3be66ae attica-kde: Allow it to use HTTP2
If the server supports it, and api.kde-look.org seems to.
2022-02-08 00:58:13 +01:00
Aleix Pol
128bab405f attica-kde: ensure we do the const overload 2022-02-07 23:55:49 +01:00
ivan tkachenko
65f244c6fc
Port away from Q_FOREACH & foreach
GIT_SILENT
2021-11-23 01:59:28 +03:00
Alexander Lohnau
8636df1812 Load kaccounts KCM using KPluginMetaData
The other overload is deprecated, json metadata is in the KCM since 2019 embedded
2021-11-22 09:38:24 +01:00
Alexander Lohnau
e1d89da146 Convert licsense headers to SPDX 2021-06-25 10:36:06 +00:00
Ahmad Samir
0b6588c443 General code clean-up
- Less implicit cast from ASCII
- Use Q_SIGNALS/Q_SLOTS in header files
- Remove a redundant cmake var
2021-04-05 14:05:37 +02:00
Nicolas Fella
6b793789df Use versionless Qt cmake target
This makes it easier to build against both Qt5 and Qt6

GIT_SILENT
2021-01-29 13:58:35 +01:00
Alexander Lohnau
bd3c925dc9 Run clang-format
If you want git blame to ignore formatting revisions run:
git config blame.ignoreRevsFile .git-blame-ignore-revs
2021-01-21 07:15:46 +00:00
Nicolas Fella
6b37fe9dbb Use CamelCase include 2020-11-21 00:33:17 +01:00
Nicolas Fella
7e85cf721b Remove unused includes 2020-11-21 00:33:17 +01:00
Dan Leinir Turthra Jensen
ecca07972f Rejig a few bits of debug output to be less spammy 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
a88529e3a6 Complain (in logs) about old plugins used for logins
This should allow us to be a little more exact when this rolls out
and we invariably end up with people attempting to use old logins.
2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
ae09a2f254 Use KMultiDialog for showing the KAccounts control module 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
2757199cef Add a description to the opendesktop-rating service 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
05719cf878 Switch to using the kaccounts cmake commands 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
5ead0ca275 Fetch the access token (actually ID token) from AccountsManager via KAccounts 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
3d83ef1b97 The opendesktop provider file is... not google 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
8a17cd2447 Minor cleanup for attica_kde cmakelists 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
58f278e02b Actually make the service locator work (need to query for the right thing) 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
499687b492 Add functionality to open the accounts kcm on saveCredentials calls
While this usurps the method and makes it do things that are perhaps
not expected, we cannot simply save credentials directly. Furthermore,
the only place this call is currently being used is the defunct
knewstuff::upload dialog. So, to avoid API changes, we usurp the method
instead.
2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
c7283f61c5 Actually install the service and provider files 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
9d788f8e65 Add the provider and service files (these use temp client data for now) 2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
1c554e23b2 [WIP] Switch the Attica KDE plugin to use KAccounts
Summary:
Don't require KWallet, and require KAccounts and libaccounts-Qt5

Link and use includes from new requirements

Remove KWallet bits, and use KAccounts/libaccounts-qt instead

This removes the custom KWallet integration in favour of an approach
based on the more generic KAccounts framework. It is a work in progress
which currently does not allow for creating new accounts (which would
be done through saveCredentials), but which does load and use the data
from any accounts which already exist.

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25961
2020-08-07 11:34:34 +01:00
Dan Leinir Turthra Jensen
0709028349 Link and use includes from new requirements 2020-08-07 11:34:34 +01:00
Laurent Montel
075a41c1ce USe camelcase (scripted) 2020-07-13 23:22:08 +02:00
Kai Uwe Broulik
65a340f2b0 Merge branch 'Plasma/5.12' into Plasma/5.18 2020-01-30 11:02:39 +01:00
Kai Uwe Broulik
fc668c5574 Port plasma-desktop to autoconfig.kde.org
As per Ben's request in https://mail.kde.org/pipermail/kde-frameworks-devel/2020-January/102543.html

Differential Revision: https://phabricator.kde.org/D27020
2020-01-30 10:58:07 +01:00
Yuri Chornoivan
212dbeaafe Use URL with transport encryption 2019-11-25 19:05:41 +02:00
Volker Krause
fc6cdb1615 Change URLs to https where possible
Summary: Also, update a few outdated or redirecting URLs.

Reviewers: yurchor

Reviewed By: yurchor

Subscribers: yurchor, plasma-devel, kde-doc-english

Tags: #plasma, #documentation

Differential Revision: https://phabricator.kde.org/D19995
2019-03-23 16:43:27 +01:00
Yuri Chornoivan
5d6a21485b Fix minor typos 2018-11-10 21:27:00 +02:00
Yuri Chornoivan
89ff12d266 Fix minor EBN issues 2018-08-27 20:41:31 +03:00
Laurent Montel
78f4cc6f6a Use QStringLiteral 2018-07-24 08:09:28 +02:00
Friedrich W. H. Kossebau
2fc98d5eb8 Use non-deprecated KDEInstallDirs variables 2018-02-15 02:51:40 +01:00