KWallet
7#ifndef _KWALLETFREEDESKTOPPROMPT_H_
8#define _KWALLETFREEDESKTOPPROMPT_H_
10#include "kwalletfreedesktopservice.h"
12#define FDO_SECRET_SERVICE_PROMPT_PATH FDO_SECRETS_SERVICE_OBJECT "/prompt/"
16enum class PromptType {
21class KWalletFreedesktopPrompt :
public QObject,
protected FDO_DBUS_CONTEXT
25 struct CollectionProperties {
26 QString collectionLabel;
27 QDBusObjectPath objectPath;
32 KWalletFreedesktopPrompt(KWalletFreedesktopService *service, QDBusObjectPath objectPath, PromptType type, QString responseBusName);
34 KWalletFreedesktopPrompt(
const KWalletFreedesktopPrompt &) =
delete;
35 KWalletFreedesktopPrompt &operator=(
const KWalletFreedesktopPrompt &) =
delete;
37 KWalletFreedesktopPrompt(KWalletFreedesktopPrompt &&) =
delete;
38 KWalletFreedesktopPrompt &operator=(KWalletFreedesktopPrompt &&) =
delete;
40 KWalletFreedesktopService *fdoService()
const;
41 KWalletD *backend()
const;
42 QDBusObjectPath fdoObjectPath()
const;
44 void subscribeForWalletAsyncOpened();
45 void appendProperties(
const QString &label,
const QDBusObjectPath &objectPath = QDBusObjectPath(
"/"),
const QString &alias = {});
48 void walletAsyncOpened(
int transactionId,
int walletHandle);
51 KWalletFreedesktopService *m_service;
52 QDBusObjectPath m_objectPath;
54 QSet<int> m_transactionIds;
55 QList<QDBusObjectPath> m_result;
56 QList<CollectionProperties> m_propertiesList;
57 std::map<int, CollectionProperties> m_transactionIdToCollectionProperties;
58 QString m_responseBusName;
65 void Prompt(
const QString &window_id);
70 void Completed(
bool dismissed,
const QDBusVariant &result);
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:58 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.