MagicSmoke  $VERSION$
transaction.h
Go to the documentation of this file.
1 //
2 // C++ Interface: MTransaction
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2010-2013
8 //
9 // Copyright: See COPYING.GPL file that comes with this distribution
10 //
11 //
12 
13 #ifndef MSMOKE_MTRANSACTION_H
14 #define MSMOKE_MTRANSACTION_H
15 
16 #include <WTransaction>
17 #include <functional>
18 
19 #ifndef MSIFACE_EXPORT
20 #define MSIFACE_EXPORT Q_DECL_IMPORT
21 #endif
22 
23 typedef std::function<void()> MTStartStop;
24 
25 class MSIFACE_EXPORT MTransaction:public WTransaction{
26  public:
28  static void setStartStopActions(const MTStartStop&start,const MTStartStop&stop);
29  protected:
31  MTransaction(QString iface=QString());
33  MTransaction(const WTransaction&);
35  MTransaction(const MTransaction&);
37  QByteArray executeQuery(QString,QByteArray);
38 };
39 
40 #endif
#define MSIFACE_EXPORT
Definition: transaction.h:20
Definition: transaction.h:25
std::function< void()> MTStartStop
Definition: transaction.h:23