15 #include "cxResourceExport.h" 22 #include "boost/shared_ptr.hpp" 23 #include "boost/weak_ptr.hpp" 70 static void initialize();
71 static void shutdown();
73 static ReporterPtr getInstance();
75 void setAudioSource(
AudioPtr audioSource);
78 void sendInfo(QString info);
79 void sendSuccess(QString success);
80 void sendWarning(QString warning);
81 void sendError(QString error);
82 void sendDebug(QString debug);
83 void sendVolatile(QString volatile_msg);
84 void sendRaw(QString raw);
86 void sendMessage(QString text, MESSAGE_LEVEL messageLevel=
mlDEBUG,
int timeout=-1,
bool mute=
false);
90 void playStartSound();
92 void playCancelSound();
94 void playSuccessSound();
95 void playWarningSound();
96 void playErrorSound();
98 void playScreenShotSound();
99 void playSampleSound();
102 virtual void onEmittedMessage(
Message message);
108 bool hasAudioSource()
const;
113 void playSound(MESSAGE_LEVEL messageLevel);
118 static boost::weak_ptr<Reporter> mWeakInstance;
119 static boost::shared_ptr<Reporter> mPersistentInstance;
124 cxResource_EXPORT ReporterPtr
reporter();
boost::shared_ptr< class Reporter > ReporterPtr
boost::shared_ptr< class LogThread > LogThreadPtr
boost::shared_ptr< Audio > AudioPtr
Namespace for all CustusX production code.