libkdenetwork Library API Documentation

Kpgp::UserID Class Reference

This class is used to store information about a user id of a PGP key. More...

#include <kpgpkey.h>

Collaboration diagram for Kpgp::UserID:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UserID (const QString &str, const Validity validity=KPGP_VALIDITY_UNKNOWN, const bool revoked=false, const bool invalid=false)
QString text () const
bool revoked () const
bool invalid () const
Validity validity () const
void setText (const QString &str)
void setRevoked (const bool revoked)
void setInvalid (const bool invalid)
void setValidity (const Validity validity)

Protected Attributes

bool mRevoked: 1
bool mInvalid: 1
Validity mValidity
QString mText

Detailed Description

This class is used to store information about a user id of a PGP key.

Definition at line 74 of file kpgpkey.h.


Constructor & Destructor Documentation

Kpgp::UserID::UserID const QString str,
const Validity  validity = KPGP_VALIDITY_UNKNOWN,
const bool  revoked = false,
const bool  invalid = false
 

Constructs a new user id with the given values.

Definition at line 50 of file kpgpkey.cpp.


Member Function Documentation

QString Kpgp::UserID::text  )  const [inline]
 

Returns the text of the user id.

Definition at line 119 of file kpgpkey.h.

Referenced by Kpgp::Key::primaryUserID().

bool Kpgp::UserID::revoked  )  const [inline]
 

Returns true if the user id has been revoked.

Definition at line 124 of file kpgpkey.h.

bool Kpgp::UserID::invalid  )  const [inline]
 

Returns true if the user id is invalid.

Definition at line 129 of file kpgpkey.h.

Validity Kpgp::UserID::validity  )  const [inline]
 

Returns the validity of resp.

the trust in the user id.

Definition at line 134 of file kpgpkey.h.

void Kpgp::UserID::setText const QString str  )  [inline]
 

Sets the text of the user id to str.

Definition at line 139 of file kpgpkey.h.

void Kpgp::UserID::setRevoked const bool  revoked  )  [inline]
 

Sets the flag if the user id has been revoked to revoked.

Definition at line 144 of file kpgpkey.h.

void Kpgp::UserID::setInvalid const bool  invalid  )  [inline]
 

Sets the flag if the user id is invalid to invalid.

Definition at line 149 of file kpgpkey.h.

void Kpgp::UserID::setValidity const Validity  validity  )  [inline]
 

Sets the validity of resp.

the trust in the user id to validity.

Definition at line 154 of file kpgpkey.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:22:00 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003