• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • Key
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
TDEABC::Key Class Reference

#include <key.h>

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Friends

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

Detailed Description

A class to store an encryption key.

Definition at line 33 of file key.h.

Member Typedef Documentation

◆ List

typedef TQValueList<Key> TDEABC::Key::List

Definition at line 39 of file key.h.

◆ TypeList

typedef TQValueList<int> TDEABC::Key::TypeList

Definition at line 40 of file key.h.

Member Enumeration Documentation

◆ Types

enum TDEABC::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::Key ( const TQString &  text = TQString::null,
int  type = PGP 
)

Constructor.

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

Definition at line 28 of file key.cpp.

◆ ~Key()

Key::~Key ( )

Destructor.

Definition at line 34 of file key.cpp.

Member Function Documentation

◆ binaryData()

TQByteArray Key::binaryData ( ) const

Returns the binary data.

Definition at line 72 of file key.cpp.

◆ customTypeString()

TQString Key::customTypeString ( ) const

Returns the custom type string.

Definition at line 108 of file key.cpp.

◆ id()

TQString Key::id ( ) const

Returns the unique identifier.

Definition at line 61 of file key.cpp.

◆ isBinary()

bool Key::isBinary ( ) const

Returns whether the key contains binary or text data.

Definition at line 88 of file key.cpp.

◆ operator!=()

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

Definition at line 51 of file key.cpp.

◆ operator==()

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

Definition at line 38 of file key.cpp.

◆ setBinaryData()

void Key::setBinaryData ( const TQByteArray &  binary)

Sets binary data.

Definition at line 66 of file key.cpp.

◆ setCustomTypeString()

void Key::setCustomTypeString ( const TQString &  custom)

Sets custom type string.

Definition at line 98 of file key.cpp.

◆ setId()

void Key::setId ( const TQString &  id)

Sets the unique identifier.

Definition at line 56 of file key.cpp.

◆ setTextData()

void Key::setTextData ( const TQString &  text)

Sets text data.

Definition at line 77 of file key.cpp.

◆ setType()

void Key::setType ( int  type)

Sets the type, see Type.

Definition at line 93 of file key.cpp.

◆ textData()

TQString Key::textData ( ) const

Returns the text data.

Definition at line 83 of file key.cpp.

◆ type()

int Key::type ( ) const

Returns the type, see Type.

Definition at line 103 of file key.cpp.

◆ typeLabel()

TQString Key::typeLabel ( int  type)
static

Returns a translated label for a given key type.

Definition at line 123 of file key.cpp.

◆ typeList()

Key::TypeList Key::typeList ( )
static

Returns a list of all available key types.

Definition at line 113 of file key.cpp.


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

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.