Able to view encrypted keys in the key management window

This commit is contained in:
amazing-username
2017-08-11 20:44:33 -05:00
parent b83287b768
commit c1d17799cd
10 changed files with 113 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
#include<iostream>
#include"boost/filesystem.hpp"
#include"FileNameRetrieval.h"
#include"FolderStructure.h"
FileNameRetrieval::FileNameRetrieval() { }
std::vector<std::string> FileNameRetrieval::fileNameContainer() const { return fileNames; }
void FileNameRetrieval::retrieveFileNames()
{
boost::filesystem::path directory(FolderStructure::keyDirectory);
boost::filesystem::directory_iterator beg(directory), end;
for (; beg!=end; ++beg)
if (beg->path().extension()==".txt")
fileNames.push_back(beg->path().filename().string());
for (auto fl: fileNames)
std::cout<< fl<<std::endl;
}