kleopatra
log.cpp
Go to the documentation of this file.
149 shared_ptr<QIODevice> Log::createIOLogger( const shared_ptr<QIODevice>& io, const QString& prefix, OpenMode mode ) const
156 const QString timestamp = QDateTime::currentDateTime().toString( QLatin1String("yyMMdd-hhmmss") );
158 const QString fn = d->m_outputDirectory + QLatin1Char('/') + prefix + QLatin1Char('-') + timestamp + QLatin1Char('-') + KRandom::randomString( 4 );
162 throw Exception( gpg_error( GPG_ERR_EIO ), i18n( "Log Error: Could not open log file \"%1\" for writing.", fn ) );
QString toString(Qt::DateFormat format) const
QString toNativeSeparators(const QString &pathName)
QString type(const GpgME::Key &key)
Definition: log.h:55
boost::shared_ptr< QIODevice > createIOLogger(const boost::shared_ptr< QIODevice > &wrapped, const QString &prefix, OpenMode mode) const
Definition: log.cpp:149
Definition: iodevicelogger.h:46
QDateTime currentDateTime()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 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:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.