-
Notifications
You must be signed in to change notification settings - Fork 25
/
IQtAdMobBanner.h
90 lines (73 loc) · 1.54 KB
/
IQtAdMobBanner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef IQTADMOBBANNER_H
#define IQTADMOBBANNER_H
#include <QObject>
#include <QString>
#include <QSize>
#include <QPoint>
class IQtAdMobBanner : public QObject
{
Q_OBJECT
public:
enum Sizes
{
Banner = 0,
FullBanner,
LargeBanner,
MediumRectangle,
SmartBanner,
WideSkyscraper
};
Q_ENUMS(Sizes)
IQtAdMobBanner(QObject* parent = 0) : QObject(parent) {}
virtual ~IQtAdMobBanner() {}
/*
* Configure banner id
*/
virtual void setUnitId(const QString& unitId) = 0;
/*
* Retrive banner id
*/
virtual const QString& unitId() const = 0;
/*
* Setup preconfigured banner size
*/
virtual void setSize(Sizes size) = 0;
/*
* Retrieve banner size
*/
virtual Sizes size() const = 0;
/*
* Get real banner size in pixels
*/
virtual QSize sizeInPixels() = 0;
/*
* Setup banner position
*/
virtual void setPosition(const QPoint& position) = 0;
/*
* Retrieve banner position
*/
virtual const QPoint& position() const = 0;
/*
* Show banner
*/
virtual void setVisible(bool isVisible) = 0;
/*
* Is banner showed
*/
virtual bool visible() = 0;
/*
* Is banner loaded
*/
virtual bool isLoaded() = 0;
/*
* Add test device identifier
*/
virtual void addTestDevice(const QString& hashedDeviceId) = 0;
signals:
void loaded();
void loading();
void closed();
void clicked();
};
#endif // IQTADMOBBANNER_H