X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fserverinfo.h;fp=src%2Fcore%2Fserverinfo.h;h=0000000000000000000000000000000000000000;hp=958c90af0bff6f5f837acae742825764b3cda298;hb=902c95728306e5ba115de84800fc8d5d239c9d62;hpb=06a46322b6107fe4a38c310a6292cc1ef3330950 diff --git a/src/core/serverinfo.h b/src/core/serverinfo.h deleted file mode 100644 index 958c90af..00000000 --- a/src/core/serverinfo.h +++ /dev/null @@ -1,84 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * - * 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. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef _SERVERINFO_H_ -#define _SERVERINFO_H_ - -#include -#include -#include - -#include "global.h" -#include "ircuser.h" - -class ServerInfo : public QObject { - Q_OBJECT - - Q_PROPERTY(QString networkname READ networkname WRITE setNetworkname) - Q_PROPERTY(QString currentServer READ currentServer WRITE setCurrentServer) - Q_PROPERTY(QString ownNick READ ownNick WRITE setOwnNick) - Q_PROPERTY(QList ircUsers READ ircUsers) - -public: - ServerInfo(QObject *parent = 0); - ~ServerInfo(); - - void setNetworkname(const QString &networkname); - QString networkname() const; - - void setCurrentServer(const QString ¤tServer); - QString currentServer() const; - - void setOwnNick(const QString &ownnick); - QString ownNick() const; - - QList ircUsers() const; - IrcUser *newIrcUser(const QString &hostmask); - IrcUser *ircUser(const QString &nickname) const; - - void setTopics(const QHash &topics); - QHash topics() const; - - void updateTopic(const QString &channel, const QString &topic); - QString topic(const QString &channel) const; - - void setSupports(const QHash &supports); - QHash supports() const; - QString supports(const QString &feature) const; - - bool isOwnNick(const QString &nick) const; - bool isOwnNick(const IrcUser &ircuser) const; - -private: - QString networkname_; - QString currentServer_; - QString ownNick_; - - //QVariantMap networkSettings; - //QVariantMap identity; - - QHash ircUsers_; // stores all known nicks for the server - QHash topics_; // stores topics for each buffer - QHash supports_; // stores results from RPL_ISUPPORT -}; - -struct UnsupportedFeatureException : public Exception {}; - -#endif