summaryrefslogtreecommitdiff
path: root/plugins/Listener/catchcopy-v0002/listener.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2018-02-24 00:13:45 +0000
committerThomas Preud'homme <robotux@celest.fr>2018-02-24 00:13:46 +0000
commit0fa6fb5a53789434e6ef57af39ab9024b7ec7d50 (patch)
tree9854613566cca815292f6fcad8e4d678afa30a9a /plugins/Listener/catchcopy-v0002/listener.h
parent2124f782c35cd832460d070186eaf72d935c1bdb (diff)
parentb00b0c864574c3842effe1705b66066fa228f950 (diff)
merge patched into master
Diffstat (limited to 'plugins/Listener/catchcopy-v0002/listener.h')
-rw-r--r--plugins/Listener/catchcopy-v0002/listener.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/Listener/catchcopy-v0002/listener.h b/plugins/Listener/catchcopy-v0002/listener.h
index 8956abc..8cab248 100644
--- a/plugins/Listener/catchcopy-v0002/listener.h
+++ b/plugins/Listener/catchcopy-v0002/listener.h
@@ -6,7 +6,7 @@
#ifndef SERVER_H
#define SERVER_H
-#include <QString>
+#include <string>
#ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE_DIRECT
#include <QtPlugin>
#endif
@@ -30,30 +30,30 @@ public:
/// \brief stop listen to copy/move
void close();
/// \brief return the error strong
- const QString errorString() const;
+ const std::string errorString() const;
/// \brief set resources for this plugins
- void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,const bool &portableVersion);
+ void setResources(OptionInterface * options,const std::string &writePath,const std::string &pluginPath,const bool &portableVersion);
/// \brief to get the options widget, NULL if not have
QWidget * options();
/// \brief to get a client list
- QStringList clientsList() const;
+ std::vector<std::string> clientsList() const;
public slots:
/// \brief say to the client that's the copy/move is finished
- void transferFinished(const quint32 &orderId,const bool &withError);
+ void transferFinished(const uint32_t &orderId,const bool &withError);
/// \brief say to the client that's the copy/move is finished
- void transferCanceled(const quint32 &orderId);
+ void transferCanceled(const uint32_t &orderId);
/// \brief to reload the translation, because the new language have been loaded
void newLanguageLoaded();
private:
ServerCatchcopy server;
private slots:
- void errorInternal(const QString &string);
- void communicationErrorInternal(const QString &string);
- void clientName(quint32 client,QString name);
- void copyWithoutDestination(const quint32 &orderId,const QStringList &sources);
- void copy(const quint32 &orderId,const QStringList &sources,const QString &destination);
- void moveWithoutDestination(const quint32 &orderId,const QStringList &sources);
- void move(const quint32 &orderId,const QStringList &sources,const QString &destination);
+ void errorInternal(const std::string &string);
+ void communicationErrorInternal(const std::string &string);
+ void clientName(uint32_t client,std::string name);
+ void copyWithoutDestination(const uint32_t &orderId,const std::vector<std::string> &sources);
+ void copy(const uint32_t &orderId,const std::vector<std::string> &sources,const std::string &destination);
+ void moveWithoutDestination(const uint32_t &orderId,const std::vector<std::string> &sources);
+ void move(const uint32_t &orderId,const std::vector<std::string> &sources,const std::string &destination);
};
#endif // SERVER_H