[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Sun May 2 02:56:17 CEST 2010
SVN commit 1121646 by jmhoffmann:
DownloadQueueSet: Rename m_jobQueue -> m_jobs as it is not a queue.
M +5 -5 DownloadQueueSet.cpp
M +1 -1 DownloadQueueSet.h
--- trunk/KDE/kdeedu/marble/src/lib/DownloadQueueSet.cpp #1121645:1121646
@@ -75,18 +75,18 @@
void DownloadQueueSet::addJob( HttpJob * const job )
{
- m_jobQueue.push( job );
- mDebug() << "addJob: new job queue size:" << m_jobQueue.count();
+ m_jobs.push( job );
+ mDebug() << "addJob: new job queue size:" << m_jobs.count();
emit jobAdded();
activateJobs();
}
void DownloadQueueSet::activateJobs()
{
- while ( !m_jobQueue.isEmpty()
+ while ( !m_jobs.isEmpty()
&& m_activeJobs.count() < m_downloadPolicy.maximumConnections() )
{
- HttpJob * const job = m_jobQueue.pop();
+ HttpJob * const job = m_jobs.pop();
activateJob( job );
}
}
@@ -195,7 +195,7 @@
inline bool DownloadQueueSet::jobIsQueued( QString const & destinationFileName ) const
{
- return m_jobQueue.contains( destinationFileName );
+ return m_jobs.contains( destinationFileName );
}
bool DownloadQueueSet::jobIsWaitingForRetry( QString const & destinationFileName ) const
--- trunk/KDE/kdeedu/marble/src/lib/DownloadQueueSet.h #1121645:1121646
@@ -127,7 +127,7 @@
QStack<HttpJob*> m_jobs;
QSet<QString> m_jobsContent;
};
- JobStack m_jobQueue;
+ JobStack m_jobs;
/// Contains the jobs which are currently being downloaded.
QList<HttpJob*> m_activeJobs;
More information about the Marble-commits
mailing list