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
41 QHash<int, Request> m_pendingRequests;
42
43 KWalletD *m_kwalletd;
44};
45
46#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 Sat Dec 21 2024 17:01:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.