KWallet

kwalletportalsecrets.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2023 Nicolas Fella <nicolas.fella@gmx.de>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KWALLETPORTALSECRETS_H
9#define KWALLETPORTALSECRETS_H
10
11#include <QDBusMessage>
12#include <QDBusObjectPath>
13#include <QDBusUnixFileDescriptor>
14#include <QObject>
15
16#include "kwalletd.h"
17
18class KWalletPortalSecrets : public QObject, protected QDBusContext
19{
21
22public:
23 KWalletPortalSecrets(KWalletD *parent);
24
25public Q_SLOTS:
26 uint
27 RetrieveSecret(const QDBusObjectPath &handle, const QString &app_id, const QDBusUnixFileDescriptor &fd, const QVariantMap &options, QVariantMap &results);
28
29private Q_SLOTS:
30 void walletOpened(int id, int handle);
31
32private:
33 struct Request {
34 QDBusMessage message;
35 int fd;
36 QString appId;
37 };
38
39 QByteArray generateSecret() const;
40 void handleRequest(const Request &request);
41
42 QHash<QString, Request> m_pendingRequests;
43 int m_handle = -1;
44
45 KWalletD *m_kwalletd;
46};
47
48#endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 10 2024 11:47:59 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.