Commits

opampg committed 1f5700b

added src/data.hpp.

Comments (0)

Files changed (5)

src/CMakeLists.txt

 SET(MSRC
 	${SRC_DIR}/main.cpp
 	${SRC_DIR}/MainWindow.cpp
+	${SRC_DIR}/decoder.cpp
 	)
 
 SET(MHED
 	${SRC_DIR}/MainWindow.hpp
+	${SRC_DIR}/decoder.hpp
 	)
 
 QT4_WRAP_CPP(HMOD ${MHED})

src/MainWindow.hpp

 
 class MainWindow : public QMainWindow
 {
+public:
 	MainWindow();
 };
+#pragma onece
+#define VERSION "0.0.1"
+
+#define SUCCESS 0
+#define FAILURE 1
 #include"decoder.hpp"
+
+decoder::decoder()
+{
+	width = height = 0;
+	size = 0;
+}
+
+
 #pragma onece
+#include"data.hpp"
+#include"webp/decode.h"
+#include<QString>
 
+class decoder
+{
+public:
+	decoder();
+	int open(QString filename);
+
+private:
+	QString filename;
+	size_t size;
+
+	int width;
+	int height;
+};