messagelist
storagemodel.cpp
Go to the documentation of this file.
102 StorageModel::StorageModel( QAbstractItemModel *model, QItemSelectionModel *selectionModel, QObject *parent )
110 Akonadi::SelectionProxyModel *childrenFilter = new Akonadi::SelectionProxyModel( d->mSelectionModel, this );
126 connect(watcher, SIGNAL(propertyChanged(Nepomuk2::Resource,Nepomuk2::Types::Property,QVariantList,QVariantList)),
128 connect(watcher, SIGNAL(propertyRemoved(Nepomuk2::Resource,Nepomuk2::Types::Property,QVariant)),
260 static const QString noSubject = i18nc( "displayed as subject when the subject of a mail is empty", "No Subject" );
261 static const QString unknown( i18nc( "displayed when a mail has unknown sender, receiver or date", "Unknown" ) );
411 QMimeData* StorageModel::mimeData( const QList< MessageList::Core::MessageItem* >& items ) const
433 const Akonadi::Item item = Item::fromUrl( statement.property(Nepomuk2::Vocabulary::NIE::url()).toUrl() );
437 const QModelIndexList list = mModel->match( QModelIndex(), EntityTreeModel::ItemIdRole, item.id() );
445 void StorageModel::Private::onSourceDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight )
463 Core::MessageItem::setImportantMessageColor( MessageList::Util::importantDefaultMessageColor() );
KMime::Message::Ptr messageForRow(int row) const
Definition: storagemodel.cpp:489
virtual bool initializeMessageItem(MessageList::Core::MessageItem *mi, int row, bool bUseReceiver) const
This method should use the inner model implementation to fill in the base data for the specified Mess...
Definition: storagemodel.cpp:241
virtual bool containsOutboundMessages() const
Returns true if this StorageModel (folder) contains outbound messages and false otherwise.
Definition: storagemodel.cpp:211
static void setUnreadMessageColor(const QColor &color)
Definition: messageitem.cpp:649
Definition: messageitem.h:50
MESSAGELIST_EXPORT QColor importantDefaultMessageColor()
Definition: messagelistutil.cpp:114
virtual int initialUnreadRowCountGuess() const
Returns (a guess for) the number of unread messages: must be pessimistic (i.e.
Definition: storagemodel.cpp:225
static void setImportantMessageColor(const QColor &color)
Definition: messageitem.cpp:655
virtual void fillMessageItemThreadingData(MessageList::Core::MessageItem *mi, int row, ThreadingDataSubset subset) const
This method should use the inner model implementation to fill in the specified subset of threading da...
Definition: storagemodel.cpp:297
void setStrippedSubjectMD5(const QByteArray &md5)
Definition: messageitem.cpp:530
void setMessageIdMD5(const QByteArray &md5)
Definition: messageitem.cpp:482
void setAkonadiItem(const Akonadi::Item &item)
Definition: messageitem.cpp:572
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: storagemodel.cpp:404
void setSubject(const QString &subject)
Sets the subject associated to this Item.
Definition: item.cpp:477
static void setToDoMessageFont(const QFont &font)
Definition: messageitem.cpp:685
ThreadingDataSubset
Definition: storagemodelbase.h:95
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: storagemodel.cpp:383
virtual void updateMessageItemData(MessageList::Core::MessageItem *mi, int row) const
This method should use the inner model implementation to re-fill the date, the status, the encryption state, the signature state and eventually update the min/max dates for the specified MessageItem from the underlying storage slot at the specified row index.
Definition: storagemodel.cpp:329
Akonadi::Collection::List displayedCollections() const
Definition: storagemodel.cpp:171
void setInReplyToIdMD5(const QByteArray &md5)
Definition: messageitem.cpp:494
Definition: settings.h:19
void setEncryptionState(EncryptionState state)
Definition: messageitem.cpp:470
void setReferencesIdMD5(const QByteArray &md5)
Definition: messageitem.cpp:506
void resetModelStorage()
Definition: storagemodel.cpp:494
int currentModelIndexRow()
Returns the current model index row for this invariant index.
Definition: modelinvariantindex.cpp:47
virtual void prepareForScan()
Called by Model just before this StorageModel is attacched to it.
Definition: storagemodel.cpp:426
messageIdMD5, inReplyToMD5, referencesIdMD5
Definition: storagemodelbase.h:98
virtual bool isOutBoundFolder(const Akonadi::Collection &c) const
Definition: storagemodel.cpp:202
virtual QModelIndex parent(const QModelIndex &index) const
Definition: storagemodel.cpp:398
void setSignatureState(SignatureState state)
Definition: messageitem.cpp:458
MESSAGELIST_EXPORT QColor todoDefaultMessageColor()
Definition: messagelistutil.cpp:119
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: storagemodel.cpp:390
void setSubjectIsPrefixed(bool subjectIsPrefixed)
Definition: messageitem.cpp:512
static void setUnreadMessageFont(const QFont &font)
Definition: messageitem.cpp:673
static void setImportantMessageFont(const QFont &font)
Definition: messageitem.cpp:679
static void setToDoMessageColor(const QColor &color)
Definition: messageitem.cpp:661
MESSAGELIST_EXPORT QColor unreadDefaultMessageColor()
Definition: messagelistutil.cpp:109
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: storagemodel.cpp:367
virtual QMimeData * mimeData(const QList< MessageList::Core::MessageItem * > &) const
The implementation-specific mime data for this list of items.
Definition: storagemodel.cpp:411
virtual void setMessageItemStatus(MessageList::Core::MessageItem *mi, int row, const Akonadi::MessageStatus &status)
This method should use the inner model implementation to associate the new status to the specified me...
Definition: storagemodel.cpp:356
All of the above plus subject stuff.
Definition: storagemodelbase.h:99
The Akonadi specific implementation of the Core::StorageModel.
Definition: storagemodel.h:48
static void setGeneralFont(const QFont &font)
Definition: messageitem.cpp:667
Akonadi::Item itemForRow(int row) const
Definition: storagemodel.cpp:484
void initialSetup(time_t date, size_t size, const QString &sender, const QString &receiver, bool useReceiver)
This is meant to be called right after the constructor.
Definition: item.cpp:482
virtual QString id() const
Returns an unique id for this Storage collection.
Definition: storagemodel.cpp:186
Only the data for messageIdMD5 and inReplyToMD5 is needed.
Definition: storagemodelbase.h:97
void invalidateAnnotationCache()
Same as invalidateTagCache(), only for the annotation.
Definition: messageitem.cpp:356
void setStatus(const Akonadi::MessageStatus &status)
Sets the status associated to this Item.
Definition: item.cpp:407
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.