This commit is contained in:
Martin Rotter 2013-11-29 22:00:08 +01:00
parent 1b0f114fa6
commit 4340f5c250
2 changed files with 22 additions and 2 deletions

View file

@ -230,6 +230,18 @@ bool MessagesModel::setBatchMessagesRead(const QModelIndexList &messages, int re
} }
bool MessagesModel::switchAllMessageImportance() {
return false;
}
bool MessagesModel::setAllMessagesDeleted(int deleted) {
return false;
}
bool MessagesModel::setAllMessagesRead(int read) {
return false;
}
QVariant MessagesModel::headerData(int section, QVariant MessagesModel::headerData(int section,
Qt::Orientation orientation, Qt::Orientation orientation,
int role) const { int role) const {

View file

@ -64,6 +64,14 @@ class MessagesModel : public QSqlTableModel {
bool setBatchMessagesDeleted(const QModelIndexList &messages, int deleted); bool setBatchMessagesDeleted(const QModelIndexList &messages, int deleted);
bool setBatchMessagesRead(const QModelIndexList &messages, int read); bool setBatchMessagesRead(const QModelIndexList &messages, int read);
// ALL messages manipulators.
// NOTE: These methods are used for changing of attributes
// of many messages via DIRECT SQL calls.
// List of loaded feed ids is used for WHERE clause.
bool switchAllMessageImportance();
bool setAllMessagesDeleted(int deleted);
bool setAllMessagesRead(int read);
// Fetches ALL available data to the model. // Fetches ALL available data to the model.
// NOTE: This is almost always needed when sorting // NOTE: This is almost always needed when sorting
// and makes the model more predictable. // and makes the model more predictable.