25 lines
644 B
C
25 lines
644 B
C
#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
|
|
|
|
QString uncompressText(const QByteArray& compressed);
|
|
QByteArray compressText(const QString& uncompressed);
|
|
cTextDocument* blob2TextDocument(const QByteArray& ba);
|
|
|
|
#endif // COMMON_H
|