Sailfish OS
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS
Select Page
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS

Sailfish Accounts

API Documentation
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon

Contents

  • Properties
  • Methods
  • Detailed Description

AccountManager QML Type

Provides access to providers, services and accounts. More...

Import Statement: import .
  • List of all members, including inherited members

Properties

  • accountIdentifiers : QList<int>
  • providerNames : QStringList
  • serviceNames : QStringList
  • serviceTypeNames : QStringList

Methods

  • Account *account(int accountId)
  • bool createAccount(const QString &providerName)
  • Account *credentialsNeedUpdate(int accountId)
  • Provider *provider(const QString &providerName)
  • QList<int> providerAccountIdentifiers(const QString &providerName)
  • ServiceType *serviceType(const QString &serviceTypeName)

Detailed Description

The AccountManager type is intended for use by privileged applications and account provider plugins. The functionality it provides is not useful for client applications who wish to use an account to access a service (such clients should use the account model instead).

The AccountManager provides information about existing providers, services, and accounts. It also allows new accounts to be created.

Property Documentation

accountIdentifiers : QList<int>

Holds the identifiers of all accounts which exist in the system accounts database.


providerNames : QStringList

Holds the names of all providers which exist in the system accounts database, which match the service type filter.


serviceNames : QStringList

Holds the names of all services which exist in the system accounts database, which match the service type filter.


serviceTypeNames : QStringList

Holds the service type names which may be used as filter values.

The values are derived from examination of the service type of all services which exist in the system accounts database at the point in time when the AccountManager instance was created.


Method Documentation

Account *account(int accountId)

Returns the account identified by the given accountIdentifier. The AccountManager has ownership of the Account adapter, and will delete it automatically on destruction.

Returns null if no such account exists.


bool createAccount(const QString &providerName)

Creates a new, disabled Account with the provider identified by the given providerName and stores it to the database. The operation is asynchronous and on success, the accountCreated() signal will be emitted. On failure, the accountCreationFailed() signal will be emitted.

Returns true if the account creation process is triggered, or false if the manager is currently busy creating another account.


Account *credentialsNeedUpdate(int accountId)

Returns true if account's global service has CredentialsNeedUpadate flag and it is set.


Provider *provider(const QString &providerName)

Returns the provider identified by the given providerName. The AccountManager has ownership of the Provider adapter, and will delete it automatically on destruction.


QList<int> providerAccountIdentifiers(const QString &providerName)

Returns the list of ids of accounts provided by the provider with the given providerName (or all providers, if the given providerName is empty).


ServiceType *serviceType(const QString &serviceTypeName)

Returns the service type identified by the given serviceTypeName. The AccountManager owns the returned instance and will delete it on destruction.


  • Legal
  • Contact Us
  • Jollyboys Ltd © 2024

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn