wxCommandEvent actstop(ACTMGR_STOP);
wxPostEvent(frmMainPtrProc, actstop);
- //frmMainPtrProc->ActivityIconStop();
this->Stop();
bmpActivity->SetBitmap(*SleepBitmapPtr);
frmMain *frmMainPtrProc = static_cast<frmMain*>(frmMainPtr);
wxCommandEvent actstart(ACTMGR_START);
wxPostEvent(frmMainPtrProc, actstart);
- //frmMainPtrProc->ActivityIconStart();
this->ResetBitmap();
this->Start(50, FALSE);
for (std::map<int,int>::iterator iter = ActListPtr->begin();
iter != ActListPtr->end(); ++iter){
- // Check for any queued tasks and start one.
+ // Check for any queued tasks and start one.
- // 0 = Queued.
- // 1 = Processing.
- // 2 = Failed.
- // 3 = Stopped.
- // 4 = Completed.
- // 5 = Failed (UI Updated).
- // 6 = Stopped (UI Updated).
- // 7 = (Reserved) (UI Updated).
- // 8 = Completed. (UI Updated).
+ // 0 = Queued.
+ // 1 = Processing.
+ // 2 = Failed.
+ // 3 = Stopped.
+ // 4 = Completed.
+ // 5 = Failed (UI Updated).
+ // 6 = Stopped (UI Updated).
+ // 7 = (Reserved) (UI Updated).
+ // 8 = Completed. (UI Updated).
std::map<int,long>::iterator LongIter = ActListUIPtr->find(iter->first);
ueventdata->ItemIndex = LongIter->second;
ueventdata->ItemLabel = _("Processing...");
- //ueventdata->ItemDes = _("Adding Contact '") + DetailIter->second + _("'...");
wxPostEvent(static_cast<frmActivityMgr*>(ActMgrPtr), uevent);
-
- /*lstActivityPtr->SetItem(LongIter->second, 2, _("Processing..."));
- if (ActListDetailPtr->find(iter->first) != ActListDetailPtr->end()){
- lblDetailsPtr->SetLabel(_("Adding Contact '") + DetailIter->second + _("'..."));
- }*/
} else if (iter->second == 2){
wxPostEvent(static_cast<frmActivityMgr*>(ActMgrPtr), uevent);
iter->second = 5;
- //lstActivityPtr->SetItem(LongIter->second, 2, _("Failed"));
-
} else if (iter->second == 3){
ueventdata->ItemIndex = LongIter->second;
wxPostEvent(static_cast<frmActivityMgr*>(ActMgrPtr), uevent);
iter->second = 5;
- //lstActivityPtr->SetItem(LongIter->second, 2, _("Stopped"));
- //iter->second = 6;
-
} else if (iter->second == 4){
ueventdata->ItemIndex = LongIter->second;
wxPostEvent(static_cast<frmActivityMgr*>(ActMgrPtr), uevent);
iter->second = 8;
-
- //lstActivityPtr->SetItem(LongIter->second, 2, _("Completed"));
- //iter->second = 8;
}
// Check each ETagDB and see if writing to file is required.
- //ETagDB* ETagDBPtr;
- //ETagDB ETagDBCopy;
-
std::map<wxString,ETagDB>::iterator ETagIter;
for (ETagIter = ETagDBList.begin();
}
- //raise(SIGABRT);
-
- /*for (int i = 0; i < PrefData.accounts.GetCount(); i++){
-
- AccountDir = PrefData.accounts.GetAccountDirectory(i);
-
- AccountDir.Trim();
- AccountDir.Append(wxT(".carddav"));
-
- //AccountPrefix = PrefData.accounts.GetAccountDirPrefix(i);
-
- //ETagDB NewETagDB (AccountDir);
-
- ETagDB AccountDB;
- AccountDB.SetupDB(AccountDir);
-
- //ETagDBList.insert(std::make_pair(AccountDir, Moo));
-
- //std::pair<wxString,ETagDB> Moo2;
-
- //ETagDB2 Meep;
-
- //ETagDBListv3.insert(std::make_pair(0,Meep));
-
- //ETagDBListv2.insert(std::make_pair(0, Moo));
-
- //ETagDBList.insert(Moo2);
-
- ETagDBList.insert(std::make_pair(AccountDir, AccountDB));
-
- //Moo55.insert(std::make_pair(wxT("Meep"), wxT("Meep")));
-
- //ETagDBList[AccountDir] = new ETagDB (AccountDir);
-
- }*/
-
- //ETagDB Test (AccountDir);
-
- //ETagDBList.insert(std::make_pair(AccountDir, Test));
-
ReloadLock.unlock();
this->Start(15000);
void wxContactWindowMonitor::Notify(){
- // Look through the list of windows and see if any have
- // closed. IF they have closed then delete and free the
- // memory (also delete from the map).
-
- /*for(std::map<wxString, void*>::iterator iter = ContactWindowListPtr->begin();
- iter != ContactWindowListPtr->end(); iter++){
-
- frmContact *ContactPtr = (frmContact*)iter->second;
-
- // Check if open.
-
- if (
-
- // Delete the form.
-
- // Delete the data from the map.
-
- }*/
-
}
void wxContactWindowMonitor::SetupPointers(std::map<wxString, void*> *ContactWindowListPtrInc){