[go: up one dir, main page]

Menu

[r4]: / toucan / trunk / secure.h  Maximize  Restore  History

Download this file

34 lines (28 with data), 888 Bytes

 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
#include <wx/file.h>
#include <wx/filefn.h>
#include <wx/dir.h>
#include <wx/progdlg.h>
#include "cryptfile.h"
#include "cryptdir.h"
#include "normalise.h"
bool Secure(wxArrayString arrLocation, wxString strFunction, wxString strPass, bool blBox)
{
unsigned int i;
for(i = 0; i < arrLocation.Count(); i++)
{
arrLocation.Item(i) = Normalise(arrLocation.Item(i));
arrLocation.Item(i) = Normalise(arrLocation.Item(i));
//wxMessageBox(arrLocation.Item(i));
if(wxDirExists(arrLocation.Item(i)))
{
//wxMessageBox(wxT("Crypt Dir ") + arrLocation.Item(i));
CryptDir(arrLocation.Item(i), strPass, strFunction, blBox);
}
else
{
//wxMessageBox(wxT("Crypt File ") + arrLocation.Item(i));
CryptFile(arrLocation.Item(i), strPass, strFunction, blBox);
}
}
return true;
}