Add operator != to Plasma::QueryMatch

This commit is contained in:
Aurélien Gâteau 2012-05-11 15:46:29 +02:00
parent d68f439477
commit f75b1e7d10
2 changed files with 6 additions and 0 deletions

View File

@ -265,6 +265,11 @@ bool QueryMatch::operator==(const QueryMatch &other) const
return (d == other.d);
}
bool QueryMatch::operator!=(const QueryMatch &other) const
{
return (d != other.d);
}
void QueryMatch::run(const RunnerContext &context) const
{
//kDebug() << "we run the term" << context->query() << "whose type is" << context->mimetype();

View File

@ -84,6 +84,7 @@ class PLASMA_EXPORT QueryMatch
~QueryMatch();
QueryMatch &operator=(const QueryMatch &other);
bool operator==(const QueryMatch &other) const;
bool operator!=(const QueryMatch &other) const;
bool operator<(const QueryMatch &other) const;