KContacts::Secrecy
#include <secrecy.h>
Public Types | |
enum | Type { Public , Private , Confidential , Invalid } |
typedef QList< Type > | TypeList |
Public Member Functions | |
Secrecy (const Secrecy &other) | |
Secrecy (Type type=Invalid) | |
~Secrecy () | |
bool | isValid () const |
bool | operator!= (const Secrecy &other) const |
Secrecy & | operator= (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
Member Typedef Documentation
◆ TypeList
Member Enumeration Documentation
◆ Type
Constructor & Destructor Documentation
◆ Secrecy() [1/2]
Secrecy::Secrecy | ( | Type | type = Invalid | ) |
Creates a new secrecy of the given type.
- Parameters
-
type The 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=()
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 | ) |
◆ 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()
Returns a translated label for a given secrecy type
.
Definition at line 94 of file secrecy.cpp.
◆ 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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.