summaryrefslogtreecommitdiffstats
path: root/krename/encodingplugin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:35:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:35:24 +0000
commitaec5a842670a66ff24572847d35375a31c0b379e (patch)
tree465d7790602658d86ab031788852bf3dbdc96691 /krename/encodingplugin.h
downloadkrename-aec5a842670a66ff24572847d35375a31c0b379e.tar.gz
krename-aec5a842670a66ff24572847d35375a31c0b379e.zip
Added KDE3 version of krename
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krename@1094420 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krename/encodingplugin.h')
-rw-r--r--krename/encodingplugin.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/krename/encodingplugin.h b/krename/encodingplugin.h
new file mode 100644
index 0000000..801dd3f
--- /dev/null
+++ b/krename/encodingplugin.h
@@ -0,0 +1,68 @@
+/***************************************************************************
+ encodingplugin.h - description
+ -------------------
+ begin : Tue Jul 06 2004
+ copyright : (C) 2004 by Dominik Seichter
+ email : domseichter@web.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef _ENCODINGPLUGIN_H_
+#define _ENCODINGPLUGIN_H_
+
+#include "batchrenamer.h"
+#include "pluginloader.h"
+#include "plugin.h"
+#include "helpdialog.h"
+#include "fileoperation.h"
+
+class KComboBox;
+class QCheckBox;
+
+class EncodingPlugin : public Plugin {
+ Q_OBJECT
+ public:
+ const QString getName() const;
+ const QString getAccelName() const;
+ const int type() const;
+
+ bool checkError();
+ void drawInterface( QWidget* w, QVBoxLayout* l );
+ void fillStructure();
+ QString processFile( BatchRenamer*, int, QString token, int );
+ void finished();
+
+ const QPixmap getIcon() const;
+
+ private slots:
+ void enableControls();
+
+ private:
+ void setLocale( KComboBox* combo );
+
+ FileOperation fop;
+
+ QString m_input_codec;
+ QString m_output_codec;
+ QString m_locale_codec;
+
+ int mib_input;
+ int mib_output;
+
+ QCheckBox* checkInput;
+ QCheckBox* checkOutput;
+
+ KComboBox* comboInput;
+ KComboBox* comboOutput;
+};
+
+
+#endif // _ENCODINGPLUGIN_H_