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

API Documentation

Documentation for developing SailfishOS applications
  • 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

  • Constants
  • D-Bus errors

<sailfishusermanagerinterface.h> - Sailfish User Manager interface definitions

Contains defines, structs and serializing operators to use with SailfishUserManager D-Bus interface. More...

Classes

class SailfishUserManagerEntry

Functions

QDBusArgument &operator<<(QDBusArgument &argument, const SailfishUserManagerEntry &user)
const QDBusArgument &operator>>(const QDBusArgument &argument, SailfishUserManagerEntry &user)

Constants

This header has defines for several constants.

ConstantDescription
SAILFISH_USERMANAGER_DBUS_INTERFACED-Bus interface of SailfishUserManager.
SAILFISH_USERMANAGER_DBUS_OBJECT_PATHD-Bus path of SailfishUserManager.
SAILFISH_USERMANAGER_GUEST_HOMEHome directory path of guest user.
SAILFISH_USERMANAGER_GUEST_UIDUID of guest user.
SAILFISH_USERMANAGER_MAX_USERSMaximum number of users that can be created. Does not include guest user but includes device owner.

D-Bus errors

This header has defines for D-Bus error names that SailfishUserManager may return over D-Bus. Note that this does not include all possible errors that can be returned as they may be generic errors from QDBusError::ErrorType as well.

ConstantDescription
SailfishUserManagerErrorBusyThe service may not perform the action right now. You may try again later. This may happen if the action is already taking place or if user is currently for example making a call.
SailfishUserManagerErrorHomeCreateFailedThe service could not create home directory for the user. This may happen if the directory path is already reserved.
SailfishUserManagerErrorMaxUsersReachedMaximum user count has been already reached and no more users can be created. You may create another user after removing an already existing user.
SailfishUserManagerErrorUserAddFailedCreating user failed for some reason.
SailfishUserManagerErrorUserModifyFailedUser could not be added to user groups or changing user's name failed.
SailfishUserManagerErrorUserRemoveFailedRemoving user failed for some reason.
SailfishUserManagerErrorGetUidFailedCould not determine active user on seat0.
SailfishUserManagerErrorGetUuidFailedCould not read UUID for the user.
SailfishUserManagerErrorUserNotFoundUser with given UID does not exist.
SailfishUserManagerErrorAddToGroupFailedUser could not be added to one or more supplementary groups.
SailfishUserManagerErrorRemoveFromGroupFailedUser could not be removed from one or more supplementary groups.

Classes

class SailfishUserManagerEntry

The SailfishUserManagerEntry struct describes a user on device.

This struct is used by SailfishUserManager::users to send username, real name and UID (User IDentifier) over D-Bus.

Function Documentation

QDBusArgument &operator<<(QDBusArgument &argument, const SailfishUserManagerEntry &user)

Operator to serialize user into argument.

Returns reference to argument.

const QDBusArgument &operator>>(const QDBusArgument &argument, SailfishUserManagerEntry &user)

Operator to deserialize user from argument.

Returns reference to argument.

  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn