Ejemplo n.º 1
0
CDownloadWithSources::~CDownloadWithSources()
{
	ClearSources();

	delete m_pXML;

	for ( POSITION pos = m_pFailedSources.GetHeadPosition() ; pos ; )
		delete m_pFailedSources.GetNext( pos );

	m_pFailedSources.RemoveAll();
}
Ejemplo n.º 2
0
void CDownload::OnMoved()
{
	CSingleLock pTransfersLock( &Transfers.m_pSection, TRUE );

	// Just completed torrent
	if ( IsTorrent() && IsFullyVerified() )
	{
		// Set FALSE to prevent sending 'stop' announce to tracker
		m_bTorrentRequested = FALSE;
		StopTrying();

		// Send 'completed' announce to tracker
		SendCompleted();

		// This torrent is now seeding
		m_bSeeding = TRUE;
		m_bVerify = TRI_TRUE;
		m_bTorrentStarted = TRUE;
		m_bTorrentRequested = TRUE;
	}
	else
	{
		if ( IsTorrent() )
			m_bTorrentRequested = TRUE;		// Explicitly set flag to send stop announce to tracker
		StopTrying();
		ClearSources();
	}

	ASSERT( ! m_sPath.IsEmpty() );
	const CString strPath = m_sPath;
	m_sPath.Empty();

	pTransfersLock.Unlock();

	DeleteFileEx( strPath + L".png", FALSE, FALSE, TRUE );
	DeleteFileEx( strPath + L".sav", FALSE, FALSE, TRUE );
	DeleteFileEx( strPath, FALSE, FALSE, TRUE );

	pTransfersLock.Lock();

	// Download finalized, tracker notified, set flags that we completed
	m_bComplete  = true;
	m_tCompleted = GetTickCount();
	//LibraryBuilder.m_bBusy = false;
}
CDownloadWithSources::~CDownloadWithSources()
{
	ClearSources();
	if ( m_pXML != NULL ) delete m_pXML;
}
void ConfigurationBatchDialog::OnClearSources( wxCommandEvent& event )
{
    ClearSources();
    m_lSources->Clear();
    m_lDestinations->Clear();
}
Ejemplo n.º 5
0
GmJobItem::~GmJobItem ()
{
	ClearFilter ();
	ClearSources ();
	ClearPlan ();
}