Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KABC::Key Class Reference

A class to store an encryption key. More...

#include <key.h>

List of all members.

Public Types

enum  Types

Public Methods

 Key (const QString &text=QString::null, int type=PGP)
 ~Key ()
void setId (const QString &id)
QString id () const
void setBinaryData (const QByteArray &binary)
QByteArray binaryData () const
void setTextData (const QString &text)
QString textData () const
bool isBinary () const
void setType (int type)
void setCustomTypeString (const QString &custom)
int type () const
QString customTypeString () const

Static Public Methods

TypeList typeList ()
QString typeLabel (int type)


Detailed Description

A class to store an encryption key.

Definition at line 31 of file key.h.


Member Enumeration Documentation

enum KABC::Key::Types
 

Key types

  • X509 - X509 key
  • PGP - Pretty Good Privacy key
  • Custom - Custom or IANA conform key

Definition at line 47 of file key.h.


Constructor & Destructor Documentation

KABC::Key::Key (  const QString &    text = QString::null,
int    type = PGP
) 
 

Constructor.

Parameters:
text  The text data.
type  The key type,
See also:
Types.

KABC::Key::~Key (    ) 
 

Destructor.


Member Function Documentation

QByteArray KABC::Key::binaryData (    ) 
 

Returns the binary data.

QString KABC::Key::customTypeString (    ) 
 

Returns the custom type string.

QString KABC::Key::id (    ) 
 

Returns the unique identifier.

bool KABC::Key::isBinary (    ) 
 

Returns whether the key contains binary or text data.

void KABC::Key::setBinaryData (  const QByteArray &    binary ) 
 

Sets binary data.

void KABC::Key::setCustomTypeString (  const QString &    custom ) 
 

Sets custom type string.

void KABC::Key::setId (  const QString &    id ) 
 

Sets the unique identifier.

void KABC::Key::setTextData (  const QString &    text ) 
 

Sets text data.

void KABC::Key::setType (  int    type ) 
 

Sets the type,

See also:
Type.

QString KABC::Key::textData (    ) 
 

Returns the text data.

int KABC::Key::type (    ) 
 

Returns the type,

See also:
Type.

QString KABC::Key::typeLabel (  int    type )  [static]
 

Returns a translated label for a given key type.

TypeList KABC::Key::typeList (    )  [static]
 

Returns a list of all available key types.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:31 2003 for kdelibs by doxygen1.2.18