Messagelib
11 #include <KLocalizedString>
16 class MessageComposer::RecipientPrivate
19 RecipientPrivate(
const QString &email, Recipient::Type type)
25 Kleo::Action mEncryptionAction = Kleo::Impossible;
26 MessageComposer::Recipient::Type mType;
32 Recipient::Recipient(
const QString &email, Recipient::Type type)
37 Recipient::~Recipient() =
default;
39 void Recipient::setType(Type type)
44 Recipient::Type Recipient::type()
const
49 void Recipient::setEmail(
const QString &email)
54 QString Recipient::email()
const
59 void Recipient::setName(
const QString &name)
69 bool Recipient::isEmpty()
const
74 void Recipient::clear()
77 d->mType = Recipient::To;
80 int Recipient::typeToId(Recipient::Type type)
82 return static_cast<int>(type);
85 Recipient::Type Recipient::idToType(
int id)
87 return static_cast<Type>(id);
90 QString Recipient::typeLabel()
const
92 return typeLabel(d->mType);
95 QString Recipient::typeLabel(Recipient::Type type)
99 return i18nc(
"@label:listbox Recipient of an email message.",
"To");
101 return i18nc(
"@label:listbox Carbon Copy recipient of an email message.",
"CC");
103 return i18nc(
"@label:listbox Blind carbon copy recipient of an email message.",
"BCC");
105 return i18nc(
"@label:listbox Reply-To recipient of an email message.",
"Reply-To");
110 return xi18nc(
"@label:listbox",
"<placeholder>Undefined Recipient Type</placeholder>");
123 GpgME::Key Recipient::key()
const
128 void Recipient::setKey(
const GpgME::Key &key)
133 Kleo::Action MessageComposer::Recipient::encryptionAction()
const
135 return d->mEncryptionAction;
138 void MessageComposer::Recipient::setEncryptionAction(
const Kleo::Action action)
140 d->mEncryptionAction = action;
void append(const T &value)
QString xi18nc(const char *context, const char *text, const TYPE &arg...)
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QStringList types(Mode mode=Writing)
bool isEmpty() const const
const char * name(StandardAction id)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.