KABC::Secrecy Class Reference

List of all members.

Detailed Description

Definition at line 30 of file secrecy.h.


Public Types

typedef QValueList< int > TypeList
 Public
 Private
 Confidential
 Invalid
enum  Types { Public, Private, Confidential, Invalid }

Public Member Functions

 Secrecy (int type=Invalid)
bool operator== (const Secrecy &) const
bool operator!= (const Secrecy &) const
bool isValid () const
void setType (int type)
int type () const
QString asString () const

Static Public Member Functions

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

Friends

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

Member Enumeration Documentation

Secrecy types.

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

Definition at line 45 of file secrecy.h.


Constructor & Destructor Documentation

Secrecy::Secrecy ( int  type = Invalid  ) 

Constructor.

Parameters:
type The secrecy type, see Types.

Definition at line 27 of file secrecy.cpp.


Member Function Documentation

QString Secrecy::asString (  )  const

For debug.

Definition at line 85 of file secrecy.cpp.

bool Secrecy::isValid (  )  const

Returns if the Secrecy object has a valid value.

Definition at line 42 of file secrecy.cpp.

void Secrecy::setType ( int  type  ) 

Sets the type, see Types.

Definition at line 47 of file secrecy.cpp.

int Secrecy::type (  )  const

Returns the type, see Types.

Definition at line 52 of file secrecy.cpp.

QString Secrecy::typeLabel ( int  type  )  [static]

Returns a translated label for a given secrecy type.

Definition at line 67 of file secrecy.cpp.

Secrecy::TypeList Secrecy::typeList (  )  [static]

Returns a list of all available secrecy types.

Definition at line 57 of file secrecy.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys