Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Move INSTALL, LICENSE, README, THANKS and TODO into root directory
[xestiaab/.git] / source / frmConflictResolution.cpp
index 16e0d55..1779161 100644 (file)
@@ -1,3 +1,21 @@
+// frmConflictResolution.cpp - Conflict Resolution 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 "frmConflictResolution.h"
 #include "common/getcontactinfo.h"
 
@@ -10,6 +28,9 @@ frmConflictResolutionADT( parent )
 
 void frmConflictResolution::KeepLocalData( wxCommandEvent& event )
 {
+       
+       // Button 'Keep Local' was pressed.
+       
        ConflictResult = 1;
        this->Close();
 
@@ -17,6 +38,9 @@ void frmConflictResolution::KeepLocalData( wxCommandEvent& event )
 
 void frmConflictResolution::KeepServerData( wxCommandEvent& event )
 {
+       
+       // Button 'Keep Server' was pressed.
+       
        ConflictResult = 2;
        this->Close();
 
@@ -25,6 +49,8 @@ void frmConflictResolution::KeepServerData( wxCommandEvent& event )
 void frmConflictResolution::DecideLater( wxCommandEvent& event )
 {
 
+       // Button 'Decide Later' was pressed.
+       
        ConflictResult = 0;
        this->Close();
 
@@ -32,11 +58,13 @@ void frmConflictResolution::DecideLater( wxCommandEvent& event )
 
 int frmConflictResolution::GetResult(){
 
+       // Get the result of the dialog.
+       
        return ConflictResult;
 
 }
 
-void frmConflictResolution::LoadData(vCard *LocalData, vCard *ServerData, std::map<wxString, wxString> *MemoryFSList){
+void frmConflictResolution::LoadData(vCard *LocalData, vCard *ServerData, std::map<wxString, wxString> *MemoryFSList, wxString backgroundColour){
 
        // Load the local data.
 
@@ -44,11 +72,11 @@ void frmConflictResolution::LoadData(vCard *LocalData, vCard *ServerData, std::m
        wxString ServerSID = wxString::Format(wxT("%i"), rand() % 32768);
 
        LoadContactData(LocalData, htmClient, ClientSID, 
-       wxT(""), MemoryFSList);
+       wxT(""), MemoryFSList, backgroundColour);
        
        // Load the server data.
        
        LoadContactData(ServerData, htmServer, ServerSID, 
-       wxT(""), MemoryFSList);         
+       wxT(""), MemoryFSList, backgroundColour);               
 
 }
\ 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