10 #ifndef MSINTERFACE_BOXWRAPPER_H
11 #define MSINTERFACE_BOXWRAPPER_H
17 #ifndef MSIFACE_EXPORT
18 #define MSIFACE_EXPORT Q_DECL_IMPORT
25 typedef std::function<void(QString,QString)>
Wrapper;
27 static void warning(QString title,QString text);
28 static void setWarning(Wrapper);
38 typedef std::function<MProgressWrapper*(QString,QString)>
Factory;
39 static void setFactory(Factory);
41 static MProgressWrapper* create(QString label,QString buttonlabel=QString());
43 virtual void setLabelText(QString)=0;
44 virtual void setCancelButtonText(QString)=0;
45 virtual void cancel()=0;
46 virtual void setRange(
int,
int)=0;
47 virtual void setValue(
int)=0;
48 virtual void hide()=0;
Definition: boxwrapper.h:34
Definition: boxwrapper.h:22
#define MSIFACE_EXPORT
Definition: boxwrapper.h:18
std::function< MProgressWrapper *(QString, QString)> Factory
Definition: boxwrapper.h:38
std::function< void(QString, QString)> Wrapper
Definition: boxwrapper.h:25