┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinremoteencoding.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-07-24 22:08:30 +0000
committerPeter Penz <[email protected]>2010-07-24 22:08:30 +0000
commita5cf21ff06aff44cde563eaceae3c6cef452ee48 (patch)
tree3d23179b483e4c9ad5598b128c3063885fe33a30 /src/views/dolphinremoteencoding.h
parent652d08c9242ed51d86dba3b2afda9d3b2e9a9cd7 (diff)
Sourcecode hierarchy cleanup: Move further files from src to src/views
svn path=/trunk/KDE/kdebase/apps/; revision=1154150
Diffstat (limited to 'src/views/dolphinremoteencoding.h')
-rw-r--r--src/views/dolphinremoteencoding.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/views/dolphinremoteencoding.h b/src/views/dolphinremoteencoding.h
new file mode 100644
index 000000000..54499f78b
--- /dev/null
+++ b/src/views/dolphinremoteencoding.h
@@ -0,0 +1,69 @@
+/***************************************************************************
+ * Copyright (C) 2009 by Rahman Duran <[email protected]> *
+ * *
+ * 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 *
+ ***************************************************************************/
+
+#ifndef DOLPHINREMOTEENCODING_H
+#define DOLPHINREMOTEENCODING_H
+
+#include <QStringList>
+#include <QtGui/QAction>
+#include <kurl.h>
+#include "libdolphin_export.h"
+
+
+class KActionMenu;
+class DolphinViewActionHandler;
+
+/**
+ * @brief Allows to chnage character encoding for remote urls like ftp.
+ *
+ * When browsing remote url, its possible to change encoding from Tools Menu.
+ */
+
+class LIBDOLPHINPRIVATE_EXPORT DolphinRemoteEncoding: public QObject
+{
+ Q_OBJECT
+public:
+ DolphinRemoteEncoding(QObject* parent, DolphinViewActionHandler* actionHandler);
+ ~DolphinRemoteEncoding();
+
+public Q_SLOTS:
+ void slotAboutToOpenUrl();
+ void slotItemSelected(QAction* action);
+ void slotReload();
+ void slotDefault();
+
+private Q_SLOTS:
+ void slotAboutToShow();
+
+private:
+ void updateView();
+ void loadSettings();
+ void fillMenu();
+ void updateMenu();
+
+ KActionMenu* m_menu;
+ QStringList m_encodingDescriptions;
+ KUrl m_currentURL;
+ DolphinViewActionHandler* m_actionHandler;
+
+ bool m_loaded;
+ int m_idDefault;
+};
+
+#endif