Move the PeerPtr declaration out of types.h
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 26 Mar 2014 21:03:21 +0000 (22:03 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 26 Mar 2014 21:03:21 +0000 (22:03 +0100)
This belongs in peer.h instead, since types.h is included in lots
of places that should not drag the peer deps in. Also, this caused
problems (circular deps?) when building the OSX notification backend.

src/common/peer.h
src/common/transfer.h
src/common/types.h
src/core/sslserver.cpp

index de9a4b6..2bdcc56 100644 (file)
@@ -82,6 +82,10 @@ private:
     QPointer<AuthHandler> _authHandler;
 };
 
+// We need to special-case Peer* in attached signals/slots, so typedef it for the meta type system
+typedef Peer * PeerPtr;
+Q_DECLARE_METATYPE(PeerPtr)
+
 
 // Template method needed in the header
 template<typename T> inline
index 31421cd..cacfeaa 100644 (file)
@@ -24,8 +24,8 @@
 #include <QHostAddress>
 #include <QUuid>
 
+#include "peer.h"
 #include "syncableobject.h"
-#include "types.h"
 
 class Transfer : public SyncableObject
 {
index 290d53f..a63e296 100644 (file)
 #include <QHostAddress>
 #include <QDataStream>
 
-#include "peer.h"
-
-// We need to special-case Peer* in attached signals/slots, so typedef it for the meta type system
-typedef Peer * PeerPtr;
-Q_DECLARE_METATYPE(PeerPtr)
-
 class SignedId
 {
 protected:
index 997578a..203c377 100644 (file)
@@ -24,6 +24,7 @@
 #  include <QSslSocket>
 #endif
 
+#include <QDateTime>
 #include <QFile>
 
 #include "logger.h"