summaryrefslogtreecommitdiff
path: root/plugins-alternative/Listener/dbus/listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-alternative/Listener/dbus/listener.h')
-rw-r--r--plugins-alternative/Listener/dbus/listener.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins-alternative/Listener/dbus/listener.h b/plugins-alternative/Listener/dbus/listener.h
deleted file mode 100644
index fcb95cd..0000000
--- a/plugins-alternative/Listener/dbus/listener.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/** \file listener.h
-\brief Define the server compatible with Ultracopier interface
-\author alpha_one_x86
-\licence GPL3, see the file COPYING */
-
-#ifndef SERVER_H
-#define SERVER_H
-
-#include <QObject>
-#include <QtDBus/QtDBus>
-#include <QtDBus/QDBusConnection>
-
-#include "Catchcopy.h"
-#include "Environment.h"
-#include "../../../interface/PluginInterface_Listener.h"
-
-/// \brief Define the server compatible with Ultracopier interface
-class Listener : public PluginInterface_Listener
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.Listener/1.0.0.0" FILE "plugin.json")
- Q_INTERFACES(PluginInterface_Listener)
-public:
- Listener();
- /// \brief try listen the copy/move
- void listen();
- /// \brief stop listen to copy/move
- void close();
- /// \brief return the error strong
- const QString errorString() const;
- /// \brief set resources for this plugins
- void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,const bool &portableVersion);
- /// \brief to get the options widget, NULL if not have
- QWidget * options();
-public slots:
- /// \brief say to the client that's the copy/move is finished
- void transferFinished(const quint32 &orderId,const bool &withError);
- /// \brief say to the client that's the copy/move is finished
- void transferCanceled(const quint32 &orderId);
- /// \brief to reload the translation, because the new language have been loaded
- void newLanguageLoaded();
-private:
- Catchcopy catchcopy;
-private slots:
- void error(QString error);
- void clientName(quint32 client,QString name);
-};
-
-#endif // SERVER_H