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 Crypto

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

  • Public Types
  • Properties
  • Public Functions
  • Signals
  • Detailed Description

Request Class

(Sailfish::Crypto::Request)

Base-class of specific crypto service requests. More...

Header: #include <Crypto/request.h>
Instantiated By: Request
Inherited By:

Sailfish::Crypto::CalculateDigestRequest, Sailfish::Crypto::CipherRequest, Sailfish::Crypto::DecryptRequest, Sailfish::Crypto::DeleteStoredKeyRequest, Sailfish::Crypto::EncryptRequest, Sailfish::Crypto::GenerateInitializationVectorRequest, Sailfish::Crypto::GenerateKeyRequest, Sailfish::Crypto::GenerateRandomDataRequest, Sailfish::Crypto::ImportKeyRequest, Sailfish::Crypto::ImportStoredKeyRequest, Sailfish::Crypto::LockCodeRequest, Sailfish::Crypto::PluginInfoRequest, Sailfish::Crypto::SeedRandomDataGeneratorRequest, Sailfish::Crypto::SignRequest, Sailfish::Crypto::StoredKeyIdentifiersRequest, Sailfish::Crypto::StoredKeyRequest, and Sailfish::Crypto::VerifyRequest

  • List of all members, including inherited members

Public Types

enum Status { Inactive, Active, Finished }

Properties

  • customParameters : QVariantMap
  • manager : Sailfish::Crypto::CryptoManager *
  • result : const Sailfish::Crypto::Result
  • status : const Sailfish::Crypto::Request::Status

Public Functions

Request(QObject *parent = Q_NULLPTR)
virtual ~Request()
virtual QVariantMap customParameters() const = 0
virtual Sailfish::Crypto::CryptoManager *manager() const = 0
virtual Sailfish::Crypto::Result result() const = 0
virtual void setCustomParameters(const QVariantMap &params) = 0
virtual void setManager(Sailfish::Crypto::CryptoManager *manager) = 0
virtual void startRequest() = 0
virtual Sailfish::Crypto::Request::Status status() const = 0
virtual void waitForFinished() = 0

Signals

void customParametersChanged()
void managerChanged()
void resultChanged()
void statusChanged()

Detailed Description

Base-class of specific crypto service requests.

Member Type Documentation

enum Request::Status

This enum defines the possible states of a Request object

ConstantValueDescription
Sailfish::Crypto::Request::Inactive0The Request is inactive and has not been started
Sailfish::Crypto::Request::Active1The Request is active and currently being processed
Sailfish::Crypto::Request::Finished2The Request has been completed

Property Documentation

customParameters : QVariantMap

Access functions:

virtual QVariantMap customParameters() const = 0
virtual void setCustomParameters(const QVariantMap &params) = 0

Notifier signal:

void customParametersChanged()

manager : Sailfish::Crypto::CryptoManager *

Access functions:

virtual Sailfish::Crypto::CryptoManager *manager() const = 0
virtual void setManager(Sailfish::Crypto::CryptoManager *manager) = 0

Notifier signal:

void managerChanged()

result : const Sailfish::Crypto::Result

Access functions:

virtual Sailfish::Crypto::Result result() const = 0

Notifier signal:

void resultChanged()

status : const Sailfish::Crypto::Request::Status

Access functions:

virtual Sailfish::Crypto::Request::Status status() const = 0

Notifier signal:

void statusChanged()

Member Function Documentation

Request::Request(QObject *parent = Q_NULLPTR)

Construct a new Request object with the given parent

[virtual] Request::~Request()

Destroys the Request

[pure virtual] QVariantMap Request::customParameters() const

Returns the plugin-specific custom parameters associated with the request

Note: Getter function for property customParameters.

See also setCustomParameters().

[pure virtual] Sailfish::Crypto::CryptoManager *Request::manager() const

Returns the manager through which the request interfaces to the system crypto service

Note: Getter function for property manager.

See also setManager().

[pure virtual] Sailfish::Crypto::Result Request::result() const

Returns the result of the Request

Note: this value is only valid if the status of the request is Request::Finished.

Note: Getter function for property result.

[pure virtual] void Request::setCustomParameters(const QVariantMap &params)

Sets plugin-specific custom parameters associated with the request to params

Note that in most cases, custom parameters set by the client will be ignored, unless the plugin they are requesting functionality from specifically requires a parameter to be passed via the custom parameters. Plugins must document any such requirements, in their user documentation.

Note: Setter function for property customParameters.

See also customParameters().

[pure virtual] void Request::startRequest()

[pure virtual] Sailfish::Crypto::Request::Status Request::status() const

Returns the current status of the Request

Note: Getter function for property status.

[pure virtual] void Request::waitForFinished()

  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn