MessageComposer::Recipient

Search for usage in LXR

#include <recipient.h>

Inheritance diagram for MessageComposer::Recipient:

Public Types

using List = QList<Recipient::Ptr>
 
using Ptr = QSharedPointer<Recipient>
 
enum  Type {
  To , Cc , Bcc , ReplyTo ,
  Undefined
}
 

Public Member Functions

 Recipient (const QString &email=QString(), Type type=To)
 
void clear () override
 
QString email () const
 
Kleo::Action encryptionAction () const
 
bool isEmpty () const override
 
GpgME::Key key () const
 
QString name () const
 
void setEmail (const QString &email)
 
void setEncryptionAction (const Kleo::Action action)
 
void setKey (const GpgME::Key &key)
 
void setName (const QString &name)
 
void setType (Type type)
 
Type type () const
 
QString typeLabel () const
 

Static Public Member Functions

static QStringList allTypeLabels ()
 
static Type idToType (int id)
 
static QString typeLabel (Type type)
 
static int typeToId (Type type)
 

Detailed Description

The Recipient class.

Definition at line 27 of file recipient.h.

Member Typedef Documentation

◆ List

Definition at line 31 of file recipient.h.

◆ Ptr

Member Enumeration Documentation

◆ Type

enum MessageComposer::Recipient::Type

Definition at line 33 of file recipient.h.

Constructor & Destructor Documentation

◆ Recipient()

Recipient::Recipient ( const QString & email = QString(),
Recipient::Type type = To )

Definition at line 32 of file recipient.cpp.

Member Function Documentation

◆ allTypeLabels()

QStringList Recipient::allTypeLabels ( )
static

Definition at line 113 of file recipient.cpp.

◆ clear()

void Recipient::clear ( )
overridevirtual

Implements KPIM::MultiplyingLineData.

Definition at line 74 of file recipient.cpp.

◆ email()

QString Recipient::email ( ) const

Definition at line 54 of file recipient.cpp.

◆ encryptionAction()

Kleo::Action MessageComposer::Recipient::encryptionAction ( ) const

Definition at line 133 of file recipient.cpp.

◆ idToType()

Recipient::Type Recipient::idToType ( int id)
static

Definition at line 85 of file recipient.cpp.

◆ isEmpty()

bool Recipient::isEmpty ( ) const
overridevirtual

Implements KPIM::MultiplyingLineData.

Definition at line 69 of file recipient.cpp.

◆ key()

GpgME::Key Recipient::key ( ) const

Definition at line 123 of file recipient.cpp.

◆ name()

QString Recipient::name ( ) const

Definition at line 64 of file recipient.cpp.

◆ setEmail()

void Recipient::setEmail ( const QString & email)

Definition at line 49 of file recipient.cpp.

◆ setEncryptionAction()

void MessageComposer::Recipient::setEncryptionAction ( const Kleo::Action action)

Definition at line 138 of file recipient.cpp.

◆ setKey()

void Recipient::setKey ( const GpgME::Key & key)

Definition at line 128 of file recipient.cpp.

◆ setName()

void Recipient::setName ( const QString & name)

Definition at line 59 of file recipient.cpp.

◆ setType()

void Recipient::setType ( Type type)

Definition at line 39 of file recipient.cpp.

◆ type()

Recipient::Type Recipient::type ( ) const

Definition at line 44 of file recipient.cpp.

◆ typeLabel() [1/2]

QString Recipient::typeLabel ( ) const

Definition at line 90 of file recipient.cpp.

◆ typeLabel() [2/2]

QString Recipient::typeLabel ( Recipient::Type type)
static

Definition at line 95 of file recipient.cpp.

◆ typeToId()

int Recipient::typeToId ( Recipient::Type type)
static

Definition at line 80 of file recipient.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.