Esempio n. 1
0
CoreNetworkConfig::CoreNetworkConfig(const QString &objectName, CoreSession *session)
    : NetworkConfig(objectName, session)
{
    setAllowClientUpdates(true);

    if (!session) {
        qWarning() << Q_FUNC_INFO << "No CoreSession set, cannot load network configuration!";
        return;
    }

    fromVariantMap(Core::getUserSetting(session->user(), objectName).toMap());
}
Esempio n. 2
0
DccConfig::DccConfig(QObject *parent)
    : SyncableObject(parent)
{
    static auto regTypes = []() -> bool {
        qRegisterMetaTypeStreamOperators<IpDetectionMode>("DccConfig::IpDetectionMode");
        qRegisterMetaTypeStreamOperators<PortSelectionMode>("DccConfig::PortSelectionMode");
        return true;
    }();
    Q_UNUSED(regTypes);

    renameObject("DccConfig");
    setAllowClientUpdates(true);
}
Esempio n. 3
0
void Transfer::init()
{
    static auto regTypes = []() -> bool {
        qRegisterMetaType<Status>("Transfer::Status");
        qRegisterMetaType<Direction>("Transfer::Direction");
        qRegisterMetaTypeStreamOperators<Status>("Transfer::Status");
        qRegisterMetaTypeStreamOperators<Direction>("Transfer::Direction");
        return true;
    }();
    Q_UNUSED(regTypes);

    renameObject(QString("Transfer/%1").arg(_uuid.toString()));
    setAllowClientUpdates(true);
}
Esempio n. 4
0
CoreBufferViewConfig::CoreBufferViewConfig(int bufferViewId, const QVariantMap &properties, QObject *parent)
    : BufferViewConfig(bufferViewId, properties, parent)
{
    setAllowClientUpdates(true);
}
Esempio n. 5
0
CoreBufferViewConfig::CoreBufferViewConfig(int bufferViewId, QObject *parent)
    : BufferViewConfig(bufferViewId, parent)
{
    setAllowClientUpdates(true);
}
Esempio n. 6
0
CoreCertManager::CoreCertManager(CoreIdentity &identity)
    : CertManager(identity.id()),
    identity(identity)
{
    setAllowClientUpdates(true);
}
Esempio n. 7
0
void Transfer::init()
{
    renameObject(QString("Transfer/%1").arg(_uuid.toString()));
    setAllowClientUpdates(true);
}