Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Moved frmActivityMgr.{cpp,h} into the ACTMGROBJS section.
[xestiaab/.git] / source / frmSearch.cpp
index 0a1e4ca..542b646 100644 (file)
@@ -1,21 +1,3 @@
-// frmSearch.cpp - Search form.
-//
-// (c) 2012-2015 Xestia Software Development.
-//
-// This file is part of Xestia Address Book.
-//
-// Xestia Address Book is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by the
-// Free Software Foundation, version 3 of the license.
-//
-// Xestia Address Book is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
-
 #include "frmSearch.h"
 #include "frmMain.h"
 #include "frmContact.h"
@@ -186,11 +168,10 @@ void frmSearch::SearchContactsThread(){
                // Get the list of contact files and process each
                // one of them.
                
-               wxString AccountDir = GetAccountDir(SAPiter->second, FALSE);  
-
+               wxString AccountDir = GetAccountDir(SAPiter->second, FALSE);
+               
                wxString vcardfilenamewxs;
                wxStringTokenizer vcardfileline;
-               //std::string l;
                wxString lwxs;
                wxString setname, setvalue;
                long ContactIndex = 1;
@@ -227,31 +208,9 @@ void frmSearch::SearchContactsThread(){
                                        vCardFilenameFull.Append(AccountDir);
                                        vCardFilenameFull.Append(vCardFilename);
 
-
                                        Person.LoadFile(vCardFilenameFull);
                
                                        vcardfilenamewxs = vCardFilenameFull;
-           
-                                       // 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