// frmContactEditor-Sound.cpp - frmContactEditor Sound tab subroutines.
//
-// (c) 2012-2015 Xestia Software Development.
+// (c) 2012-2016 Xestia Software Development.
//
// This file is part of Xestia Address Book.
//
frmContactEditorSound *frameCESound = new frmContactEditorSound ( this );
frameCESound->SetEditorMode(FALSE);
- intResult = GetLastInt(&SoundsList);
- frameCESound->SetupPointers(&SoundsList,
- &SoundsListAltID,
- &SoundsListPID,
- &SoundsListType,
- &SoundsListAudioType,
- &SoundsListAudioEncType,
- &SoundsListTokens,
- &SoundsListMediatype,
- &SoundsListPref,
+ intResult = GetLastInt(&ContactEditorData.SoundsList);
+ frameCESound->SetupPointers(&ContactEditorData.SoundsList,
+ &ContactEditorData.SoundsListAltID,
+ &ContactEditorData.SoundsListPID,
+ &ContactEditorData.SoundsListType,
+ &ContactEditorData.SoundsListAudioType,
+ &ContactEditorData.SoundsListAudioEncType,
+ &ContactEditorData.SoundsListTokens,
+ &ContactEditorData.SoundsListMediatype,
+ &ContactEditorData.SoundsListPref,
lboSounds,
(intValueSeek));
frameCESound->ShowModal();
}
frmContactEditorSound *frameCESound = new frmContactEditorSound ( this );
- frameCESound->SetupPointers(&SoundsList,
- &SoundsListAltID,
- &SoundsListPID,
- &SoundsListType,
- &SoundsListAudioType,
- &SoundsListAudioEncType,
- &SoundsListTokens,
- &SoundsListMediatype,
- &SoundsListPref,
+ frameCESound->SetupPointers(&ContactEditorData.SoundsList,
+ &ContactEditorData.SoundsListAltID,
+ &ContactEditorData.SoundsListPID,
+ &ContactEditorData.SoundsListType,
+ &ContactEditorData.SoundsListAudioType,
+ &ContactEditorData.SoundsListAudioEncType,
+ &ContactEditorData.SoundsListTokens,
+ &ContactEditorData.SoundsListMediatype,
+ &ContactEditorData.SoundsListPref,
lboSounds,
intSelectedData);
frameCESound->SetEditorMode(TRUE);
lboSounds->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &SoundsList, &SoundsListAltID,
- &SoundsListPID, &SoundsListType, &SoundsListAudioType,
- &SoundsListAudioEncType, &SoundsListTokens, &SoundsListMediatype,
- &SoundsListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.SoundsList, &ContactEditorData.SoundsListAltID,
+ &ContactEditorData.SoundsListPID, &ContactEditorData.SoundsListType, &ContactEditorData.SoundsListAudioType,
+ &ContactEditorData.SoundsListAudioEncType, &ContactEditorData.SoundsListTokens, &ContactEditorData.SoundsListMediatype,
+ &ContactEditorData.SoundsListPref);
}
std::map<int, std::string>::iterator initier;
- initier = SoundsList.find(intSelectedData);
+ initier = ContactEditorData.SoundsList.find(intSelectedData);
base64dec = base64_decode(initier->second);
base64declen = base64dec.size();
std::map<int,std::string>::iterator initier;
std::map<int,wxString>::iterator soundtypeiter;
- initier = SoundsList.find(intSelectedData);
- soundtypeiter = SoundsListAudioType.find(intSelectedData);
+ initier = ContactEditorData.SoundsList.find(intSelectedData);
+ soundtypeiter = ContactEditorData.SoundsListAudioType.find(intSelectedData);
// Open up the dialog to save the picture.
std::string base64dec;
- initier = SoundsList.find(intSelectedData);
+ initier = ContactEditorData.SoundsList.find(intSelectedData);
base64dec = base64_decode(initier->second);
SoundFile.Write(base64dec.c_str(), (size_t)base64dec.size());