#include "../common/etag.h"
#include "../common/timers.h"
-#include "../frmActivityMgr.h"
+#include "../actmgr/frmActivityMgr.h"
#include "../frmMain.h"
+#include "cdo/ContactDataObject.h"
+
#define CE_NICKNAME wxT("Nickname")
#define CE_ADDRESS wxT("Address")
#define CE_EMAIL wxT("Email")
void OnMusicEnd() { }
bool GetPlayingStatus(){ return FilePlaying; }
-
-/*
- void load(const sf::SoundBuffer& buffer)
- {
- // extract the audio samples from the sound buffer to our own container
- m_samples.assign(buffer.getSamples(), buffer.getSamples() + buffer.getSampleCount());
-
- // reset the current playing position
- m_currentSample = 0;
-
- // initialize the base class
- initialize(buffer.getChannelCount(), buffer.getSampleRate());
- }
-
- bool GetPlayingStatus(){ return FilePlaying; }
-
-private:
-
- virtual bool onGetData(Chunk& data)
- {
- // number of samples to stream every time the function is called;
- // in a more robust implementation, it would rather be a fixed
- // amount of time rather than an arbitrary number of samples
- const int samplesToStream = 50000;
-
- // set the pointer to the next audio samples to be played
- data.samples = &m_samples[m_currentSample];
-
- // have we reached the end of the sound?
- if (m_currentSample + samplesToStream <= m_samples.size())
- {
- // end not reached: stream the samples and continue
- data.sampleCount = samplesToStream;
- m_currentSample += samplesToStream;
- FilePlaying = TRUE;
- return true;
- }
- else
- {
- // end of stream reached: stream the remaining samples and stop playback
- data.sampleCount = m_samples.size() - m_currentSample;
- m_currentSample = m_samples.size();
- FilePlaying = FALSE;
- return false;
- }
- }
-
- virtual void onSeek(sf::Time TimeOffset)
- {
- // compute the corresponding sample index according to the sample rate and channel count
- m_currentSample = static_cast<std::size_t>(TimeOffset.asSeconds() * getSampleRate() * getChannelCount());
- }
-
- std::vector<sf::Int16> m_samples;
- std::size_t m_currentSample;
-
- */
bool FilePlaying = TRUE;
};
void LoadCalAdrURI(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *CalReqAdrCount);
void LoadCalFreeBusy(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *FreeBusyCount);
void LoadKey(wxString wxSPropertySeg1, wxString wxSPropertySeg2, int *KeyCount);
+
+ void LoadData(std::map<int, wxString> *GeneralList,
+ std::map<int, int> *GeneralListPref,
+ wxListCtrl *GeneralListCtrl,
+ std::map<int, wxString> *HomeList,
+ std::map<int, int> *HomeListPref,
+ wxListCtrl *HomeListCtrl,
+ std::map<int, wxString> *BusinessList,
+ std::map<int, int> *BusinessTZPref,
+ wxListCtrl *BusinessListCtrl,
+ int *DataCount);
+
+ void LoadGender(wxString *GenderComponent, wxString *GenderIdentity);
+ void LoadBirthday(wxString *BirthdayData, bool *BirthdayText);
+ void LoadAnniversary(wxString *AnniversaryData, bool *AnniversaryText);
+ void LoadKind(ContactKindType *KindType);
+ void LoadName(wxString *NameTitle, wxString *NameForename,
+ wxString *NameSurname, wxString *NameOtherNames,
+ wxString *NameSuffix);
+ void LoadMember(std::map<int,wxString> *GroupsList);
+ void LoadAddress(std::map<int, wxString> *GeneralAddressList,
+ std::map<int, wxString> *GeneralAddressListTown,
+ std::map<int, wxString> *GeneralAddressListCounty,
+ std::map<int, wxString> *GeneralAddressListPostCode,
+ std::map<int, int> *GeneralAddressListPref,
+ std::map<int, wxString> *HomeAddressList,
+ std::map<int, wxString> *HomeAddressListTown,
+ std::map<int, wxString> *HomeAddressListCounty,
+ std::map<int, wxString> *HomeAddressListPostCode,
+ std::map<int, int> *HomeAddressListPref,
+ std::map<int, wxString> *BusinessAddressList,
+ std::map<int, wxString> *BusinessAddressListTown,
+ std::map<int, wxString> *BusinessAddressListCounty,
+ std::map<int, wxString> *BusinessAddressListPostCode,
+ std::map<int, int> *BusinessAddressListPref,
+ int *AddressCount);
+ void LoadTimeZone(std::map<int, wxString> *GeneralTZListPtr,
+ std::map<int, int> *GeneralTZListPrefPtr,
+ std::map<int, wxString> *HomeTZListPtr,
+ std::map<int, int> *HomeTZListPrefPtr,
+ std::map<int, wxString> *BusinessTZListPtr,
+ std::map<int, int> *BusinessTZListPrefPtr,
+ int *TZCount);
+ void LoadEmail(std::map<int, wxString> *GeneralEmailListPtr,
+ std::map<int, int> *GeneralEmailListPrefPtr,
+ std::map<int, wxString> *HomeEmailListPtr,
+ std::map<int, int> *HomeEmailListPrefPtr,
+ std::map<int, wxString> *BusinessEmailListPtr,
+ std::map<int, int> *BusinessEmailListPrefPtr,
+ int *EmailCount);
int intValueSeek = 1;
bool IsGroup = FALSE;
/* Items on General Tab */
+ ContactDataObject ContactEditorData;
+
wxString NameTitle;
wxString NameForename;
wxString NameSurname;