MagicSmoke  $VERSION$
eventview.h
Go to the documentation of this file.
1 //
2 // C++ Interface: event view`
3 //
4 // Description: widget for displaying event details
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2016
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_EVENTVIEW_H
14 #define MAGICSMOKE_EVENTVIEW_H
15 
16 #include <QTextBrowser>
17 
18 #include <MOEvent>
19 
20 #include "commonexport.h"
21 
22 class QNetworkAccessManager;
23 class QNetworkReply;
24 
26 class MAGICSMOKE_COMMON_EXPORT MEventView:public QTextBrowser
27 {
28  Q_OBJECT
29 public:
30  explicit MEventView ( QWidget* parent = 0 );
31  QVariant loadResource(int type, const QUrl & name)override;
32 
33 public slots:
34  void setEvent(MOEvent);
35  void clearEvent();
36  void setPattern(QString);
37  void resetPattern();
38 private slots:
39  void handleClick(const QUrl&);
40 signals:
42  void eventOrderTicket();
44  void eventOrderTicket(qint64,qint64);
45 private:
46  QString mPattern,mCacheDir;
47  QNetworkAccessManager*mNam;
48  MOEvent mCurrentEvent;
49 
50  void initCacheDir();
51  void saveReply(QNetworkReply*,QString);
52  void renderEvent();
53 };
54 
55 
56 #endif
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7
encapsulation of an event, this class wraps the auto-generated event class to provide some convenienc...
Definition: event.h:25
Event Viewer.
Definition: eventview.h:26