6 #ifndef WOLF_TRANSACTION_H
7 #define WOLF_TRANSACTION_H
24 Q_PROPERTY(
Stage stage READ stage)
25 Q_PROPERTY(
bool isInProgress READ isInProgress)
26 Q_PROPERTY(
bool isFinished READ isFinished)
27 Q_PROPERTY(
bool isUnstarted READ isUnstarted)
28 Q_PROPERTY(
bool hasError READ hasError)
29 Q_PROPERTY(QString errorType READ errorType)
30 Q_PROPERTY(QString errorString READ errorString)
31 Q_PROPERTY(QString interfaceName READ interface)
34 static void setLogPrefix(QString);
45 virtual Stage stage()
const;
51 virtual bool isUnstarted()
const{
return stage()==Uninitialized;}
54 virtual bool hasError()
const;
56 virtual QString errorType()
const;
58 virtual QString errorString()
const;
61 virtual QString interface()
const;
73 virtual ~WaitFor_Private(){}
77 WaitFor_Private(
int t){m_tmout=t;}
78 virtual void loop()=0;
79 QList<QPointer<WTransaction> > m_trn;
103 virtual bool waitForFinished(
int tmout=30000);
115 virtual QByteArray executeQuery(QString,QByteArray);
118 virtual void startQuery(QString,QByteArray);
121 virtual QByteArray encodeError()
const;
125 virtual void endQuery();
136 virtual bool canLogRequest()
const;
138 virtual bool canLogResponse()
const;
WaitForAll(int tmout=0)
Definition: transaction.h:94
Stage
Definition: transaction.h:37
virtual bool isFinished() const
returns true if the transaction is finished
Definition: transaction.h:49
WTransaction_Private * d
Definition: transaction.h:133
virtual ~WaitForAny()
Definition: transaction.h:87
Definition: transaction.h:84
virtual bool isInProgress() const
returns true if the transaction is currently in progress
Definition: transaction.h:47
LogWrap(WTransaction *parent, const QString &request, const QString &interface=QString())
Definition: transaction.h:20
Definition: transaction_p.h:50
virtual ~WaitForAll()
Definition: transaction.h:95
Log(WTransaction *parent, const QString &request, const QString &interface=QString())
Definition: transaction.h:92
#define WOLF_BASE_EXPORT
Definition: exception.h:13
virtual bool isUnstarted() const
returns true if the transaction has not started yet
Definition: transaction.h:51
WaitForAny(int tmout=0)
Definition: transaction.h:86