mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-09 14:19:47 -08:00
*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) *
38 lines
927 B
C++
38 lines
927 B
C++
#ifndef QMLBANNERLISTITEM_H
|
|
#define QMLBANNERLISTITEM_H
|
|
|
|
#include "qmllistitem.h"
|
|
#include "../../CSCPublicAPI/jsonsingleactivepromotion.h"
|
|
|
|
class QmlBannerListItem : public QmlListItem
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
enum EBannerRoles /** User-specific model roles **/
|
|
{ ROLE_IMAGE_SOURCE = ROLE_1
|
|
, ROLE_DESTINATION_URL = ROLE_2
|
|
, ROLE_DESCRIPTION = ROLE_3
|
|
};
|
|
|
|
explicit QmlBannerListItem
|
|
( QString a_strImageSource
|
|
, QString a_strDestinationUrl
|
|
, QString a_strDescription
|
|
, QObject *a_pParent = 0
|
|
);
|
|
explicit QmlBannerListItem ( const JsonSingleActivePromotion& a_rCasinoDescription
|
|
, QObject *a_pParent = 0
|
|
);
|
|
explicit QmlBannerListItem( QObject *a_pParent = 0 );
|
|
virtual ~QmlBannerListItem();
|
|
|
|
virtual QHash<int, QByteArray> RoleNames() const; /** Define class-specific roles **/
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
};
|
|
|
|
#endif // QMLBANNERLISTITEM_H
|