Esempio n. 1
0
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();
}
Esempio n. 2
0
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);
}
Esempio n. 3
0
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;
}
Esempio n. 4
0
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;
}
Esempio n. 5
0
//-------------------------------------------------------------------------
// 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();
	
}
Esempio n. 6
0
void plNoteTrackDlg::ICacheNoteTrack()
{
    DeleteCache();

    fSegMap = GetAnimSegmentMap(fOwner, nil);
}
Esempio n. 7
0
plNoteTrackDlg::~plNoteTrackDlg()
{
    DeleteCache();
}