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
|
# KAccounts Integration
Integration library and QML module for Accounts-SSO and SignOn-SSO
# Introduction
KAccounts Integration provides a way to share accounts data such as login tokens and general
user information (like usernames and such) between various applications.
The KAccounts library is a KDE Frameworks style abstraction layer on top of the Accounts-SSO
and SignOnD libraries, which uses a combination of models and jobs to expose the functionality
of those.
The kaccounts QML plugin exposes that functionality directly to Qt Quick based applications,
and using the classes only requires importing the module like so:
```
import org.kde.kaccounts 1.2 as KAccounts
```
The main functionality in the library can be accessed through the various classes below, and
the accounts manager can be accessed directly through ```KAccounts::accountsManager()```. The
other central classes are:
## Models
* AccountsModel
* ServicesModel
* ProvidersModel
## Jobs
* AccountServiceToggleJob
* ChangeAccountDisplayNameJob
* CreateAccountJob
* RemoveAccountJob
# KDE Control Module
The Online Accounts KCM is the main user-visible point for KAccounts, and can be accessed
either through System Settings, or directly from any system menu which allows launching of
KCMs directly (including KRunner). It is built using the Qt Quick module mentioned above,
and uses Kirigami as its base.
# Provider and Service files
If you plan on creating new providers and services, you will need to register those with
the accounts manager. Two cmake macros are provided to assist you in the creation and
installation of these files, and further assists in translation integration for them:
* kaccounts_add_provider
* kaccounts_add_service
|