| 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 |
\since 0.73 |
| 46 |
\returns the version string of the current poppler-qt5 library |
| 47 |
*/ |
| 48 |
POPPLER_QT5_EXPORT QString string(); |
| 49 |
|
| 50 |
/** |
| 51 |
\since 0.73 |
| 52 |
\returns the "major" number of the version of the current poppler-qt5 library |
| 53 |
*/ |
| 54 |
POPPLER_QT5_EXPORT unsigned int major(); |
| 55 |
|
| 56 |
/** |
| 57 |
\since 0.73 |
| 58 |
\returns the "minor" number of the version of the current poppler-qt5 library |
| 59 |
*/ |
| 60 |
POPPLER_QT5_EXPORT unsigned int minor(); |
| 61 |
|
| 62 |
/** |
| 63 |
\since 0.73 |
| 64 |
\returns the "micro" number of the version of the current poppler-qt5 library |
| 65 |
*/ |
| 66 |
POPPLER_QT5_EXPORT unsigned int micro(); |
| 67 |
|
| 68 |
} |
| 69 |
|
| 70 |
} |
| 71 |
|
| 72 |
#endif |