Skip to content
Snippets Groups Projects
Commit 89ed96e8 authored by Dennis Beier's avatar Dennis Beier
Browse files

implemented inIntervall function (for deletion)

parent 390545a3
No related branches found
No related tags found
Loading
...@@ -197,3 +197,8 @@ void RocketChatMessage::setRoomeTyp( const QString &value ) ...@@ -197,3 +197,8 @@ void RocketChatMessage::setRoomeTyp( const QString &value )
{ {
roomeTyp = value; roomeTyp = value;
} }
bool RocketChatMessage::inTimeIntervall(const qint64 newt,const qint64 oldt)
{
return getTimestamp() >= oldt && getTimestamp() <= newt;
}
...@@ -96,7 +96,7 @@ class RocketChatMessage ...@@ -96,7 +96,7 @@ class RocketChatMessage
const QString &getRoomeTyp() const; const QString &getRoomeTyp() const;
void setRoomeTyp( const QString &value ); void setRoomeTyp( const QString &value );
bool inTimeIntervall(const qint64 newt,const qint64 oldt);
protected: protected:
bool empty = false; bool empty = false;
qint64 timestamp = 0; qint64 timestamp = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment