Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Moved frmActivityMgr.{cpp,h} into the ACTMGROBJS section.
[xestiaab/.git] / source / frmSearch.cpp
index 5e8610a..542b646 100644 (file)
@@ -9,9 +9,6 @@
 
 #include <thread>
 #include <wx/fs_mem.h>
-/*#include <boost/filesystem.hpp>
-#include <boost/filesystem/fstream.hpp>
-#include <boost/filesystem/path.hpp>*/
 #include <wx/tokenzr.h>
 #include <wx/dir.h>
 
@@ -41,8 +38,6 @@ BEGIN_EVENT_TABLE(frmSearch, wxFrame)
   EVT_COMMAND(wxID_ANY, SE_REVEALCONTACT, frmSearch::RevealContact)
 END_EVENT_TABLE()
 
-//namespace boostfs = boost::filesystem;
-
 frmSearch::frmSearch( wxWindow* parent )
 :
 frmSearchADT( parent )
@@ -175,13 +170,8 @@ void frmSearch::SearchContactsThread(){
                
                wxString AccountDir = GetAccountDir(SAPiter->second, FALSE);
                
-               //boostfs::path vcarddir(AccountDir.c_str());
-               //boostfs::directory_iterator dir_end;    
-
-               //boostfs::path vcardfilename;
                wxString vcardfilenamewxs;
                wxStringTokenizer vcardfileline;
-               //std::string l;
                wxString lwxs;
                wxString setname, setvalue;
                long ContactIndex = 1;
@@ -189,15 +179,12 @@ void frmSearch::SearchContactsThread(){
                wxString vCardFilename;
                wxString vCardFilenameFull;
                
-               //if (boostfs::exists(vcarddir)){
                if (wxDirExists(AccountDir)){
                
                        wxDir vcardaccdir(AccountDir);
                
                        bool ProcFiles = vcardaccdir.GetFirst(&vCardFilename, wxEmptyString, wxDIR_FILES);
                        while(ProcFiles){
-                       //for (boostfs::directory_iterator vcarddir_iter(vcarddir);
-                       //     vcarddir_iter != dir_end ; ++vcarddir_iter){
 
                                if (StopMode == FALSE){
 
@@ -221,43 +208,9 @@ void frmSearch::SearchContactsThread(){
                                        vCardFilenameFull.Append(AccountDir);
                                        vCardFilenameFull.Append(vCardFilename);
 
-
                                        Person.LoadFile(vCardFilenameFull);
-
-                                   /*if (boostfs::path(vcarddir_iter->path()).extension() == ".vcf" ||
-                                       boostfs::path(vcarddir_iter->path()).extension() == ".VCF" ||
-                                       boostfs::path(vcarddir_iter->path()).extension() == ".vcard" ||
-                                       boostfs::path(vcarddir_iter->path()).extension() == ".VCARD"){*/
                
                                        vcardfilenamewxs = vCardFilenameFull;
-               
-                                       /*vCard Person;
-                                       std::fstream vcardfile;
-
-                                       vcardfilename = boostfs::path(vcarddir_iter->path()).filename();
-                                       vcardfilenamewxs.Append(AccountDir);            
-                                       vcardfilenamewxs.Append(wxString::FromUTF8(vcardfilename.c_str()));         
-           
-                                       // Open the vCard file up and get the setting names and values from the
-                                       // file.
-               
-                                       vcardfile.open(vcardfilenamewxs.mb_str(), std::ios::in);
-               
-                                       while(getline(vcardfile, l)){
-                 
-                                           lwxs.Clear();
-                                           setname.Clear();
-                                           setvalue.Clear();
-                                           lwxs.Append(wxString::FromUTF8(l.c_str()));
-                                           vcardfileline.SetString(lwxs, wxT(":"));
-                                           setname = vcardfileline.GetNextToken();
-                                           setvalue = vcardfileline.GetString();
-                   
-                                           Person.Add(setname, setvalue, TRUE);
-                                   
-                                       }
-               
-                                       vcardfile.close();*/
 
                                        // Check if file has version 4.0, first name (FN)
                                        // begin and end vCard portions.
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy