-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathQtAdMobInterstitialDummy.h
49 lines (39 loc) · 1.17 KB
/
QtAdMobInterstitialDummy.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
#ifndef QTADMOBINTERSTITIALDUMMY_H
#define QTADMOBINTERSTITIALDUMMY_H
#include "IQtAdMobInterstitial.h"
class QtAdMobInterstitialDummy : public IQtAdMobInterstitial
{
public:
QtAdMobInterstitialDummy();
virtual ~QtAdMobInterstitialDummy();
/*
* Setup unit id and start caching interstitial for that id
*/
virtual void setUnitId(const QString& unitId);
/*
* Retrive interstitial id
*/
virtual const QString& unitId() const;
/*
* If interstitial has already loaded it will be presented, another
* case it will be showed after loading finished
*/
virtual void setVisible(bool isVisible);
/*
* Is interstitial visible
*/
virtual bool visible();
/*
* Check if interstitial loaded
*/
virtual bool isLoaded();
/*
* Add test device identifier. Device identifier you can find in output log, on Android
* it will looks like 'Ads : Use AdRequest.Builder.addTestDevice("device id") to get test ads on this device.'
* iOS: // TODO:
*/
virtual void addTestDevice(const QString& hashedDeviceId);
private:
QString m_UnitId;
};
#endif // QTADMOBINTERSTITIALDUMMY_H