#include <QObject>
-#include "libdolphin_export.h"
+#include "dolphin_export.h"
-class KNewFileMenu;
-class KUrl;
+class DolphinNewFileMenu;
/**
* @brief Allows to observe new file items that have been created
* 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();