summaryrefslogtreecommitdiff
path: root/Core.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
committerThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
commit3ac113857071fc1f225b2e1b42547269e568c6b7 (patch)
tree8b28dd9c44a0d3c7ab8187cd8d8f19d47591d813 /Core.h
parent9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (diff)
New upstream version 2.2.4.4
Diffstat (limited to 'Core.h')
-rwxr-xr-x[-rw-r--r--]Core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Core.h b/Core.h
index cd8733e..8b40ae3 100644..100755
--- a/Core.h
+++ b/Core.h
@@ -14,6 +14,10 @@
#include <QTime>
#include <QFile>
#include <QUrl>
+#ifndef NOAUDIO
+#include <QBuffer>
+#include <QAudioOutput>
+#endif
#include "Environment.h"
#include "StructEnumDefinition.h"
@@ -64,6 +68,7 @@ class Core : public QObject
std::string collisionAction;
std::string errorAction;
bool isPaused;
+ bool havePause;
bool isRunning;
Ultracopier::CopyType type;
Ultracopier::TransferListOperation transferListOperation;
@@ -129,6 +134,12 @@ class Core : public QObject
LogThread log;///< To save the log like mkpath, rmpath, error, copy, ...
uint64_t realByteTransfered;
+ #ifndef NOAUDIO
+ QBuffer buffer;
+ QAudioOutput *audio;
+ std::string soundFile;
+ #endif
+
static uint8_t fileCatNumber(uint64_t size);
signals:
void copyFinished(const uint32_t & orderId,bool withError) const;