mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-07 21:29:47 -08:00
Adverts widget v0.2 added:
*Querying webAPI for adverts content; *Starting browsers new tab with url specified in json file *Basic QML items and models *Overview tab layout changes *Storing images on harddrive (temporary solution) *Sending queries to webAPI straight from widget (temporary solution) coming next: -store whole json file as url/desription need to be stored for further use -display images of adverts from QImage, not from file stored on harddrive -hide/show adverts button tweaking -proper webAPI base class for querying various servers for data (prypto for instance) *
This commit is contained in:
36
src/qt/qtquick_controls/cpp/guibannerwidget.h
Normal file
36
src/qt/qtquick_controls/cpp/guibannerwidget.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef GUIBANNERWIDGET_H
|
||||
#define GUIBANNERWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QNetworkReply>
|
||||
|
||||
class CasinoCoinWebAPIParser;
|
||||
class CasinoCoinWebAPI;
|
||||
class GUIBannerControl;
|
||||
|
||||
class GUIBannerWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GUIBannerWidget(QWidget *parent = 0);
|
||||
~GUIBannerWidget();
|
||||
|
||||
QWidget* dockQmlToWidget();
|
||||
|
||||
void PopulateBannerFromWeb();
|
||||
void PopulateBannerLocally();
|
||||
|
||||
private:
|
||||
void registerCustomQmlTypes();
|
||||
|
||||
GUIBannerControl* m_pBannerControl;
|
||||
|
||||
CasinoCoinWebAPIParser* m_pWebApiParserTemporary;
|
||||
CasinoCoinWebAPI* m_pWebApiTemporary;
|
||||
|
||||
private slots:
|
||||
void slotNetworkError( QNetworkReply::NetworkError a_eError );
|
||||
};
|
||||
|
||||
#endif // GUIBANNERWIDGET_H
|
||||
Reference in New Issue
Block a user