当前位置: 首页>>代码示例>>C++>>正文


C++ GeoNotifierVector类代码示例

本文整理汇总了C++中GeoNotifierVector的典型用法代码示例。如果您正苦于以下问题:C++ GeoNotifierVector类的具体用法?C++ GeoNotifierVector怎么用?C++ GeoNotifierVector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了GeoNotifierVector类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: copyToSet

void Geolocation::copyToSet(const GeoNotifierVector& src, GeoNotifierSet& dest)
{
     GeoNotifierVector::const_iterator end = src.end();
     for (GeoNotifierVector::const_iterator it = src.begin(); it != end; ++it) {
         GeoNotifier* notifier = it->get();
         dest.add(notifier);
     }
}
开发者ID:eugenejen,项目名称:wkhtmltopdf,代码行数:8,代码来源:Geolocation.cpp

示例2: stopTimer

void Geolocation::stopTimer(GeoNotifierVector& notifiers)
{
    GeoNotifierVector::const_iterator end = notifiers.end();
    for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it) {
        RefPtr<GeoNotifier> notifier = *it;
        notifier->m_timer.stop();
    }
}
开发者ID:CannedFish,项目名称:deepin-webkit,代码行数:8,代码来源:Geolocation.cpp

示例3: sendError

void Geolocation::sendError(GeoNotifierVector& notifiers, PositionError* error)
{
     GeoNotifierVector::const_iterator end = notifiers.end();
     for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it) {
         RefPtr<GeoNotifier> notifier = *it;
         
         notifier->runErrorCallback(error);
     }
}
开发者ID:eugenejen,项目名称:wkhtmltopdf,代码行数:9,代码来源:Geolocation.cpp

示例4: sendPosition

void Geolocation::sendPosition(GeoNotifierVector& notifiers, Geoposition* position)
{
    GeoNotifierVector::const_iterator end = notifiers.end();
    for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it) {
        RefPtr<GeoNotifier> notifier = *it;
        ASSERT(notifier->m_successCallback);
        
        notifier->m_successCallback->handleEvent(position);
    }
}
开发者ID:CannedFish,项目名称:deepin-webkit,代码行数:10,代码来源:Geolocation.cpp

示例5: extractNotifiersWithCachedPosition

void Geolocation::extractNotifiersWithCachedPosition(GeoNotifierVector& notifiers, GeoNotifierVector* cached)
{
    GeoNotifierVector nonCached;
    for (auto& notifier : notifiers) {
        if (notifier->useCachedPosition()) {
            if (cached)
                cached->append(notifier.get());
        } else
            nonCached.append(notifier.get());
    }
    notifiers.swap(nonCached);
}
开发者ID:wolfviking0,项目名称:webcl-webkit,代码行数:12,代码来源:Geolocation.cpp

示例6: extractNotifiersWithCachedPosition

void Geolocation::extractNotifiersWithCachedPosition(GeoNotifierVector& notifiers, GeoNotifierVector* cached)
{
    GeoNotifierVector nonCached;
    GeoNotifierVector::iterator end = notifiers.end();
    for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it) {
        GeoNotifier* notifier = it->get();
        if (notifier->useCachedPosition()) {
            if (cached)
                cached->append(notifier);
        } else
            nonCached.append(notifier);
    }
    notifiers.swap(nonCached);
}
开发者ID:eugenejen,项目名称:wkhtmltopdf,代码行数:14,代码来源:Geolocation.cpp

示例7: cancelRequests

void Geolocation::cancelRequests(GeoNotifierVector& notifiers)
{
    GeoNotifierVector::const_iterator end = notifiers.end();
    for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it)
        (*it)->setFatalError(PositionError::create(PositionError::POSITION_UNAVAILABLE, framelessDocumentErrorMessage));
}
开发者ID:eugenejen,项目名称:wkhtmltopdf,代码行数:6,代码来源:Geolocation.cpp

示例8: stopTimer

void Geolocation::stopTimer(GeoNotifierVector& notifiers)
{
    GeoNotifierVector::const_iterator end = notifiers.end();
    for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it)
        (*it)->stopTimer();
}
开发者ID:eugenejen,项目名称:wkhtmltopdf,代码行数:6,代码来源:Geolocation.cpp

示例9: sendPosition

void Geolocation::sendPosition(GeoNotifierVector& notifiers, Geoposition* position)
{
    GeoNotifierVector::const_iterator end = notifiers.end();
    for (GeoNotifierVector::const_iterator it = notifiers.begin(); it != end; ++it)
        (*it)->runSuccessCallback(position);
}
开发者ID:eugenejen,项目名称:wkhtmltopdf,代码行数:6,代码来源:Geolocation.cpp


注:本文中的GeoNotifierVector类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。