Gravatar

gravatardownloadpixmapwidget.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "gravatar_export.h"
10#include <QWidget>
11class QLabel;
12class QLineEdit;
13class QPushButton;
14class QCheckBox;
15namespace Gravatar
16{
17class GravatarResolvUrlJob;
18
19/** Avatar download widget. */
20class GRAVATAR_EXPORT GravatarDownloadPixmapWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 explicit GravatarDownloadPixmapWidget(QWidget *parent = nullptr);
26
27 [[nodiscard]] QPixmap gravatarPixmap() const;
28
29private:
30 GRAVATAR_NO_EXPORT void slotSearchButton();
31
32 GRAVATAR_NO_EXPORT void slotTextChanged(const QString &text);
33 GRAVATAR_NO_EXPORT void slotResolvUrlFinish(Gravatar::GravatarResolvUrlJob *job);
34 QPixmap mGravatarPixmap;
35 QLabel *mResultLabel = nullptr;
36 QLineEdit *mLineEdit = nullptr;
37 QPushButton *mGetPixmapButton = nullptr;
38 QCheckBox *mUseLibravatar = nullptr;
39 QCheckBox *mFallbackGravatar = nullptr;
40};
41}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.