summaryrefslogtreecommitdiff
path: root/interface/PluginInterface_Themes.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2018-02-23 23:49:48 +0000
committerThomas Preud'homme <robotux@celest.fr>2018-02-23 23:49:48 +0000
commitbd56579c7d9de94c17287adefa118290e6b7ba33 (patch)
tree666d7d0b6945b442573b7a3145969f66a53aa460 /interface/PluginInterface_Themes.h
parentb3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (diff)
New upstream version 1.4.0.3
Diffstat (limited to 'interface/PluginInterface_Themes.h')
-rw-r--r--interface/PluginInterface_Themes.h44
1 files changed, 21 insertions, 23 deletions
diff --git a/interface/PluginInterface_Themes.h b/interface/PluginInterface_Themes.h
index 7d8c3f6..7272c79 100644
--- a/interface/PluginInterface_Themes.h
+++ b/interface/PluginInterface_Themes.h
@@ -6,13 +6,11 @@
#ifndef PLUGININTERFACE_THEMES_H
#define PLUGININTERFACE_THEMES_H
-#include <QStringList>
-#include <QString>
+#include <vector>
+#include <string>
#include <QObject>
#include <QWidget>
-#include <QList>
-#include <QPair>
-#include <QUrl>
+#include <utility>
#include <QIcon>
#include "OptionInterface.h"
@@ -30,25 +28,25 @@ class PluginInterface_Themes : public QWidget
virtual void actionInProgess(const Ultracopier::EngineActionInProgress&) = 0;
/// \brief the new folder is listing
- virtual void newFolderListing(const QString &path) = 0;
+ virtual void newFolderListing(const std::string &path) = 0;
/** \brief show the detected speed
* in byte per seconds */
- virtual void detectedSpeed(const quint64 &speed) = 0;
+ virtual void detectedSpeed(const uint64_t &speed) = 0;
/** \brief show the remaining time
* time in seconds */
virtual void remainingTime(const int &remainingSeconds) = 0;
/// \brief set one error is detected
virtual void errorDetected() = 0;
/// \brief new error
- virtual void errorToRetry(const QString &source,const QString &destination,const QString &error) = 0;
+ virtual void errorToRetry(const std::string &source,const std::string &destination,const std::string &error) = 0;
/** \brief support speed limitation */
virtual void setSupportSpeedLimitation(const bool &supportSpeedLimitationBool) = 0;
/// \brief get action on the transfer list (add/move/remove)
- virtual void getActionOnList(const QList<Ultracopier::ReturnActionOnCopyList> &returnActions) = 0;
+ virtual void getActionOnList(const std::vector<Ultracopier::ReturnActionOnCopyList> &returnActions) = 0;
/// \brief show the general progression
- virtual void setGeneralProgression(const quint64 &current,const quint64 &total) = 0;
+ virtual void setGeneralProgression(const uint64_t &current,const uint64_t &total) = 0;
/// \brief show the file progression
- virtual void setFileProgression(const QList<Ultracopier::ProgressionItem> &progressionList) = 0;
+ virtual void setFileProgression(const std::vector<Ultracopier::ProgressionItem> &progressionList) = 0;
public:
/// \brief get the widget for the copy engine
virtual QWidget * getOptionsEngineWidget() = 0;
@@ -68,25 +66,25 @@ class PluginInterface_Themes : public QWidget
// signal to implement
signals:
//set the transfer list
- void removeItems(const QList<int> &ids) const;
- void moveItemsOnTop(const QList<int> &ids) const;
- void moveItemsUp(const QList<int> &ids) const;
- void moveItemsDown(const QList<int> &ids) const;
- void moveItemsOnBottom(const QList<int> &ids) const;
+ void removeItems(const std::vector<uint64_t> &ids) const;
+ void moveItemsOnTop(const std::vector<uint64_t> &ids) const;
+ void moveItemsUp(const std::vector<uint64_t> &ids) const;
+ void moveItemsDown(const std::vector<uint64_t> &ids) const;
+ void moveItemsOnBottom(const std::vector<uint64_t> &ids) const;
void exportTransferList() const;
void importTransferList() const;
void exportErrorIntoTransferList() const;
//user ask ask to add folder (add it with interface ask source/destination)
void userAddFolder(const Ultracopier::CopyMode &mode) const;
void userAddFile(const Ultracopier::CopyMode &mode) const;
- void urlDropped(const QList<QUrl> &urls) const;
+ void urlDropped(const std::vector<std::string> &urls) const;
//action on the copy
void pause() const;
void resume() const;
- void skip(const quint64 &id) const;
+ void skip(const uint64_t &id) const;
void cancel() const;
//edit the action
- void newSpeedLimitation(const qint64 &speedLimitation) const;///< -1 if not able, 0 if disabled
+ void newSpeedLimitation(const uint64_t &speedLimitation) const;///< -1 if not able, 0 if disabled
};
/// \brief To define the interface for the factory to do themes instance
@@ -97,11 +95,11 @@ class PluginInterface_ThemesFactory : public QObject
/// \brief to get one instance
virtual PluginInterface_Themes * getInstance() = 0;
/// \brief to set resources, writePath can be empty if read only mode
- virtual void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion) = 0;
+ virtual void setResources(OptionInterface * options,const std::string &writePath,const std::string &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion) = 0;
/// \brief to get the default options widget
virtual QWidget * options() = 0;
/// \brief to get a resource icon
- virtual QIcon getIcon(const QString &fileName) const = 0;
+ virtual QIcon getIcon(const std::string &fileName) const = 0;
public slots:
/// \brief to reset as default the local options
virtual void resetOptions() = 0;
@@ -109,9 +107,9 @@ class PluginInterface_ThemesFactory : public QObject
virtual void newLanguageLoaded() = 0;
signals:
/// \brief To debug source
- void debugInformation(const Ultracopier::DebugLevel &level,const QString &fonction,const QString &text,const QString &file,const int &ligne) const;
+ void debugInformation(const Ultracopier::DebugLevel &level,const std::string &fonction,const std::string &text,const std::string &file,const int &ligne) const;
};
-Q_DECLARE_INTERFACE(PluginInterface_ThemesFactory,"first-world.info.ultracopier.PluginInterface.ThemesFactory/1.0.1.0");
+Q_DECLARE_INTERFACE(PluginInterface_ThemesFactory,"first-world.info.ultracopier.PluginInterface.ThemesFactory/1.2.4.0");
#endif // PLUGININTERFACE_THEMES_H