Features come and features go...
[quassel.git] / src / common / bufferinfo.h
index b743054..0597adc 100644 (file)
@@ -1,11 +1,11 @@
 /***************************************************************************
- *   Copyright (C) 2005-07 by The Quassel IRC Development Team             *
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
+ *   (at your option) version 3.                                           *
  *                                                                         *
  *   This program is distributed in the hope that it will be useful,       *
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
@@ -21,6 +21,7 @@
 #define _BUFFERINFO_H_
 
 #include <QtCore>
+#include "types.h"
 
 class QString;
 class QDataStream;
@@ -30,8 +31,8 @@ public:
   BufferInfo();
   BufferInfo(uint id, uint networkid, uint gid = 0, QString net = QString(), QString buf = QString());
   
-  inline uint uid() const { return _id; }
-  inline uint networkId() const { return _netid; }
+  inline BufferId uid() const { return _id; }
+  inline NetworkId networkId() const { return _netid; }
   inline uint groupId() const { return _gid; }
   inline QString network() const { return _networkName; }
   QString buffer() const;
@@ -54,6 +55,7 @@ private:
 
 QDataStream &operator<<(QDataStream &out, const BufferInfo &bufferInfo);
 QDataStream &operator>>(QDataStream &in, BufferInfo &bufferInfo);
+QDebug operator<<(QDebug dbg, const BufferInfo &b);
 
 Q_DECLARE_METATYPE(BufferInfo);