MailTransport

gmailpasswordrequester.h
1/*
2 SPDX-FileCopyrightText: 2024 g10 Code GmbH
3 SPDX-FileContributor: Daniel Vrátil <dvratil@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "xoauthpasswordrequester.h"
11#include <accountmanager.h>
12
13namespace KGAPI2
14{
15class AccountPromise;
16}
17
18class GmailPasswordRequester : public MailTransport::XOAuthPasswordRequester
19{
21public:
22 explicit GmailPasswordRequester(MailTransport::Transport *transport, QObject *parent = nullptr);
23 ~GmailPasswordRequester() override;
24
25 void requestPassword(bool forceRefresh) override;
26
27private Q_SLOTS:
28 void onTokenRequestFinished(KGAPI2::AccountPromise *promise);
29};
Represents the settings of a specific mail transport.
Definition transport.h:33
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 Nov 22 2024 12:07:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.