]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinnewfilemenu.h
SVN_SILENT made messages (.desktop file) - always resolve ours
[dolphin.git] / src / dolphinnewfilemenu.h
index ae5881366dd8b13257f8b45d1fc50b8b09ddc296..d5235db9b5a23647e1bacaaabe80c2ed300042a8 100644 (file)
@@ -1,26 +1,13 @@
-/***************************************************************************
- *   Copyright (C) 2006 by Peter Penz                                      *
- *   peter.penz@gmx.at                                                     *
- *                                                                         *
- *   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  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
- ***************************************************************************/
-
+/*
+ * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 #ifndef DOLPHINNEWFILEMENU_H
 #define DOLPHINNEWFILEMENU_H
 
+#include "dolphin_export.h"
+
 #include <KNewFileMenu>
 
 class KJob;
@@ -33,20 +20,20 @@ class KJob;
  * All errors are shown in the status bar of Dolphin
  * instead as modal error dialog with an OK button.
  */
-class DolphinNewFileMenu : public KNewFileMenu
+class DOLPHIN_EXPORT DolphinNewFileMenu : public KNewFileMenu
 {
     Q_OBJECT
 
 public:
-    DolphinNewFileMenu(KActionCollection* collection, QObject* parent);
-    virtual ~DolphinNewFileMenu();
+    DolphinNewFileMenu(QAction *createDirAction, QAction *createFileAction, QObject *parent);
+    ~DolphinNewFileMenu() override;
 
-signals:
-    void errorMessage(const QStringerror);
+Q_SIGNALS:
+    void errorMessage(const QString &error);
 
-protected slots:
+protected Q_SLOTS:
     /** @see KNewFileMenu::slotResult() */
-    virtual void slotResult(KJob* job);
+    void slotResult(KJob *job) override;
 };
 
 #endif