Created simple base gui #1
This commit is contained in:
+9
-19
@@ -1,20 +1,18 @@
|
||||
#include<iostream>
|
||||
#include<string>
|
||||
|
||||
#include"Syncers/Download.h"
|
||||
#include"Syncers/Upload.h"
|
||||
#include"Managers/FileManager.h"
|
||||
#include<QApplication>
|
||||
|
||||
#include"UI/MainWindow.h"
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
using Managers::FileManager;
|
||||
using Syncers::Download;
|
||||
using Syncers::Upload;
|
||||
using UI::MainWindow;
|
||||
|
||||
string songPath;
|
||||
string songPath{};
|
||||
string newSongPath;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
@@ -36,19 +34,11 @@ int main(int argc, char** argv)
|
||||
break;
|
||||
}
|
||||
|
||||
cout<<"Song path: "<<songPath<<endl;
|
||||
/**
|
||||
FileManager fm{songPath};
|
||||
fm.saveFile(newSongPath);
|
||||
QApplication app{argc, argv};
|
||||
|
||||
Upload upS{songPath};
|
||||
upS.uploadSong();
|
||||
*/
|
||||
|
||||
Download df{newSongPath};
|
||||
df.downloadSong(1);
|
||||
MainWindow icarusMgr{};
|
||||
icarusMgr.show();
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user