void CMLan::SetAllOffline() { for (MCONTACT hContact = db_find_first(PROTONAME); hContact; hContact = db_find_next(hContact, PROTONAME)) { db_set_w(hContact, PROTONAME, "Status", ID_STATUS_OFFLINE); db_unset(hContact, PROTONAME, "IP"); } DeleteCache(); }
void plComponentNoteTrackDlg::ICacheNoteTrack() { DeleteCache(); plComponentBase *comp = (plComponentBase*)fOwner; std::vector<Animatable*> targets; for (int i = 0; i < comp->NumTargets(); i++) { if (comp->GetTarget(i)) targets.push_back((Animatable*)comp->GetTarget(i)); } fSegMap = GetSharedAnimSegmentMap(targets, nil); }
CMLan::~CMLan() { m_mirStatus = ID_STATUS_OFFLINE; StopChecking(); DeleteCache(); StopListen(); Shutdown(); DeleteCriticalSection(&m_csFileConnectionList); DeleteCriticalSection(&m_csAccessAwayMes); DeleteCriticalSection(&m_csReceiveThreadLock); DeleteCriticalSection(&m_csAccessClass); delete[] m_amesAway; delete[] m_amesNa; delete[] m_amesOccupied; delete[] m_amesDnd; delete[] m_amesFfc; }
bool VFSHandle_ZIP::Close(void) { m_cd.offset = m_stream.tellg(); for(unsigned int a=0;a<m_fh.size();a++) WriteFH(m_fh[a]); WriteCD(); bool r1 = VFSHandle_file::Close(); bool r2 = fusion->vfs->Close(m_handle); DeleteCache(); delete[] m_file; delete[] m_archive; m_handle = NULL; m_fileid = 0; if(r1 == true && r2 == true) return true; return false; }
//------------------------------------------------------------------------- // y-Call : clear cache //------------------------------------------------------------------------- void CmodCache::yCacheClear(CyhookHandler *hh) { std::string result=""; if(!hh->ParamList["category"].empty()) { RemoveCategoryFromCache(hh->ParamList["category"]); result = string_printf("Category (%s) removed from cache.</br>", hh->ParamList["category"].c_str()); } else if(!hh->ParamList["url"].empty()) { RemoveURLFromCache(hh->ParamList["url"]); result = string_printf("URL (%s) removed from cache.</br>", hh->ParamList["url"].c_str()); } else { DeleteCache(); result = string_printf("Cache deleted.</br>"); } hh->SendHTMLHeader("Cache deletion"); hh->WriteLn(result); hh->SendHTMLFooter(); }
void plNoteTrackDlg::ICacheNoteTrack() { DeleteCache(); fSegMap = GetAnimSegmentMap(fOwner, nil); }
plNoteTrackDlg::~plNoteTrackDlg() { DeleteCache(); }