51 lines
889 B
C
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
|