Exemple #1
0
bool CManagedUrlList::CurrentlyListed(CUrl Url) {
	// If the url is in the list of urls to visit, then we already know about it
	for (std::list<CUrl>::iterator j = this->begin(); j != this->end(); j++) {
		CUrl Current = *j;
		// ### This will have to be more specific to match the server too
		if (Url.GetResource() == Current.GetResource()) return true;
	}

	// Didn't find it in the list
	return false;
}
Exemple #2
0
bool CManagedUrlList::PreviouslyListed(CUrl Url) {
	// If the url is in the list of visited resources, then we've been there
	for (std::list<CUrl>::iterator i = m_PastItems.begin(); i != m_PastItems.end(); i++) {
		CUrl Current = *i;
		// ### This will have to be more specific to match the server too
		if (Current.GetResource() == Url.GetResource()) {
			// Already been there
			return true;
		}
	}
	// Couldn't find it
	return false;
}