Polkit-Qt-1  0.95.0
polkitqt1-version.h
1 /*
2  * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
3  * Copyright (C) 2009 Dario Freddi <drf@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef _POLKITQT1_VERSION_H_
22 #define _POLKITQT1_VERSION_H_
23 
24 #include "polkitqt1-export.h"
25 
27 #define POLKITQT1_VERSION_STRING "0.112.0"
28 
30 #define POLKITQT1_VERSION_MAJOR 0
31 
33 #define POLKITQT1_VERSION_MINOR 112
34 
36 #define POLKITQT1_VERSION_PATCH 0
37 
44 #define POLKITQT1_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
45 
53 #define POLKITQT1_VERSION \
54  POLKITQT1_MAKE_VERSION(POLKITQT1_VERSION_MAJOR,POLKITQT1_VERSION_MINOR,POLKITQT1_VERSION_PATCH)
55 
71 #define POLKITQT1_IS_VERSION(a,b,c) ( POLKITQT1_VERSION >= POLKITQT1_MAKE_VERSION(a,b,c) )
72 
73 
74 namespace PolkitQt1 {
80  POLKITQT1_EXPORT unsigned int versionMajor();
81 
87  POLKITQT1_EXPORT unsigned int versionMinor();
88 
94  POLKITQT1_EXPORT unsigned int versionPatch();
95 
103  POLKITQT1_EXPORT const char* versionString();
104 }
105 
106 #endif
Contains Macros for exporting symbols.
Namespace wrapping Polkit-Qt classes.
Definition: listeneradapter.cpp:26
POLKITQT1_EXPORT const char * versionString()
Returns the PolkitQt-1 version as string, e.g. "1.0.2".
POLKITQT1_EXPORT unsigned int versionMajor()
Returns the major number of PolkitQt-1&#39;s version, e.g. 1 for PolkitQt-1 1.0.2.
POLKITQT1_EXPORT unsigned int versionMinor()
Returns the minor number of PolkitQt-1&#39;s version, e.g. 0 for PolkitQt-1 1.0.2.
POLKITQT1_EXPORT unsigned int versionPatch()
Returns the patch number of PolkitQt-1&#39;s version, e.g. 2 for PolkitQt-1 1.0.2.