//
#include <QApplication>
+#include <QCursor>
#include <QDir>
#include <QHostInfo>
#include <QIcon>
#include "main.h"
#include "debug.h"
+WaitCursor::WaitCursor()
+{
+ QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
+}
+
+WaitCursor::~WaitCursor()
+{
+ QApplication::restoreOverrideCursor();
+}
+
QString choseLanguage(bool warn)
{
QString lang=QSettings().value("lang","--").toString();
#include <QString>
+/**show a dialog to change the language*/
QString choseLanguage(bool warn=true);
+/**contains the directory that is used for external data storage*/
extern QString dataDir;
+/**simple class to show a busy-cursor while an instance of it exists*/
+class WaitCursor
+{
+ public:
+ /**displays a wait cursor (Qt::WaitCursor)*/
+ WaitCursor();
+ /**restores the last normal cursor*/
+ ~WaitCursor();
+};
+
#endif
bool MWebRequest::request(QString hreq,QByteArray data)
{
+ //show the user we are waiting
+ WaitCursor wc;
//set up request
QEventLoop loop(this);
connect(this,SIGNAL(requestFinInt()),&loop,SLOT(quit()));