Example #1
0
/* Get the Model ID used for N2K Certification */
QString tNDP2kInstrument::GetModelId( unsigned short productCode )
{
    QString modelId( "" );

    switch( productCode )
    {
    case N2K_PRODUCT_CODE_B_AND_G_GFD:
        modelId = "H5000";
        break;

    case N2K_PRODUCT_CODE_SIMRAD_REPOWER:
        modelId = "IS35";
        break;

    case N2K_PRODUCT_CODE_LOWRANCE_REPOWER:
        modelId = "C10";
        break;

    default :
        // Unknown product code.
        Assert( 0 );
    }
  
    return modelId;
}
void QmlProfilerTimelineModel::announceFeatures(quint64 features) const
{
    m_modelManager->announceFeatures(modelId(), features);
}
void QmlProfilerTimelineModel::updateProgress(qint64 count, qint64 max) const
{
    m_modelManager->modelProxyCountUpdated(modelId(), count, max);
}
 PrevNextTestModel(Timeline::TimelineModelAggregator *parent) : TimelineModel(parent)
 {
     for (int i = 0; i < 20; ++i)
         insert(i + modelId(), i * modelId(), modelId());
 }