-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbqrimagefactory.h
49 lines (37 loc) · 929 Bytes
/
bqrimagefactory.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 BQRIMAGEFACTORY_H
#define BQRIMAGEFACTORY_H
#include "bqrencode_global.h"
#include <QObject>
#include <QImage>
#include <QColor>
#include <QRgb>
#include "bqrcode.h"
namespace BQREncode {
/*!
* BQREncode Image's Factory
*
* A image factory builds QImage objects using a BQRCode object's information.
*
* We can use differents factories to build differents images (b.e, using a different color, with a central logo,
* etc...)
*/
class BQRENCODESHARED_EXPORT BQRImageFactory : public QObject
{
Q_OBJECT
public:
explicit BQRImageFactory(QObject *parent = 0);
/*!
* Build a QR image from the BQRCode object.
* \param code BQRCode objec
* \return QR image
*/
virtual QImage *buildImageFromCode(const BQRCode *code)=0;
/*!
* @overload
*/
virtual QImage *buildImageFromCode(const BQRCode &code)=0;
signals:
public slots:
};
}
#endif // BQRIMAGEFACTORY_H