Messagelib

recipientseditorsidewidget.h
1/*
2 SPDX-FileCopyrightText: 2010 Casey Link <unnamedrambler@gmail.com>
3 SPDX-FileCopyrightText: 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4
5 Refactored from earlier code by:
6 SPDX-FileCopyrightText: 2010 Volker Krause <vkrause@kde.org>
7 SPDX-FileCopyrightText: 2004 Cornelius Schumacher <schumacher@kde.org>
8
9 SPDX-License-Identifier: LGPL-2.0-or-later
10*/
11
12#pragma once
13
14#include "recipientseditor.h"
15
16class QLabel;
17class QPushButton;
18
19namespace MessageComposer
20{
21class KWindowPositioner;
22
23class RecipientsPicker;
24
25class RecipientsEditorSideWidget : public QWidget
26{
28public:
29 explicit RecipientsEditorSideWidget(RecipientsEditor *editor, QWidget *parent);
30 ~RecipientsEditorSideWidget() override;
31
32 [[nodiscard]] MessageComposer::RecipientsPicker *picker() const;
33
34public Q_SLOTS:
35 void setTotal(int recipients, int lines);
36 void setFocus();
37 void updateTotalToolTip();
38 void pickRecipient();
39
41 void pickedRecipient(const Recipient &, bool &);
42 void saveDistributionList();
43
44private:
45 RecipientsEditor *const mEditor;
46 QLabel *const mTotalLabel;
47 QPushButton *const mDistributionListButton;
48 QPushButton *const mSelectButton;
49 /** The RecipientsPicker is lazy loaded, never access it directly,
50 only through picker() */
51 mutable MessageComposer::RecipientsPicker *mRecipientPicker = nullptr;
52 /** lazy loaded, don't access directly, unless you've called picker() */
53 mutable MessageComposer::KWindowPositioner *mPickerPositioner = nullptr;
54};
55}
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.