dbusmenu-qt 0.9.2

src/dbusmenu_version.h

00001 /* This file is part of the KDE libraries
00002    Copyright 2010 Canonical
00003    Author: Aurelien Gateau <aurelien.gateau@canonical.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License (LGPL) as published by the Free Software Foundation;
00008    either version 2 of the License, or (at your option) any later
00009    version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 #ifndef DBUSMENUQT_VERSION_H
00022 #define DBUSMENUQT_VERSION_H
00023 
00024 #define DBUSMENUQT_VERSION_MAJOR 0
00025 #define DBUSMENUQT_VERSION_MINOR 9
00026 #define DBUSMENUQT_VERSION_PATCH 2
00027 
00028 #define DBUSMENUQT_MAKE_VERSION(a, b, c) (((a) << 16) | ((b) << 8) | (c))
00029 
00030 #define DBUSMENUQT_VERSION DBUSMENUQT_MAKE_VERSION( \
00031     DBUSMENUQT_VERSION_MAJOR, \
00032     DBUSMENUQT_VERSION_MINOR, \
00033     DBUSMENUQT_VERSION_PATCH)
00034 
00035 // Use this macro to add code which depends on a minimum version of dbusmenu-qt
00036 #define DBUSMENUQT_IS_VERSION(a, b, c) \
00037     (DBUSMENUQT_VERSION >= DBUSMENUQT_MAKE_VERSION(a, b, c))
00038 
00039 #endif /*DBUSMENUQT_VERSION_H */
 All Classes Functions