Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code and unit tests to check if a file exists and no errors occur whilst openin...
[xestiaab/.git] / source / contacteditor / ContactDataObject.cpp
index 9270895..f811e61 100644 (file)
@@ -26,6 +26,18 @@ ContactLoadStatus ContactDataObject::LoadFile(wxString Filename){
        
        }
        
+       wxFile ContactFile;
+       
+       if (!ContactFile.Open(Filename, wxFile::read, wxS_DEFAULT)){
+       
+               return CONTACTLOAD_FILEERROR;
+       
+       }
+       
+       // Check that the vCard is a valid vCard 4.0 file.
+       
+       
+       
        return CONTACTLOAD_UNITTESTFAIL;
 
 }
\ No newline at end of file
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