kgpg
convert.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CONVERT_H
00022 #define CONVERT_H
00023
00024 #include "kgpgkey.h"
00025
00026 class QColor;
00027 class QString;
00028 class QPixmap;
00029
00030 namespace KgpgCore
00031 {
00032
00033 class Convert
00034 {
00035 public:
00036 static QString toString(const KgpgKeyAlgo &algorithm);
00037 static QString toString(const KgpgKeyOwnerTrust &ownertrust);
00038 static QString toString(const KgpgKeyTrust &trust);
00039 static QString toString(const QDate &date);
00040 static QColor toColor(const KgpgKeyTrust &trust);
00041 static KgpgKeyAlgo toAlgo(const uint &v);
00042 static KgpgKeyAlgo toAlgo(const QString &s);
00043 static KgpgKeyTrust toTrust(const QChar &c);
00044 static KgpgKeyTrust toTrust(const QString &s);
00045 static KgpgKeyOwnerTrust toOwnerTrust(const QChar &c);
00046 static KgpgKeyOwnerTrust toOwnerTrust(const QString &s);
00047 static QPixmap toPixmap(const KgpgItemType &t);
00048 };
00049
00050 }
00051
00052 #endif // CONVERT_H