From bd56579c7d9de94c17287adefa118290e6b7ba33 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 23 Feb 2018 23:49:48 +0000 Subject: New upstream version 1.4.0.3 --- interface/PluginInterface_Themes.h | 44 ++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'interface/PluginInterface_Themes.h') 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 -#include +#include +#include #include #include -#include -#include -#include +#include #include #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 &returnActions) = 0; + virtual void getActionOnList(const std::vector &returnActions) = 0; /// \brief show the general progression - virtual void setGeneralProgression(const quint64 ¤t,const quint64 &total) = 0; + virtual void setGeneralProgression(const uint64_t ¤t,const uint64_t &total) = 0; /// \brief show the file progression - virtual void setFileProgression(const QList &progressionList) = 0; + virtual void setFileProgression(const std::vector &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 &ids) const; - void moveItemsOnTop(const QList &ids) const; - void moveItemsUp(const QList &ids) const; - void moveItemsDown(const QList &ids) const; - void moveItemsOnBottom(const QList &ids) const; + void removeItems(const std::vector &ids) const; + void moveItemsOnTop(const std::vector &ids) const; + void moveItemsUp(const std::vector &ids) const; + void moveItemsDown(const std::vector &ids) const; + void moveItemsOnBottom(const std::vector &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 &urls) const; + void urlDropped(const std::vector &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 -- cgit v1.2.3