• Main Page
  • Classes
  • Files
  • File List

Swiften/Base/boost_bsignals.h

00001 /*
00002  * Copyright (c) 2010 Remko Tronçon
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
00005  */
00006 
00007 // Work around for the boost::signals / Qt signals keyword clash.
00008 // Based on an example from Frank Hess, improved by Niels Dekker
00009 
00010 #pragma once
00011 
00012 #if defined(signals) && defined(Q_SIGNALS) && !defined(QT_MOC_CPP)
00013 #undef signals
00014 #define signals signals
00015 #endif
00016 
00017 #include <boost/signal.hpp>
00018 
00019 namespace boost {
00020   namespace bsignals = signals;
00021 }
00022 
00023 #if defined(signals) && defined(Q_SIGNALS) && !defined(QT_MOC_CPP)
00024 #undef signals
00025 #define signals Q_SIGNALS
00026 #endif

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1