Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c139f79
)
Added basic comments to the functions of frmContact
author
Steve Brokenshire
<sbrokenshire@xestia.co.uk>
Sun, 6 Mar 2016 23:12:01 +0000
(23:12 +0000)
committer
Steve Brokenshire
<sbrokenshire@xestia.co.uk>
Sun, 6 Mar 2016 23:12:01 +0000
(23:12 +0000)
source/frmContact.cpp
patch
|
blob
|
history
diff --git
a/source/frmContact.cpp
b/source/frmContact.cpp
index
a94c876
..
5df8728
100644
(file)
--- a/
source/frmContact.cpp
+++ b/
source/frmContact.cpp
@@
-39,6
+39,8
@@
void frmContact::CloseWindowProcessing(){
void frmContact::CloseWindow( wxCommandEvent& event ){
void frmContact::CloseWindow( wxCommandEvent& event ){
+ // Close this window.
+
this->Close();
}
this->Close();
}
@@
-50,6
+52,9
@@
void frmContact::CloseWindow( wxCloseEvent& event ){
wxFileSystem::AddHandler(new wxMemoryFSHandler);
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()){
if (StartupMode == false){
if (MemoryFSListPtr->find(SessionID) == MemoryFSListPtr->end()){
@@
-95,6
+100,8
@@
void frmContact::CloseWindow( wxCloseEvent& event ){
bool frmContact::SetupContactData(vCard *vCardObj){
bool frmContact::SetupContactData(vCard *vCardObj){
+ // Setup the contact information.
+
wxFileSystem::AddHandler(new wxMemoryFSHandler);
for (std::map<wxString, wxString>::iterator striter = MemoryFSListPtr->begin();
wxFileSystem::AddHandler(new wxMemoryFSHandler);
for (std::map<wxString, wxString>::iterator striter = MemoryFSListPtr->begin();
@@
-144,24
+151,32
@@
bool frmContact::SetupContactData(vCard *vCardObj){
void frmContact::SetMode(bool StartupModeIn){
void frmContact::SetMode(bool StartupModeIn){
+ // Set the mode which frmContact will be operating.
+
StartupMode = StartupModeIn;
}
void frmContact::SetupPointers(std::map<wxString,wxString> *MemoryFSListIncPtr){
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){
MemoryFSListPtr = MemoryFSListIncPtr;
}
void frmContact::SetUID(int UID){
+ // Set the UID of the contact window.
+
ContactUID = UID;
}
wxString frmContact::GetFilename(){
ContactUID = UID;
}
wxString frmContact::GetFilename(){
+ // Get the filename of the contact being displayed.
+
return vCardFilename;
}
\ No newline at end of file
return vCardFilename;
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy