/***************************************************************************
- * 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 *
#include "dolphinnewfilemenuobserver.h"
-#include <kglobal.h>
-#include <knewmenu.h>
+#include <KGlobal>
+#include "dolphinnewfilemenu.h"
class DolphinNewFileMenuObserverSingleton
{
return s_DolphinNewFileMenuObserver->instance;
}
-void DolphinNewFileMenuObserver::attach(const KNewFileMenu* menu)
+void DolphinNewFileMenuObserver::attach(const DolphinNewFileMenu* menu)
{
- connect(menu, SIGNAL(fileCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
- connect(menu, SIGNAL(directoryCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
+ connect(menu, SIGNAL(fileCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
+ connect(menu, SIGNAL(directoryCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
+ connect(menu, SIGNAL(errorMessage(QString)),
+ this, SIGNAL(errorMessage(QString)));
}
-void DolphinNewFileMenuObserver::detach(const KNewFileMenu* menu)
+void DolphinNewFileMenuObserver::detach(const DolphinNewFileMenu* menu)
{
- disconnect(menu, SIGNAL(fileCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
- disconnect(menu, SIGNAL(directoryCreated(const KUrl&)),
- this, SIGNAL(itemCreated(const KUrl&)));
+ disconnect(menu, SIGNAL(fileCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
+ disconnect(menu, SIGNAL(directoryCreated(KUrl)),
+ this, SIGNAL(itemCreated(KUrl)));
+ disconnect(menu, SIGNAL(errorMessage(QString)),
+ this, SIGNAL(errorMessage(QString)));
}
DolphinNewFileMenuObserver::DolphinNewFileMenuObserver() :