X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fircchannel.h;h=7275cd6700846062de70d71911b83cfbab488f34;hb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;hp=d9fe9e92591dcf0053cc056f1c32f8aba2eb2508;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/common/ircchannel.h b/src/common/ircchannel.h index d9fe9e92..7275cd67 100644 --- a/src/common/ircchannel.h +++ b/src/common/ircchannel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef IRCCHANNEL_H -#define IRCCHANNEL_H +#pragma once + +#include "common-export.h" #include #include @@ -32,18 +33,18 @@ class IrcUser; class Network; -class IrcChannel : public SyncableObject +class COMMON_EXPORT IrcChannel : public SyncableObject { - SYNCABLE_OBJECT Q_OBJECT + SYNCABLE_OBJECT - Q_PROPERTY(QString name READ name STORED false) - Q_PROPERTY(QString topic READ topic WRITE setTopic STORED false) - Q_PROPERTY(QString password READ password WRITE setPassword STORED false) - Q_PROPERTY(bool encrypted READ encrypted WRITE setEncrypted STORED false) + Q_PROPERTY(QString name READ name) + Q_PROPERTY(QString topic READ topic WRITE setTopic) + Q_PROPERTY(QString password READ password WRITE setPassword) + Q_PROPERTY(bool encrypted READ encrypted WRITE setEncrypted) public : - IrcChannel(const QString &channelname, Network *network); + IrcChannel(const QString &channelname, Network *network); ~IrcChannel(); bool isKnownUser(IrcUser *ircuser) const; @@ -150,6 +151,3 @@ private: QHash _C_channelModes; QSet _D_channelModes; }; - - -#endif