int CellularTechnologies::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = cellSearchStatus(); break;
        case 1: *reinterpret_cast< QStringList*>(_v) = configuredTechnologies(); break;
        case 2: *reinterpret_cast< QString*>(_v) = connectionState(); break;
        case 3: *reinterpret_cast< QString*>(_v) = displayedCarrierName(); break;
        case 4: *reinterpret_cast< QString*>(_v) = homeCountry(); break;
        case 5: *reinterpret_cast< bool*>(_v) = isOnEmergencyCall(); break;
        case 6: *reinterpret_cast< QString*>(_v) = networkTechnology(); break;
        case 7: *reinterpret_cast< QString*>(_v) = parentCarrierName(); break;
        case 8: *reinterpret_cast< bool*>(_v) = roaming(); break;
        case 9: *reinterpret_cast< QString*>(_v) = scanMode(); break;
        case 10: *reinterpret_cast< int*>(_v) = signalStrengthBars(); break;
        case 11: *reinterpret_cast< int*>(_v) = signalStrengthRssi(); break;
        case 12: *reinterpret_cast< QString*>(_v) = technologyIndicator(); break;
        }
        _id -= 13;
    } else if (_c == QMetaObject::WriteProperty) {
        _id -= 13;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 13;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 13;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
Beispiel #2
0
bool HRootDir::overlaps(const HRootDir& other) const
{
    bool retVal = false;

    QString thisPath = m_dir.absolutePath();
    QString otherPath = other.dir().absolutePath();

    if (thisPath == otherPath)
    {
        retVal = true;
    }
    else if (otherPath.startsWith(thisPath) && scanMode() == RecursiveScan)
    {
        retVal = true;
    }

    return retVal;
}