Exemple #1
0
 void S3::setup(kerberos::StringMap & settings)
 {
     Cloud::setup(settings);
     
     // -------------------------
     // Initialize S3 credentials
     
     setBucket(settings.at("clouds.S3.bucket"));
     setFolder(settings.at("clouds.S3.folder"));
     setPublicKey(settings.at("clouds.S3.publicKey"));
     setPrivateKey(settings.at("clouds.S3.privateKey"));
 }
int UIWizardExportAppPageBasic3::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = UIWizardPage::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = format(); break;
        case 1: *reinterpret_cast< bool*>(_v) = isManifestSelected(); break;
        case 2: *reinterpret_cast< QString*>(_v) = username(); break;
        case 3: *reinterpret_cast< QString*>(_v) = password(); break;
        case 4: *reinterpret_cast< QString*>(_v) = hostname(); break;
        case 5: *reinterpret_cast< QString*>(_v) = bucket(); break;
        case 6: *reinterpret_cast< QString*>(_v) = path(); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setFormat(*reinterpret_cast< QString*>(_v)); break;
        case 1: setManifestSelected(*reinterpret_cast< bool*>(_v)); break;
        case 2: setUserName(*reinterpret_cast< QString*>(_v)); break;
        case 3: setPassword(*reinterpret_cast< QString*>(_v)); break;
        case 4: setHostname(*reinterpret_cast< QString*>(_v)); break;
        case 5: setBucket(*reinterpret_cast< QString*>(_v)); break;
        case 6: setPath(*reinterpret_cast< QString*>(_v)); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 7;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}