]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinnewfilemenuobserver.h
GIT_SILENT: Port deprecated QSet::toList method
[dolphin.git] / src / views / dolphinnewfilemenuobserver.h
index 35fda11db625328386a82e3a577501de4d92484c..6bb42ed824d82fe7688891b5350d04af591aea9b 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at>                  *
+ *   Copyright (C) 2009 by Peter Penz <peter.penz19@gmail.com>             *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
 #ifndef DOLPHINNEWFILEMENUOBSERVER_H
 #define DOLPHINNEWFILEMENUOBSERVER_H
 
-#include <QObject>
+#include "dolphin_export.h"
 
-#include "libdolphin_export.h"
+#include <QObject>
 
-class KNewFileMenu;
-class KUrl;
+class DolphinNewFileMenu;
 
 /**
  * @brief Allows to observe new file items that have been created
@@ -34,21 +33,22 @@ class KUrl;
  * As soon as a DolphinNewFileMenu instance created a new item,
  * the observer will emit the signal itemCreated().
  */
-class LIBDOLPHINPRIVATE_EXPORT DolphinNewFileMenuObserver : public QObject
+class DOLPHIN_EXPORT DolphinNewFileMenuObserver : public QObject
 {
     Q_OBJECT
 
 public:
     static DolphinNewFileMenuObserver& instance();
-    void attach(const KNewFileMenu* menu);
-    void detach(const KNewFileMenu* menu);
+    void attach(const DolphinNewFileMenu* menu);
+    void detach(const DolphinNewFileMenu* menu);
 
 signals:
-    void itemCreated(const KUrl& url);
+    void itemCreated(const QUrl& url);
+    void errorMessage(const QString& error);
 
 private:
     DolphinNewFileMenuObserver();
-    virtual ~DolphinNewFileMenuObserver();
+    ~DolphinNewFileMenuObserver() override;
 
     friend class DolphinNewFileMenuObserverSingleton;
 };