diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2013-03-21 11:01:59 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2013-03-21 11:01:59 +0100 |
commit | e297dbd8052ef4e66f069e2dd1865ae7fa8af28e (patch) | |
tree | 342fea0a2f6f33b8b62dad2d1729f8209da1a1ba /interface | |
parent | 8f9f382e1c97cab2e72e97495650c73ac4b97314 (diff) |
Imported Upstream version 0.3.1.0
Diffstat (limited to 'interface')
-rw-r--r-- | interface/FacilityInterface.h | 2 | ||||
-rw-r--r-- | interface/PluginInterface_CopyEngine.h | 14 | ||||
-rw-r--r-- | interface/PluginInterface_Listener.h | 6 | ||||
-rw-r--r-- | interface/PluginInterface_PluginLoader.h | 7 | ||||
-rw-r--r-- | interface/PluginInterface_SessionLoader.h | 7 | ||||
-rw-r--r-- | interface/PluginInterface_Themes.h | 2 |
6 files changed, 32 insertions, 6 deletions
diff --git a/interface/FacilityInterface.h b/interface/FacilityInterface.h index d919498..1ced0a2 100644 --- a/interface/FacilityInterface.h +++ b/interface/FacilityInterface.h @@ -33,6 +33,8 @@ class FacilityInterface : public QObject virtual bool haveFunctionality(const QString &fonctionnality) = 0; /// \brief call the fonctionnality virtual QVariant callFunctionality(const QString &fonctionnality,const QStringList &args=QStringList()) = 0; + /// \brief Do the simplified time + virtual QString simplifiedRemainingTime(const quint32 &seconds) = 0; }; #endif // FACILITY_INTERFACE_H diff --git a/interface/PluginInterface_CopyEngine.h b/interface/PluginInterface_CopyEngine.h index b7198f2..fad97fe 100644 --- a/interface/PluginInterface_CopyEngine.h +++ b/interface/PluginInterface_CopyEngine.h @@ -70,6 +70,9 @@ class PluginInterface_CopyEngine : public QObject * \param destination the destination to move * \return true if the move have been accepted */ virtual bool newMove(const QStringList &sources,const QString &destination) = 0; + /** \brief send the new transfer list + * \param file the transfer list */ + virtual void newTransferList(const QString &file) = 0; /** \brief to get byte read, use by Ultracopier for the speed calculation @@ -131,6 +134,10 @@ class PluginInterface_CopyEngine : public QObject /** \brief move on bottom of the list the selected item * \param ids ids is the id list of the selected items */ virtual void moveItemsOnBottom(const QList<int> &ids) = 0; + + + /** \brief give the forced mode, to export/import transfer list */ + virtual void forceMode(const CopyMode &mode) = 0; /// \brief export the transfer list into a file virtual void exportTransferList() = 0; /// \brief import the transfer list into a file @@ -169,8 +176,11 @@ class PluginInterface_CopyEngine : public QObject * first = current transfered byte, second = byte to transfer * / void pushGeneralProgression(const quint64 &,const quint64 &); - + //when the cancel is clicked on copy engine dialog void cancelAll(); + + //when can be deleted + void canBeDeleted(); //send error occurred void error(QString path,quint64 size,QDateTime mtime,QString error); @@ -209,6 +219,6 @@ class PluginInterface_CopyEngineFactory : public QObject }; -Q_DECLARE_INTERFACE(PluginInterface_CopyEngineFactory,"first-world.info.ultracopier.PluginInterface.CopyEngineFactory/0.3.0.5"); +Q_DECLARE_INTERFACE(PluginInterface_CopyEngineFactory,"first-world.info.ultracopier.PluginInterface.CopyEngineFactory/0.3.0.10"); #endif // PLUGININTERFACE_COPYENGINE_H diff --git a/interface/PluginInterface_Listener.h b/interface/PluginInterface_Listener.h index 7d6508b..5648ed8 100644 --- a/interface/PluginInterface_Listener.h +++ b/interface/PluginInterface_Listener.h @@ -29,11 +29,15 @@ class PluginInterface_Listener : public QObject virtual const QString errorString() = 0; /// \brief set the resources for the plugin virtual void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion) = 0; + /// \brief to get the options widget, NULL if not have + virtual QWidget * options() = 0; public slots: /// \brief send when copy is finished virtual void transferFinished(quint32 orderId,bool withError) = 0; /// \brief send when copy is canceled virtual void transferCanceled(quint32 orderId) = 0; + /// \brief to reload the translation, because the new language have been loaded + virtual void newLanguageLoaded() = 0; /* signal to implement signals: void newState(ListeningState state); @@ -43,6 +47,6 @@ class PluginInterface_Listener : public QObject void newMove(quint32 orderId,QStringList sources,QString destination);*/ }; -Q_DECLARE_INTERFACE(PluginInterface_Listener,"first-world.info.ultracopier.PluginInterface.Listener/0.3.0.5"); +Q_DECLARE_INTERFACE(PluginInterface_Listener,"first-world.info.ultracopier.PluginInterface.Listener/0.3.0.8"); #endif // PLUGININTERFACE_LISTENER_H diff --git a/interface/PluginInterface_PluginLoader.h b/interface/PluginInterface_PluginLoader.h index e04bcd9..22f42ce 100644 --- a/interface/PluginInterface_PluginLoader.h +++ b/interface/PluginInterface_PluginLoader.h @@ -23,11 +23,16 @@ class PluginInterface_PluginLoader : public QObject virtual void setEnabled(bool) = 0; /// \brief to set resources, writePath can be empty if read only mode virtual void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion) = 0; + /// \brief to get the options widget, NULL if not have + virtual QWidget * options() = 0; + public slots: + /// \brief to reload the translation, because the new language have been loaded + virtual void newLanguageLoaded() = 0; /* signal to implement signals: void newState(CatchState);*/ }; -Q_DECLARE_INTERFACE(PluginInterface_PluginLoader,"first-world.info.ultracopier.PluginInterface.PluginLoader/0.3.0.1"); +Q_DECLARE_INTERFACE(PluginInterface_PluginLoader,"first-world.info.ultracopier.PluginInterface.PluginLoader/0.3.0.8"); #endif // PLUGININTERFACE_PLUGINLOADER_H diff --git a/interface/PluginInterface_SessionLoader.h b/interface/PluginInterface_SessionLoader.h index 2e49fa3..e73c9e3 100644 --- a/interface/PluginInterface_SessionLoader.h +++ b/interface/PluginInterface_SessionLoader.h @@ -24,8 +24,13 @@ class PluginInterface_SessionLoader : public QObject virtual bool getEnabled() = 0; /// \brief set the resources virtual void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion) = 0; + /// \brief to get the options widget, NULL if not have + virtual QWidget * options() = 0; + public slots: + /// \brief to reload the translation, because the new language have been loaded + virtual void newLanguageLoaded() = 0; }; -Q_DECLARE_INTERFACE(PluginInterface_SessionLoader,"first-world.info.ultracopier.PluginInterface.SessionLoader/0.3.0.4"); +Q_DECLARE_INTERFACE(PluginInterface_SessionLoader,"first-world.info.ultracopier.PluginInterface.SessionLoader/0.3.0.8"); #endif // PLUGININTERFACE_SESSIONLOADER_H diff --git a/interface/PluginInterface_Themes.h b/interface/PluginInterface_Themes.h index 8b9d40b..cfdb719 100644 --- a/interface/PluginInterface_Themes.h +++ b/interface/PluginInterface_Themes.h @@ -118,6 +118,6 @@ class PluginInterface_ThemesFactory : public QObject virtual void newLanguageLoaded() = 0; }; -Q_DECLARE_INTERFACE(PluginInterface_ThemesFactory,"first-world.info.ultracopier.PluginInterface.ThemesFactory/0.3.0.5"); +Q_DECLARE_INTERFACE(PluginInterface_ThemesFactory,"first-world.info.ultracopier.PluginInterface.ThemesFactory/0.3.0.8"); #endif // PLUGININTERFACE_THEMES_H |