Q_PROPERTY(int lastAwayMessage READ lastAwayMessage WRITE setLastAwayMessage STORED false)
Q_PROPERTY(QStringList channels READ channels STORED false)
- // Q_PROPERTY(QStringList usermodes READ usermodes WRITE setUsermodes)
+ Q_PROPERTY(QString userModes READ userModes WRITE setUserModes)
public:
IrcUser(const QString &hostmask, Network *network);
void partChannel(IrcChannel *channel);
void partChannel(const QString &channelname);
- void addUserMode(const QString &mode);
- void removeUserMode(const QString &mode);
-
- // init seters
- void initSetChannels(const QStringList channels);
+ void addUserModes(const QString &modes);
+ void removeUserModes(const QString &modes);
signals:
void userSet(QString user);
// void channelJoined(QString channel);
void channelParted(QString channel);
- void userModeAdded(QString mode);
- void userModeRemoved(QString mode);
-
-// void setUsermodes(const QSet<QString> &usermodes);
-// QSet<QString> usermodes() const;
+ void userModesAdded(QString modes);
+ void userModesRemoved(QString modes);
private slots:
void updateObjectName();