]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinremoteencoding.h
Add clang-format and format code as in Frameworks
[dolphin.git] / src / views / dolphinremoteencoding.h
index bcb0d7901369fa6ece3d122a5d5ef69037a4149c..c59de64064498c2a5bfa0436e2c0b7c6cbe6433f 100644 (file)
@@ -1,21 +1,8 @@
-/***************************************************************************
- *   Copyright (C) 2009 by Rahman Duran <rahman.duran@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  *
- *   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: 2009 Rahman Duran <rahman.duran@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 
 #ifndef DOLPHINREMOTEENCODING_H
 #define DOLPHINREMOTEENCODING_H
@@ -35,35 +22,35 @@ class DolphinViewActionHandler;
  * When browsing remote url, its possible to change encoding from Tools Menu.
  */
 
-class DOLPHIN_EXPORT DolphinRemoteEncoding: public QObject
+class DOLPHIN_EXPORT DolphinRemoteEncoding : public QObject
 {
-  Q_OBJECT
+    Q_OBJECT
 public:
-  DolphinRemoteEncoding(QObject* parent, DolphinViewActionHandler* actionHandler);
-  ~DolphinRemoteEncoding() override;
+    DolphinRemoteEncoding(QObject *parent, DolphinViewActionHandler *actionHandler);
+    ~DolphinRemoteEncoding() override;
 
 public Q_SLOTS:
-  void slotAboutToOpenUrl();
-  void slotItemSelected(QAction* action);
-  void slotReload();
-  void slotDefault();
+    void slotAboutToOpenUrl();
+    void slotItemSelected(QAction *action);
+    void slotReload();
+    void slotDefault();
 
 private Q_SLOTS:
-  void slotAboutToShow();
+    void slotAboutToShow();
 
 private:
-  void updateView();
-  void loadSettings();
-  void fillMenu();
-  void updateMenu();
-
-  KActionMenu* m_menu;
-  QStringList m_encodingDescriptions;
-  QUrl m_currentURL;
-  DolphinViewActionHandler* m_actionHandler;
-
-  bool m_loaded;
-  int m_idDefault;
+    void updateView();
+    void loadSettings();
+    void fillMenu();
+    void updateMenu();
+
+    KActionMenu *m_menu;
+    QStringList m_encodingDescriptions;
+    QUrl m_currentURL;
+    DolphinViewActionHandler *m_actionHandler;
+
+    bool m_loaded;
+    int m_idDefault;
 };
 
 #endif