Commit e7ca41ea authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add Q_REQUIRED result

parent 9599bf96
......@@ -73,6 +73,16 @@ bool Filter::match(const MessageItem *item) const
return true;
}
QVector<Akonadi::MessageStatus> Filter::status() const
{
return mStatus;
}
void Filter::setStatus(const QVector<Akonadi::MessageStatus> &lstStatus)
{
mStatus = lstStatus;
}
bool Filter::isEmpty() const
{
if (!mStatus.isEmpty()) {
......@@ -104,6 +114,11 @@ void Filter::setCurrentFolder(const Akonadi::Collection &folder)
mCurrentFolder = folder;
}
const QString &Filter::searchString() const
{
return mSearchString;
}
QuickSearchLine::SearchOptions Filter::currentOptions() const
{
return mOptions;
......@@ -172,3 +187,13 @@ void Filter::setSearchString(const QString &search, QuickSearchLine::SearchOptio
}
Q_EMIT finished();
}
const QString &Filter::tagId() const
{
return mTagId;
}
void Filter::setTagId(const QString &tagId)
{
mTagId = tagId;
}
......@@ -43,18 +43,12 @@ public:
/**
* Returns the currently set status mask
*/
Q_REQUIRED_RESULT QVector<Akonadi::MessageStatus> status() const
{
return mStatus;
}
Q_REQUIRED_RESULT QVector<Akonadi::MessageStatus> status() const;
/**
* Sets the status mask for this filter.
*/
void setStatus(const QVector<Akonadi::MessageStatus> &lstStatus)
{
mStatus = lstStatus;
}
void setStatus(const QVector<Akonadi::MessageStatus> &lstStatus);
/**
* Sets the current folder of this filter.
......@@ -64,10 +58,7 @@ public:
/**
* Returns the currently set search string.
*/
const QString &searchString() const
{
return mSearchString;
}
Q_REQUIRED_RESULT const QString &searchString() const;
/**
* Sets the search string for this filter.
......@@ -77,18 +68,12 @@ public:
/**
* Returns the currently set MessageItem::Tag id
*/
const QString &tagId() const
{
return mTagId;
}
Q_REQUIRED_RESULT const QString &tagId() const;
/**
* Sets the id of a MessageItem::Tag that the matching messages must contain.
*/
void setTagId(const QString &tagId)
{
mTagId = tagId;
}
void setTagId(const QString &tagId);
/**
* Clears this filter (sets status to 0, search string and tag id to empty strings)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment