diff options
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/db_events.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp index fefc83ba02..c3135bfa76 100644 --- a/src/mir_app/src/db_events.cpp +++ b/src/mir_app/src/db_events.cpp @@ -308,6 +308,14 @@ DB::FILE_BLOB::FILE_BLOB(const DB::EventInfo &dbei) DB::FILE_BLOB::~FILE_BLOB()
{}
+bool DB::FILE_BLOB::isCompleted() const
+{
+ if (m_iFileSize == -1)
+ return true;
+
+ return m_iFileSize != 0 && m_iFileSize == m_iTransferred;
+}
+
void DB::FILE_BLOB::write(DB::EventInfo &dbei)
{
JSONNode root;
|