From cad5696faf07a80fe559e6a64b39df6da357e90f Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 25 Sep 2007 16:34:02 +0000 Subject: [PATCH] 2007-09-25 Marcus Brinkmann * kdpipeiodevice.h: Use namespace _gpgme_. * kdpipeiodevice.cpp: Use namespace _gpgme_. [Q_OS_WIN32 && NOMINMAX]: Do not define NOMINMAX again. * w32-qt-io.cpp: Change namespace of KDPipeIODevice to _gpgme_::KDPipeIODevice. --- trunk/gpgme/ChangeLog | 8 ++++++++ trunk/gpgme/kdpipeiodevice.cpp | 6 +++++- trunk/gpgme/kdpipeiodevice.h | 2 ++ trunk/gpgme/w32-qt-io.cpp | 3 +++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 9465509..3f1da55 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,11 @@ +2007-09-25 Marcus Brinkmann + + * kdpipeiodevice.h: Use namespace _gpgme_. + * kdpipeiodevice.cpp: Use namespace _gpgme_. + [Q_OS_WIN32 && NOMINMAX]: Do not define NOMINMAX again. + * w32-qt-io.cpp: Change namespace of KDPipeIODevice to + _gpgme_::KDPipeIODevice. + 2007-09-17 Werner Koch * rungpg.c (gpg_new): Make robust against undefined ttyname or diff --git a/trunk/gpgme/kdpipeiodevice.cpp b/trunk/gpgme/kdpipeiodevice.cpp index f4acebe..6f48292 100644 --- a/trunk/gpgme/kdpipeiodevice.cpp +++ b/trunk/gpgme/kdpipeiodevice.cpp @@ -26,7 +26,9 @@ #include #ifdef Q_OS_WIN32 -# define NOMINMAX +# ifndef NOMINMAX +# define NOMINMAX +# endif # include # include #else @@ -34,6 +36,8 @@ # include #endif +using namespace _gpgme_; + #ifndef KDAB_CHECK_THIS # define KDAB_CHECK_CTOR (void)1 # define KDAB_CHECK_DTOR KDAB_CHECK_CTOR diff --git a/trunk/gpgme/kdpipeiodevice.h b/trunk/gpgme/kdpipeiodevice.h index ce2873f..37d2a96 100644 --- a/trunk/gpgme/kdpipeiodevice.h +++ b/trunk/gpgme/kdpipeiodevice.h @@ -26,6 +26,8 @@ //#include "checker.h" +namespace _gpgme_ { + class KDPipeIODevice : public QIODevice { Q_OBJECT //KDAB_MAKE_CHECKABLE( KDPipeIODevice ) diff --git a/trunk/gpgme/w32-qt-io.cpp b/trunk/gpgme/w32-qt-io.cpp index c2a231a..989d993 100644 --- a/trunk/gpgme/w32-qt-io.cpp +++ b/trunk/gpgme/w32-qt-io.cpp @@ -53,9 +53,12 @@ extern "C" #endif #endif +using _gpgme_::KDPipeIODevice; + /* This file is an ugly hack to get GPGME working with Qt on Windows targets. On Windows, you can not select() on file descriptors. + The only way to check if there is something to read is to read something. This means that GPGME can not let Qt check for data without letting Qt also handle the data on Windows targets. -- 2.26.2