• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.5 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • Key
Public Types | Public Member Functions | Static Public Member Functions | Friends
KABC::Key Class Reference

#include <key.h>

List of all members.

Public Types

typedef QList< Key > List
enum  Type { X509, PGP, Custom }
typedef QList< Type > TypeList

Public Member Functions

 Key (const QString &text=QString(), Type type=PGP)
 Key (const Key &other)
 ~Key ()
QByteArray binaryData () const
QString customTypeString () const
QString id () const
bool isBinary () const
bool operator!= (const Key &) const
Key & operator= (const Key &other)
bool operator== (const Key &) const
void setBinaryData (const QByteArray &data)
void setCustomTypeString (const QString &type)
void setId (const QString &identifier)
void setTextData (const QString &data)
void setType (Type type)
QString textData () const
QString toString () const
Type type () const

Static Public Member Functions

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

Friends

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

Detailed Description

A class to store an encryption key.


Member Typedef Documentation

typedef QList<Key> KABC::Key::List

List of keys.

Definition at line 43 of file key.h.

typedef QList<Type> KABC::Key::TypeList

List of key types.

Definition at line 57 of file key.h.


Member Enumeration Documentation

enum KABC::Key::Type

Key types.

Enumerator:
X509 

X509 key.

PGP 

Pretty Good Privacy key.

Custom 

Custom or IANA conform key.

Definition at line 48 of file key.h.


Constructor & Destructor Documentation

Key::Key ( const QString &  text = QString(),
Type  type = PGP 
) [explicit]

Creates a new key.

Parameters:
textThe text data.
typeThe key type, see Types.

Definition at line 59 of file key.cpp.

Key::Key ( const Key &  other)

Copy constructor.

Definition at line 67 of file key.cpp.

Key::~Key ( )

Destroys the key.

Definition at line 72 of file key.cpp.


Member Function Documentation

QByteArray Key::binaryData ( ) const

Returns the binary data.

Definition at line 137 of file key.cpp.

QString Key::customTypeString ( ) const

Returns the custom type string.

Definition at line 173 of file key.cpp.

QString Key::id ( ) const

Returns the unique identifier.

Definition at line 126 of file key.cpp.

bool Key::isBinary ( ) const

Returns whether the key contains binary or text data.

Definition at line 153 of file key.cpp.

bool Key::operator!= ( const Key &  other) const

Not-equal operator.

Definition at line 107 of file key.cpp.

Key & Key::operator= ( const Key &  other)

Assignment operator.

Parameters:
otherThe Key instance to assign to this

Definition at line 112 of file key.cpp.

bool Key::operator== ( const Key &  other) const

Equality operator.

Definition at line 76 of file key.cpp.

void Key::setBinaryData ( const QByteArray &  data)

Sets binary data.

Definition at line 131 of file key.cpp.

void Key::setCustomTypeString ( const QString &  type)

Sets custom type string.

Definition at line 163 of file key.cpp.

void Key::setId ( const QString &  identifier)

Sets the unique identifier.

Definition at line 121 of file key.cpp.

void Key::setTextData ( const QString &  data)

Sets text data.

Definition at line 142 of file key.cpp.

void Key::setType ( Type  type)

Sets the type.

Parameters:
typeThe type of the key
See also:
Type

Definition at line 158 of file key.cpp.

QString Key::textData ( ) const

Returns the text data.

Definition at line 148 of file key.cpp.

QString Key::toString ( ) const

Returns a string representation of the key.

Definition at line 178 of file key.cpp.

Key::Type Key::type ( ) const

Returns the type, see Type.

Definition at line 168 of file key.cpp.

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

Returns a translated label for a given key type.

Definition at line 212 of file key.cpp.

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

Returns a list of all available key types.

Definition at line 201 of file key.cpp.


Friends And Related Function Documentation

QDataStream& operator<< ( QDataStream &  ,
const Key &   
) [friend]

Serializes the key object into the stream.

QDataStream& operator>> ( QDataStream &  ,
Key &   
) [friend]

Initializes the key object from the stream.


The documentation for this class was generated from the following files:
  • key.h
  • key.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:26:08 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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