2016-03-23 15:47:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Klaas Freitag <freitag@owncloud.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2016-10-25 09:00:07 +00:00
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2016-03-23 15:47:13 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QtCore>
|
|
|
|
|
|
|
|
#include "activitydata.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace OCC
|
|
|
|
{
|
|
|
|
|
2016-03-29 12:09:19 +00:00
|
|
|
bool operator<( const Activity& rhs, const Activity& lhs ) {
|
|
|
|
return rhs._dateTime.toMSecsSinceEpoch() > lhs._dateTime.toMSecsSinceEpoch();
|
2016-03-23 15:47:13 +00:00
|
|
|
}
|
|
|
|
|
2016-03-29 12:09:19 +00:00
|
|
|
bool operator==( const Activity& rhs, const Activity& lhs ) {
|
|
|
|
return (rhs._type == lhs._type && rhs._id== lhs._id && rhs._accName == lhs._accName);
|
2016-03-23 15:47:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Activity::Identifier Activity::ident() const {
|
|
|
|
return Identifier( _id, _accName );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|