Add CapNegotiation Feature flag, fix CMakeLists
authorShane Synan <digitalcircuit36939@gmail.com>
Fri, 27 May 2016 03:57:54 +0000 (23:57 -0400)
committerShane Synan <digitalcircuit36939@gmail.com>
Mon, 13 Jun 2016 21:00:49 +0000 (17:00 -0400)
Add CapNegotiation Feature flag to Quassel's CoreFeatures list.
Technically, this isn't needed - newer clients can connect to older
cores just fine.  However, it may be useful to know if the core
supports cap negotiation or account-tracking in the future, and
there's no way to retroactively add this flag once 0.13 is released.

Remove an unneccessary semicolon at the end of Q_DECLARE_FLAGS.

Add quassel.h to CMakeLists.txt, so automoc includes it and it shows
up in Qt Creator.

src/common/CMakeLists.txt
src/common/quassel.h

index b2aa200..66416c3 100644 (file)
@@ -44,6 +44,7 @@ set(SOURCES
     # needed for automoc
     coreinfo.h
     irccap.h
+    protocol.h
 )
 
 if (USE_QT5)
index ba883b0..09a5d84 100644 (file)
@@ -71,10 +71,11 @@ public:
         SaslExternal = 0x0004,
         HideInactiveNetworks = 0x0008,
         PasswordChange = 0x0010,
+        CapNegotiation = 0x0020,           /// IRCv3 capability negotiation, account tracking
 
-        NumFeatures = 0x0010
+        NumFeatures = 0x0020
     };
-    Q_DECLARE_FLAGS(Features, Feature);
+    Q_DECLARE_FLAGS(Features, Feature)
 
     //! The features the current version of Quassel supports (\sa Feature)
     /** \return An ORed list of all enum values in Feature