summaryrefslogtreecommitdiff
path: root/plugins/Themes/Oxygen/TransferModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Themes/Oxygen/TransferModel.h')
-rw-r--r--plugins/Themes/Oxygen/TransferModel.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/Themes/Oxygen/TransferModel.h b/plugins/Themes/Oxygen/TransferModel.h
index 86fd1b4..913c96a 100644
--- a/plugins/Themes/Oxygen/TransferModel.h
+++ b/plugins/Themes/Oxygen/TransferModel.h
@@ -10,13 +10,16 @@
#include <QString>
#include "StructEnumDefinition.h"
+#include "Environment.h"
#include "../../../interface/FacilityInterface.h"
+/// \brief model to store the transfer list
class TransferModel : public QAbstractTableModel
{
Q_OBJECT
public:
+ /// \brief the transfer item displayed
struct transfertItem
{
quint64 id;
@@ -24,6 +27,7 @@ public:
QString size;
QString destination;
};
+ /// \brief the transfer item with progression
struct ItemOfCopyListWithMoreInformations
{
quint64 currentProgression;
@@ -31,6 +35,7 @@ public:
ActionTypeCopyList actionType;
bool custom_with_progression;
};
+ /// \brief returned first transfer item
struct currentTransfertItem
{
quint64 id;
@@ -55,13 +60,15 @@ public:
int search(const QString &text,bool searchNext);
int searchPrev(const QString &text);
- void setFileProgression(const QList<ProgressionItem> &progressionList);
+ void setFileProgression(QList<ProgressionItem> &progressionList);
currentTransfertItem getCurrentTransfertItem();
+
+ quint64 firstId();
protected:
QList<transfertItem> transfertItemList;///< To have a transfer list for the user
- QList<quint64> startId,stopId;///< To show what is started, what is stopped
- QList<ItemOfCopyListWithMoreInformations> InternalRunningOperation;///< to have progression and stat
+ QSet<quint64> startId,stopId;///< To show what is started, what is stopped
+ QHash<quint64,ItemOfCopyListWithMoreInformations> internalRunningOperation;///< to have progression and stat
QIcon start,stop;
private:
int loop_size,index_for_loop;
@@ -74,6 +81,11 @@ private:
int currentIndexSearch;
bool haveSearchItem;
quint64 searchId;
+signals:
+ #ifdef ULTRACOPIER_PLUGIN_DEBUG
+ /// \brief To debug source
+ void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne);
+ #endif
};
#endif // TRANSFERMODEL_H