From 07a4acbcc7762d0f74847c809d9ea058dfdf861c Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 6 Mar 2016 23:12:01 +0000 Subject: [PATCH] Added basic comments to the functions of frmContact --- source/frmContact.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/frmContact.cpp b/source/frmContact.cpp index a94c876..5df8728 100644 --- a/source/frmContact.cpp +++ b/source/frmContact.cpp @@ -39,6 +39,8 @@ void frmContact::CloseWindowProcessing(){ void frmContact::CloseWindow( wxCommandEvent& event ){ + // Close this window. + this->Close(); } @@ -50,6 +52,9 @@ void frmContact::CloseWindow( wxCloseEvent& event ){ wxFileSystem::AddHandler(new wxMemoryFSHandler); + // Check if frmContact is the main window, if not + // then do some clear up. + if (StartupMode == false){ if (MemoryFSListPtr->find(SessionID) == MemoryFSListPtr->end()){ @@ -95,6 +100,8 @@ void frmContact::CloseWindow( wxCloseEvent& event ){ bool frmContact::SetupContactData(vCard *vCardObj){ + // Setup the contact information. + wxFileSystem::AddHandler(new wxMemoryFSHandler); for (std::map::iterator striter = MemoryFSListPtr->begin(); @@ -144,24 +151,32 @@ bool frmContact::SetupContactData(vCard *vCardObj){ void frmContact::SetMode(bool StartupModeIn){ + // Set the mode which frmContact will be operating. + StartupMode = StartupModeIn; } void frmContact::SetupPointers(std::map *MemoryFSListIncPtr){ + // Set the pointer for the Memory Filesystem map. + MemoryFSListPtr = MemoryFSListIncPtr; } void frmContact::SetUID(int UID){ + // Set the UID of the contact window. + ContactUID = UID; } wxString frmContact::GetFilename(){ + // Get the filename of the contact being displayed. + return vCardFilename; } \ No newline at end of file -- 2.39.5