• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkpgp

  • Kpgp
  • UserID
Public Member Functions | Protected Attributes | List of all members
Kpgp::UserID Class Reference

#include <kpgpkey.h>

Public Member Functions

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

Protected Attributes

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

Detailed Description

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

Definition at line 72 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 
)
explicit

Constructs a new user id with the given values.

Parameters
strUser Id (descriptive text)
validityValidity of key, relevant mostly if invalid is false
revokedIs the key revoked?
invalidIs the key invalid?
Todo:
How exactly do invalid and validity affect each other?

Definition at line 53 of file kpgpkey.cpp.

Kpgp::UserID::~UserID ( )
inline

Definition at line 87 of file kpgpkey.h.

Member Function Documentation

bool Kpgp::UserID::invalid ( ) const
inline

Returns true if the user id is invalid.

Definition at line 150 of file kpgpkey.h.

bool Kpgp::UserID::revoked ( ) const
inline

Returns true if the user id has been revoked.

Definition at line 145 of file kpgpkey.h.

void Kpgp::UserID::setInvalid ( const bool  invalid)
inline

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

Parameters
invalidWhether the user id is invalid or not.
Todo:
Is it the user id that is invalid or the key itself? This should then also be documented in setText().

Definition at line 170 of file kpgpkey.h.

void Kpgp::UserID::setRevoked ( const bool  revoked)
inline

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

Parameters
revokedWhether the user id has been revoked or not.
Todo:
Does one revoke a user id or a key? See also comments for setInvalid() and setText().

Definition at line 165 of file kpgpkey.h.

void Kpgp::UserID::setText ( const QString &  str)
inline

Sets the text of the user id to str.

Parameters
strThe new user id text.

Definition at line 160 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 .

Parameters
validityNew validity value.
Todo:
Are there any restrictions on how you can change validities?

Definition at line 175 of file kpgpkey.h.

QString Kpgp::UserID::text ( ) const
inline

Returns the text of the user id.

Definition at line 140 of file kpgpkey.h.

Validity Kpgp::UserID::validity ( ) const
inline

Returns the validity of resp.

the trust in the user id.

Definition at line 155 of file kpgpkey.h.

Member Data Documentation

bool Kpgp::UserID::mInvalid
protected

Invalid flag.

See also
setInvalid()
invalid()

Definition at line 131 of file kpgpkey.h.

bool Kpgp::UserID::mRevoked
protected

Revoked flag.

See also
setRevoked()
revoked()

Definition at line 129 of file kpgpkey.h.

QString Kpgp::UserID::mText
protected

User id (descriptive text).

See also
setText()
text()

Definition at line 135 of file kpgpkey.h.

Validity Kpgp::UserID::mValidity
protected

Validity (assuming invalid flag is false).

See also
setValidity()
validity()

Definition at line 133 of file kpgpkey.h.


The documentation for this class was generated from the following files:
  • kpgpkey.h
  • kpgpkey.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkpgp

Skip menu "libkpgp"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal