• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kabc

KABC::Key

KABC::Key Class Reference

#include <key.h>

List of all members.


Detailed Description

A class to store an encryption key.

Definition at line 33 of file key.h.


Public Types

enum  Types { X509, PGP, Custom }
typedef QValueList< Key > List
typedef QValueList< int > TypeList

Public Member Functions

 Key (const QString &text=QString::null, int type=PGP)
 ~Key ()
bool operator== (const Key &) const
bool operator!= (const Key &) const
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 Member Functions

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

Friends

KABC_EXPORT QDataStream & operator<< (QDataStream &, const Key &)
KABC_EXPORT QDataStream & operator>> (QDataStream &, Key &)

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 49 of file key.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
text The text data.
type The key type, see Types.

Definition at line 28 of file key.cpp.

Key::~Key (  ) 

Destructor.

Definition at line 34 of file key.cpp.


Member Function Documentation

void Key::setId ( const QString &  id  ) 

Sets the unique identifier.

Definition at line 56 of file key.cpp.

QString Key::id (  )  const

Returns the unique identifier.

Definition at line 61 of file key.cpp.

void Key::setBinaryData ( const QByteArray &  binary  ) 

Sets binary data.

Definition at line 66 of file key.cpp.

QByteArray Key::binaryData (  )  const

Returns the binary data.

Definition at line 72 of file key.cpp.

void Key::setTextData ( const QString &  text  ) 

Sets text data.

Definition at line 77 of file key.cpp.

QString Key::textData (  )  const

Returns the text data.

Definition at line 83 of file key.cpp.

bool Key::isBinary (  )  const

Returns whether the key contains binary or text data.

Definition at line 88 of file key.cpp.

void Key::setType ( int  type  ) 

Sets the type, see Type.

Definition at line 93 of file key.cpp.

void Key::setCustomTypeString ( const QString &  custom  ) 

Sets custom type string.

Definition at line 98 of file key.cpp.

int Key::type (  )  const

Returns the type, see Type.

Definition at line 103 of file key.cpp.

QString Key::customTypeString (  )  const

Returns the custom type string.

Definition at line 108 of file key.cpp.

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

Returns a list of all available key types.

Definition at line 113 of file key.cpp.

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

Returns a translated label for a given key type.

Definition at line 123 of file key.cpp.


The documentation for this class was generated from the following files:
  • key.h
  • key.cpp

kabc

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal