30 #include "scribusapi.h"
32 #include <QSharedData>
33 #include <QExplicitlySharedDataPointer>
61 m_data->m_status = STATE_OPEN;
75 operator bool()
const {
return (m_data.constData() != 0); }
82 virtual bool commit() = 0;
88 virtual bool cancel() = 0;
93 virtual void markFailed();
100 int getState()
const;
102 bool isNull()
const {
return (m_data.constData() == 0); }
104 bool isStarted()
const {
return (m_data.constData() != 0); }
106 bool isOpened()
const;
111 QExplicitlySharedDataPointer<TransactionStateBase> m_data;
virtual ~Transaction()
Definition: transaction.h:70
Definition: transaction.h:40
Definition: transaction.h:50