Q_PROPERTY(QString errorString READ errorString)
Q_PROPERTY(QString interfaceName READ interface)
public:
+ ///sets the logging prefix for transactions, per default it is "T"
+ static void setLogPrefix(QString);
+
/**stage the transaction is in*/
enum Stage {
Uninitialized=0,///<transaction has not started yet
/*****************************************************************************/
static int logid=0;
+static QByteArray logprefix="T";
+
+void WTransaction::setLogPrefix(QString p){logprefix=p.toLatin1();}
WTransaction::Log::Log(WTransaction*p,const QString&s,const QString&i)
{
{
QStringList sl=s.split("\n");
for(int i=0;i<sl.size();i++)
- qDebug("T%i: %s",cnt,sl[i].toLatin1().data());
+ qDebug("%s%i: %s",logprefix.data(),cnt,sl[i].toLatin1().data());
}
void WTransaction::Log::setRequ(const QString&h,const QString&d)