diff --git a/.gitignore b/.gitignore index 6e16385..f010513 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,2 @@ -#For codeblocks project: -/*.depend -/*.layout -/*.cbp -/*.cbTemp -/bin -/obj -/Doxyfile -/Doxygen -*.untracked - +#I have an Untraked folder +Untracked diff --git a/main.cpp b/main.cpp deleted file mode 100644 index c392103..0000000 --- a/main.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file main.cpp - * @brief Entry point - * @author manzerbredes - * @version Prototype - * @date 8 Mars 2015 - * - * Entry point of the application. - * - */ - - - - -//----- std ----- - -#include -#include -#include - - -//----- class ----- -#include "FileManIOFile.hpp" -#include "FileManParser.hpp" -#include "Website.hpp" - - - - - -/** - * @fn int main(int argc, char *argv[]) - * @author manzerbredes - * @brief main function - * @param argc contain *argv[] length - * @param *argv[] contain the arguments list - * @return Return code, an int. - */ -int main(int argc, char *argv[]){ - - - //TEST PARSER FAKE ARGUMENT - FileManParser xmlParser(""); - - std::vector *siteWeb=xmlParser.getWebsites(); - - siteWeb->erase(siteWeb->begin()+1); - - xmlParser.updateParser(); - - - //Save modification in file - - FileManIOFile save("Doxygen/bob.bin"); - - save.write("loic", xmlParser.getDocument()); - - //Print - std::cout << xmlParser.getDocument(); - - - - - return 0; -} - - - diff --git a/CryptClass/AESCrypt.cpp b/src/CryptClass/AESCrypt.cpp similarity index 100% rename from CryptClass/AESCrypt.cpp rename to src/CryptClass/AESCrypt.cpp diff --git a/CryptClass/AESCrypt.hpp b/src/CryptClass/AESCrypt.hpp similarity index 100% rename from CryptClass/AESCrypt.hpp rename to src/CryptClass/AESCrypt.hpp diff --git a/CryptClass/AbstractSKA.hpp b/src/CryptClass/AbstractSKA.hpp similarity index 100% rename from CryptClass/AbstractSKA.hpp rename to src/CryptClass/AbstractSKA.hpp diff --git a/CryptClass/HASHCrypt.cpp b/src/CryptClass/HASHCrypt.cpp similarity index 100% rename from CryptClass/HASHCrypt.cpp rename to src/CryptClass/HASHCrypt.cpp diff --git a/CryptClass/HASHCrypt.hpp b/src/CryptClass/HASHCrypt.hpp similarity index 100% rename from CryptClass/HASHCrypt.hpp rename to src/CryptClass/HASHCrypt.hpp diff --git a/IOFileClass/FileManIOFile.cpp b/src/IOFileClass/FileManIOFile.cpp similarity index 100% rename from IOFileClass/FileManIOFile.cpp rename to src/IOFileClass/FileManIOFile.cpp diff --git a/IOFileClass/FileManIOFile.hpp b/src/IOFileClass/FileManIOFile.hpp similarity index 100% rename from IOFileClass/FileManIOFile.hpp rename to src/IOFileClass/FileManIOFile.hpp diff --git a/ParserClass/AbstractIDManager.cpp b/src/ParserClass/AbstractIDManager.cpp similarity index 100% rename from ParserClass/AbstractIDManager.cpp rename to src/ParserClass/AbstractIDManager.cpp diff --git a/ParserClass/AbstractIDManager.hpp b/src/ParserClass/AbstractIDManager.hpp similarity index 100% rename from ParserClass/AbstractIDManager.hpp rename to src/ParserClass/AbstractIDManager.hpp diff --git a/ParserClass/FileManContainer/Website.cpp b/src/ParserClass/FileManContainer/Website.cpp similarity index 100% rename from ParserClass/FileManContainer/Website.cpp rename to src/ParserClass/FileManContainer/Website.cpp diff --git a/ParserClass/FileManContainer/Website.hpp b/src/ParserClass/FileManContainer/Website.hpp similarity index 100% rename from ParserClass/FileManContainer/Website.hpp rename to src/ParserClass/FileManContainer/Website.hpp diff --git a/ParserClass/FileManParser.cpp b/src/ParserClass/FileManParser.cpp similarity index 100% rename from ParserClass/FileManParser.cpp rename to src/ParserClass/FileManParser.cpp diff --git a/ParserClass/FileManParser.hpp b/src/ParserClass/FileManParser.hpp similarity index 100% rename from ParserClass/FileManParser.hpp rename to src/ParserClass/FileManParser.hpp diff --git a/src/Readme.md b/src/Readme.md new file mode 100644 index 0000000..6600ef4 --- /dev/null +++ b/src/Readme.md @@ -0,0 +1,21 @@ +Class organisation +===== + +##CryptClass +> Contain all crypting algorithm, and use +**crypto++** library. + +##IOFileClass +> Contain all class that manage IO in file. +*FileManIOFile* class load and save encrypted files, and use +class from *CryptClass*. + +##ParserClass +> Contain class for parsing data (exemple: parsing a decrypted file from *FileManIOFile*. + +##Coming soon: +>GTK+Class to manager GUI. +

+ +PLEASE USE DOXYGEN COMMENTS +===== \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..b2f344f --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,80 @@ +/** + * @file main.cpp + * @brief Entry point + * @author manzerbredes + * @version Prototype + * @date 8 Mars 2015 + * + * Entry point of the application. + * + */ + + + + +//----- std ----- + +#include +#include +#include + + +//----- class ----- +#include "FileManIOFile.hpp" +#include "FileManParser.hpp" +#include "Website.hpp" + + +#include + + +/** + * @fn int main(int argc, char *argv[]) + * @author manzerbredes + * @brief main function + * @param argc contain *argv[] length + * @param *argv[] contain the arguments list + * @return Return code, an int. + */ +int main(int argc, char *argv[]){ + + + + /* Initialisation de GTK+ */ + gtk_init(&argc, &argv); + + + GtkWidget* MainWindow=NULL; + + MainWindow=gtk_window_new(GTK_WINDOW_TOPLEVEL); + + g_signal_connect(G_OBJECT(MainWindow), "delete-event", G_CALLBACK(gtk_main_quit), NULL); + + + GtkWidget* bouton; + + bouton=gtk_button_new_with_label("Hello Bro :"); + gtk_container_add(GTK_CONTAINER(MainWindow), bouton); + + g_signal_connect(G_OBJECT(bouton), "leave", G_CALLBACK(gtk_main_quit), NULL); + + gtk_window_set_title(GTK_WINDOW(MainWindow), "forgetIt"); + gtk_window_set_default_size(GTK_WINDOW(MainWindow), 500,500); + + gtk_window_set_position(GTK_WINDOW(MainWindow), GTK_WIN_POS_CENTER); + + + + gtk_widget_show_all(MainWindow); + + + gtk_main(); + + + + return EXIT_SUCCESS; + +} + + +