kleopatra
classify.cpp
Go to the documentation of this file.
69 { "asc", OpenPGP| Ascii | OpaqueSignature|DetachedSignature|CipherText|AnyCertStoreType | ExamineContentHint },
158 assert( __gnu_cxx::is_sorted( begin( classifications ), end( classifications ), ByExtension<std::less>() ) );
163 const _classification * const it = qBinaryFind( begin( classifications ), end( classifications ),
187 assert( __gnu_cxx::is_sorted( begin( content_classifications ), end( content_classifications ), ByContent<std::less>(100) ) );
268 const QString candiate = signedDataFileName + QLatin1Char('.') + QLatin1String(classifications[i].extension);
const char * outputFileExtension(unsigned int classification)
Definition: classify.cpp:294
Definition: classify.h:66
Definition: classify.h:45
QString findSignedData(const QString &signatureFileName)
Definition: classify.cpp:251
int indexIn(const QByteArray &ba, int from) const
void push_back(const T &value)
Definition: classify.h:62
Definition: classify.h:74
QString printableClassification(unsigned int classification)
Definition: classify.cpp:215
Definition: classify.h:68
QString join(const QString &separator) const
bool exists() const
void chop(int n)
Definition: classify.h:56
int indexOf(char ch, int from) const
bool empty() const
Definition: classify.h:76
Definition: classify.h:49
const char * constData() const
Definition: classify.h:48
qint64 read(char *data, qint64 maxSize)
T & front()
Definition: classify.h:63
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: classify.h:78
Definition: classify.h:55
Definition: classify.h:82
QStringList findSignatures(const QString &signedDataFileName)
Definition: classify.cpp:264
QByteArray toLatin1() const
QString suffix() const
Definition: classify.h:73
char * data()
unsigned int classifyContent(const QByteArray &data)
Definition: classify.cpp:185
static const char * extension(bool pgp, bool sign, bool encrypt, bool ascii, bool detached)
Definition: signencryptfilescontroller.cpp:287
Definition: classify.h:58
Definition: classify.h:64
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.