KContacts::Secrecy

#include <secrecy.h>

Public Types

enum  Type { Public, Private, Confidential, Invalid }
 
typedef QVector< TypeTypeList
 

Public Member Functions

 Secrecy (Type type=Invalid)
 
 Secrecy (const Secrecy &other)
 
 ~Secrecy ()
 
bool isValid () const
 
bool operator!= (const Secrecy &other) const
 
Secrecyoperator= (const Secrecy &other)
 
bool operator== (const Secrecy &other) const
 
void setType (Type type)
 
QString toString () const
 
Type type () const
 

Static Public Member Functions

static QString typeLabel (Type type)
 
static TypeList typeList ()
 

Friends

KCONTACTS_EXPORT QDataStreamoperator<< (QDataStream &, const Secrecy &)
 
KCONTACTS_EXPORT QDataStreamoperator>> (QDataStream &, Secrecy &)
 

Detailed Description

Descripes the confidentiality of an addressee.

Definition at line 17 of file secrecy.h.

Member Typedef Documentation

List of secrecy types.

Definition at line 40 of file secrecy.h.

Member Enumeration Documentation

Secrecy types.

  • Public - for public access
  • Private - only private access
  • Confidential - access for confidential persons

Definition at line 30 of file secrecy.h.

Constructor & Destructor Documentation

Secrecy::Secrecy ( Type  type = Invalid)

Creates a new secrecy of the given type.

Parameters
typeThe secrecy type.
See also
Type

Definition at line 34 of file secrecy.cpp.

Secrecy::Secrecy ( const Secrecy other)

Copy constructor.

Definition at line 40 of file secrecy.cpp.

Secrecy::~Secrecy ( )

Destroys the secrecy.

Definition at line 45 of file secrecy.cpp.

Member Function Documentation

bool Secrecy::isValid ( ) const

Returns if the Secrecy object has a valid value.

Definition at line 68 of file secrecy.cpp.

void Secrecy::setType ( Type  type)

Sets the type.

Parameters
typeThe Type of secrecy

Definition at line 73 of file secrecy.cpp.

QString Secrecy::toString ( ) const

Returns a string representation of the secrecy.

Definition at line 112 of file secrecy.cpp.

Secrecy::Type Secrecy::type ( ) const

Returns the type.

Definition at line 78 of file secrecy.cpp.

QString Secrecy::typeLabel ( Type  type)
static

Returns a translated label for a given secrecy type.

Definition at line 94 of file secrecy.cpp.

Secrecy::TypeList Secrecy::typeList ( )
static

Returns a list of all available secrecy types.

Definition at line 83 of file secrecy.cpp.

Friends And Related Function Documentation

KCONTACTS_EXPORT QDataStream& operator<< ( QDataStream ,
const Secrecy  
)
friend

Serializes the secrecy object into the stream.

KCONTACTS_EXPORT QDataStream& operator>> ( QDataStream ,
Secrecy  
)
friend

Initializes the secrecy object from the stream.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Oct 27 2020 23:00:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.