29 #ifndef IRCUSERMODEL_H
30 #define IRCUSERMODEL_H
34 #include <QtCore/qstringlist.h>
35 #include <QtCore/qabstractitemmodel.h>
42 class IrcUserModelPrivate;
47 Q_PROPERTY(
int count READ count NOTIFY countChanged)
48 Q_PROPERTY(
bool empty READ isEmpty NOTIFY emptyChanged)
50 Q_PROPERTY(
QStringList titles READ titles NOTIFY titlesChanged)
52 Q_PROPERTY(
Irc::
DataRole displayRole READ displayRole WRITE setDisplayRole)
53 Q_PROPERTY(
IrcChannel* channel READ channel WRITE setChannel NOTIFY channelChanged)
54 Q_PROPERTY(
Irc::
SortMethod sortMethod READ sortMethod WRITE setSortMethod)
55 Q_PROPERTY(
Qt::SortOrder sortOrder READ sortOrder WRITE setSortOrder)
69 Q_INVOKABLE
IrcUser* get(
int index) const;
71 Q_INVOKABLE
bool contains(const
QString& name) const;
72 Q_INVOKABLE
int indexOf(
IrcUser* user) const;
80 Qt::SortOrder sortOrder() const;
81 void setSortOrder(
Qt::SortOrder order);
93 void sort(
int column = 0,
Qt::SortOrder order =
Qt::AscendingOrder);
99 void aboutToBeAdded(
IrcUser* user);
100 void aboutToBeRemoved(
IrcUser* user);
101 void countChanged(
int count);
102 void emptyChanged(
bool empty);
112 friend class IrcUserLessThan;
113 friend class IrcChannelPrivate;
114 friend class IrcUserGreaterThan;
116 Q_DECLARE_PRIVATE(IrcUserModel)
117 Q_DISABLE_COPY(IrcUserModel)
122 #endif // IRCUSERMODEL_H
DataRole
Definition: irc.h:82
Keeps track of user status on a channel.
Definition: ircuser.h:42
Miscellaneous identifiers used throughout the library.
Definition: irc.h:40
Keeps track of channel users.
Definition: ircusermodel.h:44
Keeps track of channel status.
Definition: ircchannel.h:40
The base class of all messages.
Definition: ircmessage.h:47
SortMethod
Definition: irc.h:92