void frmContact::CloseWindow( wxCommandEvent& event ){
+ // Close this window.
+
this->Close();
}
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()){
bool frmContact::SetupContactData(vCard *vCardObj){
+ // Setup the contact information.
+
wxFileSystem::AddHandler(new wxMemoryFSHandler);
for (std::map<wxString, wxString>::iterator striter = MemoryFSListPtr->begin();
void frmContact::SetMode(bool StartupModeIn){
+ // Set the mode which frmContact will be operating.
+
StartupMode = StartupModeIn;
}
void frmContact::SetupPointers(std::map<wxString,wxString> *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