Debian Codegraph @

qt6/src/poppler-version.h.in

raw
1 /*
2 * Copyright (C) 2009, Pino Toscano <[email protected]>
3 * Copyright (C) 2018, 2019, Albert Astals Cid <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef POPPLER_VERSION_H
21 #define POPPLER_VERSION_H
22
23 #include "poppler-export.h"
24
25 #include <QString>
26
27 // glibc < 2.28 used to include sys/sysmacros.h
28 // from sys/types.h and sysmacros.h defines minor and major so
29 // undefine them. You may need to undefine them in your code too.
30 #undef minor
31 #undef major
32
33 #define POPPLER_VERSION "@POPPLER_VERSION@"
34 #define POPPLER_VERSION_MAJOR @POPPLER_MAJOR_VERSION@
35 #define POPPLER_VERSION_MINOR @POPPLER_MINOR_VERSION@
36 #define POPPLER_VERSION_MICRO @POPPLER_MICRO_VERSION@
37
38 namespace Poppler
39 {
40
41 namespace Version
42 {
43
44 /**
45 \returns the version string of the current poppler-qt6 library
46 */
47 POPPLER_QT6_EXPORT QString string();
48
49 /**
50 \returns the "major" number of the version of the current poppler-qt6 library
51 */
52 POPPLER_QT6_EXPORT unsigned int major();
53
54 /**
55 \returns the "minor" number of the version of the current poppler-qt6 library
56 */
57 POPPLER_QT6_EXPORT unsigned int minor();
58
59 /**
60 \returns the "micro" number of the version of the current poppler-qt6 library
61 */
62 POPPLER_QT6_EXPORT unsigned int micro();
63
64 }
65
66 }
67
68 #endif