kabc Library API Documentation

KABC::Secrecy Class Reference

List of all members.

Public Types

typedef QValueList< int > TypeList
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 &)

Detailed Description

Definition at line 30 of file secrecy.h.


Member Enumeration Documentation

enum KABC::Secrecy::Types
 

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 also:
Types.

Definition at line 27 of file secrecy.cpp.


Member Function Documentation

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 also:
Types.

Definition at line 47 of file secrecy.cpp.

Referenced by KABC::VCardFormatImpl::readClassValue().

int Secrecy::type  )  const
 

Returns the type,.

See also:
Types.

Definition at line 52 of file secrecy.cpp.

Referenced by KABC::VCardFormatImpl::addClassValue().

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

Returns a list of all available secrecy types.

Definition at line 57 of file secrecy.cpp.

References QValueList::isEmpty().

QString Secrecy::typeLabel int  type  )  [static]
 

Returns a translated label for a given secrecy type.

Definition at line 67 of file secrecy.cpp.

Referenced by asString().

QString Secrecy::asString  )  const
 

For debug.

Definition at line 85 of file secrecy.cpp.

References typeLabel().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kabc Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Jun 12 11:43:00 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003