Changeset View
Changeset View
Standalone View
Standalone View
src/lib/prison.h
Show All 36 Lines | 32 | namespace Prison { | |||
---|---|---|---|---|---|
37 | enum BarcodeType | 37 | enum BarcodeType | ||
38 | { | 38 | { | ||
39 | /** Null barcode */ | 39 | /** Null barcode */ | ||
40 | Null = 0, | 40 | Null = 0, | ||
41 | /** QRCode 2d barcode */ | 41 | /** QRCode 2d barcode */ | ||
42 | QRCode = 1, | 42 | QRCode = 1, | ||
43 | /** DataMatrix 2d barcode */ | 43 | /** DataMatrix 2d barcode */ | ||
44 | DataMatrix = 2, | 44 | DataMatrix = 2, | ||
45 | /** Aztec 2d barcode (currently unsupported)*/ | 45 | /** Aztec 2d barcode */ | ||
46 | Aztec, | 46 | Aztec, | ||
47 | /** Code39 barcode */ | 47 | /** Code39 barcode */ | ||
48 | Code39, | 48 | Code39, | ||
49 | /** Code93 barcode */ | 49 | /** Code93 barcode */ | ||
50 | Code93 | 50 | Code93, | ||
51 | /** Code 128 barcode */ | ||||
52 | Code128 | ||||
51 | 53 | | |||
52 | }; | 54 | }; | ||
53 | /** | 55 | /** | ||
54 | * Factory method to create a barcode of a given type. | 56 | * Factory method to create a barcode of a given type. | ||
55 | * @param type barcode type. See @ref BarcodeType enum for values | 57 | * @param type barcode type. See @ref BarcodeType enum for values | ||
56 | * @return a barcode provider, or a null pointer if unsupported. Ownership is passed to the caller. | 58 | * @return a barcode provider, or a null pointer if unsupported. Ownership is passed to the caller. | ||
57 | */ | 59 | */ | ||
58 | PRISON_EXPORT Prison::AbstractBarcode* createBarcode(BarcodeType type); | 60 | PRISON_EXPORT Prison::AbstractBarcode* createBarcode(BarcodeType type); | ||
59 | } | 61 | } | ||
60 | 62 | | |||
61 | #endif // PRISON_PRISON_H | 63 | #endif // PRISON_PRISON_H |