Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated TODO list. Splitted some files down, -s/-search support implemented.
[xestiaab/.git] / source / frmConflictResolution.cpp
1 #include "frmConflictResolution.h"
2 #include "common/getcontactinfo.h"
4 frmConflictResolution::frmConflictResolution( wxWindow* parent )
5 :
6 frmConflictResolutionADT( parent )
7 {
9 }
11 void frmConflictResolution::KeepLocalData( wxCommandEvent& event )
12 {
13         ConflictResult = 1;
14         this->Close();
16 }
18 void frmConflictResolution::KeepServerData( wxCommandEvent& event )
19 {
20         ConflictResult = 2;
21         this->Close();
23 }
25 void frmConflictResolution::DecideLater( wxCommandEvent& event )
26 {
28         ConflictResult = 0;
29         this->Close();
31 }
33 int frmConflictResolution::GetResult(){
35         return ConflictResult;
37 }
39 void frmConflictResolution::LoadData(vCard *LocalData, vCard *ServerData, std::map<wxString, wxString> *MemoryFSList){
41         // Load the local data.
43         wxString ClientSID = wxString::Format(wxT("%i"), rand() % 32768);
44         wxString ServerSID = wxString::Format(wxT("%i"), rand() % 32768);
46         LoadContactData(LocalData, htmClient, ClientSID, 
47         wxT(""), MemoryFSList);
48         
49         // Load the server data.
50         
51         LoadContactData(ServerData, htmServer, ServerSID, 
52         wxT(""), MemoryFSList);         
54 }
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