X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fircuser.h;h=0ca81a1712cf34c851312aacba47e6255e3d9db5;hp=33dd143262ea5bd15af20eb8699f567ce4bb342b;hb=f9fc50a5e043668a2525a6c0903ea339d4ba05b7;hpb=e008cd12ef319c4b5f9fe5a8cc1524829551771d diff --git a/src/common/ircuser.h b/src/common/ircuser.h index 33dd1432..0ca81a17 100644 --- a/src/common/ircuser.h +++ b/src/common/ircuser.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC 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 * @@ -26,11 +26,13 @@ #include #include +#include "syncableobject.h" + class SignalProxy; -class NetworkInfo; +class Network; class IrcChannel; -class IrcUser : public QObject { +class IrcUser : public SyncableObject { Q_OBJECT Q_PROPERTY(QString user READ user WRITE setUser STORED false) @@ -41,7 +43,7 @@ class IrcUser : public QObject { // Q_PROPERTY(QStringList usermodes READ usermodes WRITE setUsermodes) public: - IrcUser(const QString &hostmask, NetworkInfo *networkInfo); + IrcUser(const QString &hostmask, Network *network); virtual ~IrcUser(); bool initialized() const; @@ -50,6 +52,7 @@ public: QString host() const; QString nick() const; QString hostmask() const; + Network *network() const; QString userModes() const; @@ -131,7 +134,7 @@ private: QSet _channels; QString _userModes; - NetworkInfo *networkInfo; + Network *_network; QTextCodec *_codecForEncoding; QTextCodec *_codecForDecoding;