KContacts::Secrecy

Search for usage in LXR

#include <secrecy.h>

Public Types

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

Public Member Functions

 Secrecy (const Secrecy &other)
 
 Secrecy (Type type=Invalid)
 
 ~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 ()
 

Detailed Description

Describes the confidentiality of an addressee.

Definition at line 18 of file secrecy.h.

Member Typedef Documentation

◆ TypeList

List of secrecy types.

Definition at line 41 of file secrecy.h.

Member Enumeration Documentation

◆ Type

Secrecy types.

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

Definition at line 31 of file secrecy.h.

Constructor & Destructor Documentation

◆ Secrecy() [1/2]

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() [2/2]

Secrecy::Secrecy ( const Secrecy & other)

Copy constructor.

Definition at line 40 of file secrecy.cpp.

◆ ~Secrecy()

Secrecy::~Secrecy ( )

Destroys the secrecy.

Definition at line 45 of file secrecy.cpp.

Member Function Documentation

◆ isValid()

bool Secrecy::isValid ( ) const

Returns if the Secrecy object has a valid value.

Definition at line 68 of file secrecy.cpp.

◆ operator!=()

bool Secrecy::operator!= ( const Secrecy & other) const

Definition at line 63 of file secrecy.cpp.

◆ operator=()

Secrecy & Secrecy::operator= ( const Secrecy & other)

Definition at line 49 of file secrecy.cpp.

◆ operator==()

bool Secrecy::operator== ( const Secrecy & other) const

Definition at line 58 of file secrecy.cpp.

◆ setType()

void Secrecy::setType ( Type type)

Sets the type.

Parameters
typeThe Type of secrecy

Definition at line 73 of file secrecy.cpp.

◆ toString()

QString Secrecy::toString ( ) const

Returns a string representation of the secrecy.

Definition at line 112 of file secrecy.cpp.

◆ type()

Secrecy::Type Secrecy::type ( ) const

Returns the type.

Definition at line 78 of file secrecy.cpp.

◆ typeLabel()

QString Secrecy::typeLabel ( Type type)
static

Returns a translated label for a given secrecy type.

Definition at line 94 of file secrecy.cpp.

◆ typeList()

Secrecy::TypeList Secrecy::typeList ( )
static

Returns a list of all available secrecy types.

Definition at line 83 of file secrecy.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 Sat Apr 27 2024 22:07:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.