summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_ft/csv.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-03-22 20:48:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-03-22 20:48:17 +0100
commit3089c4bbc10e98d18f43e8a70e7a3d0c0eaf0900 (patch)
treec6f985472c05372417ecd4a861f6c2f346b63fd3 /ftnoir_protocol_ft/csv.h
parent3e1515e88c6f750c193ed9b9908d8a9c09e5b025 (diff)
Downcase. PLEASE TURN OFF IGNORING CASE IN GIT CONFIG!!!
.git/config: [core] ignorecase = false
Diffstat (limited to 'ftnoir_protocol_ft/csv.h')
-rw-r--r--ftnoir_protocol_ft/csv.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/ftnoir_protocol_ft/csv.h b/ftnoir_protocol_ft/csv.h
new file mode 100644
index 00000000..13231293
--- /dev/null
+++ b/ftnoir_protocol_ft/csv.h
@@ -0,0 +1,38 @@
+/*dummy CSV reader for QT4*/
+/*version 0.1*/
+/*11.1.2009*/
+#ifndef CSV_H
+#define CSV_H
+
+//#include "myclass_api.h"
+
+#include <QObject>
+#include <QStringList>
+#include <QIODevice>
+#include <QTextCodec>
+#include <QRegExp>
+
+class /*MYCLASS_API*/ CSV /*: public QObject*/
+{
+ /*Q_OBJECT*/
+
+public:
+ CSV(QIODevice * device);
+ CSV(QString &string);
+ ~CSV();
+
+ QString readLine();
+ QStringList parseLine();
+ static QStringList parseLine(QString line);
+
+ void setCodec(const char* codecName);
+private:
+ QIODevice *m_device;
+ QTextCodec *m_codec;
+ QString m_string;
+ int m_pos;
+ QRegExp m_rx;
+
+};
+
+#endif // CSV_H