Files
storyWriter/common.h
T
Herwig Birke 519e63ffc5 added doxygen
2018-05-04 12:56:54 +02:00

51 lines
889 B
C

/*!
\file common.h
*/
#ifndef COMMON_H
#define COMMON_H
#include "ctextdocument.h"
#include <QString>
#include <QByteArray>
#include <QDebug>
#ifdef __GNUC__
#define myDebug qDebug() << __FILE__ << "(" << __LINE__ << ") - " << __PRETTY_FUNCTION__ << ":"
#elif __MINGW32__
#define myDebug qDebug() << __FILE__ << "(" << __LINE__ << ") - " << __PRETTY_FUNCTION__ << ":"
#else
#define myDebug qDebug() << __FILE__ << "(" << __LINE__ << ") - " << __FUNCTION__ << ":"
#endif
/*!
\brief
\fn uncompressText
\param compressed
\return QString
*/
QString uncompressText(const QByteArray& compressed);
/*!
\brief
\fn compressText
\param uncompressed
\return QByteArray
*/
QByteArray compressText(const QString& uncompressed);
/*!
\brief
\fn blob2TextDocument
\param ba
\return cTextDocument
*/
cTextDocument* blob2TextDocument(const QByteArray& ba);
#endif // COMMON_H