-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
60 lines (45 loc) · 1.51 KB
/
main.cpp
File metadata and controls
60 lines (45 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "mainwindow.h"
#include "testmainwindow.h"
#include "dbmanager.h"
#include "historyitem.h"
#include <QApplication>
#include <QDebug>
#include <QFileDialog>
#include <QAbstractItemModel>
#include <QStringListModel>
#include <QListView>
#include <QStringList>
#include "testing.h"
#include <QMap>
#include "Algorithms/huffman.h"
#include "Algorithms/huffmandecode.h"
#include "Algorithms/arithmetic.h"
#include "Algorithms/lz77.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// TestMainWindow testMainWindow;
// testMainWindow.show();
// Testing testing;
// testing.experimentOnByteArray();
//LZ77 lz77;
//lz77.compress("C://Users//Lenny//Desktop//Testing.txt");
// Huffman huffman;
// huffman.compress("C://Users//Lenny//Desktop//Testing.txt");
// huffman.printNodesWithoutChildren();
// HuffmanDecode huffmanDecode;
// huffmanDecode.decompress("C://Users//Lenny//Desktop//WriteBin.bin");
// Arithmetic arithmetic;
// arithmetic.compress("C://Users//Lenny//Desktop//Testing.txt");
DbManager dbManager = DbManager::getDbManager();
dbManager.connectHistoryTable("C://Users//Lenny//Documents//CompressIt//database.db");
// HistoryItem h = dbManager.getHistoryItem(2);
// qDebug() << h.originalSize;
// for (int i = 0 ; i < 20; i++)
// {
// dbManager.addHistoryItem("newFile" + QString::number(i), i, i, i, i, i, "notes" + QString(i));
// }
MainWindow w;
w.show();
return a.exec();
}