• NymeaConfiguration
  • NymeaConfiguration Class

    (nymeaserver::NymeaConfiguration)
    Inherits:

    Public Types

    enum ConfigurationError { ConfigurationErrorNoError, ConfigurationErrorInvalidTimeZone, ConfigurationErrorInvalidStationName, ConfigurationErrorInvalidId, ..., ConfigurationErrorInvalidCertificate }

    Public Functions

    NymeaConfiguration(QObject * parent = 0)
    bool bluetoothServerEnabled() const
    QString cloudCertificate() const
    QString cloudCertificateCA() const
    QString cloudCertificateKey() const
    bool cloudEnabled() const
    QString cloudServerUrl() const
    bool debugServerEnabled() const
    QLocale locale() const
    QString logDBDriver() const
    QString logDBHost() const
    int logDBMaxEntries() const
    QString logDBName() const
    QString logDBPassword() const
    QString logDBUser() const
    void removeTcpServerConfiguration(const QString & id)
    void removeWebServerConfiguration(const QString & id)
    void removeWebSocketServerConfiguration(const QString & id)
    QString serverName() const
    QUuid serverUuid() const
    void setBluetoothServerEnabled(const bool & enabled)
    void setCloudCertificate(const QString & cloudCertificate)
    void setCloudCertificateCA(const QString & cloudCertificateCA)
    void setCloudCertificateKey(const QString & cloudCertificateKey)
    void setCloudEnabled(bool enabled)
    void setCloudServerUrl(const QString & cloudServerUrl)
    void setDebugServerEnabled(bool enabled)
    void setLocale(const QLocale & locale)
    void setServerName(const QString & serverName)
    void setSslCertificate(const QString & sslCertificate, const QString & sslCertificateKey)
    void setTcpServerConfiguration(const ServerConfiguration & config)
    void setTimeZone(const QByteArray & timeZone)
    void setWebServerConfiguration(const WebServerConfiguration & config)
    void setWebSocketServerConfiguration(const ServerConfiguration & config)
    QString sslCertificate() const
    QString sslCertificateKey() const
    QHash<QString, ServerConfiguration> tcpServerConfigurations() const
    QByteArray timeZone() const
    QHash<QString, WebServerConfiguration> webServerConfigurations() const
    QHash<QString, ServerConfiguration> webSocketServerConfigurations() const

    Signals

    void bluetoothServerEnabledChanged()
    void cloudEnabledChanged(bool enabled)
    void debugServerEnabledChanged(bool enabled)
    void localeChanged()
    void serverNameChanged(const QString & serverName)
    void tcpServerConfigurationChanged(const QString & configId)
    void tcpServerConfigurationRemoved(const QString & configId)
    void timeZoneChanged()
    void webServerConfigurationChanged(const QString & configId)
    void webServerConfigurationRemoved(const QString & configId)
    void webSocketServerConfigurationChanged(const QString & configId)
    void webSocketServerConfigurationRemoved(const QString & configId)

    Member Type Documentation

    enum NymeaConfiguration::ConfigurationError

    Member Function Documentation

    NymeaConfiguration::NymeaConfiguration(QObject * parent = 0)

    bool NymeaConfiguration::bluetoothServerEnabled() const

    See also setBluetoothServerEnabled().

    [signal] void NymeaConfiguration::bluetoothServerEnabledChanged()

    QString NymeaConfiguration::cloudCertificate() const

    See also setCloudCertificate().

    QString NymeaConfiguration::cloudCertificateCA() const

    See also setCloudCertificateCA().

    QString NymeaConfiguration::cloudCertificateKey() const

    See also setCloudCertificateKey().

    bool NymeaConfiguration::cloudEnabled() const

    See also setCloudEnabled().

    [signal] void NymeaConfiguration::cloudEnabledChanged(bool enabled)

    QString NymeaConfiguration::cloudServerUrl() const

    See also setCloudServerUrl().

    bool NymeaConfiguration::debugServerEnabled() const

    See also setDebugServerEnabled().

    [signal] void NymeaConfiguration::debugServerEnabledChanged(bool enabled)

    QLocale NymeaConfiguration::locale() const

    See also setLocale().

    [signal] void NymeaConfiguration::localeChanged()

    QString NymeaConfiguration::logDBDriver() const

    QString NymeaConfiguration::logDBHost() const

    int NymeaConfiguration::logDBMaxEntries() const

    QString NymeaConfiguration::logDBName() const

    QString NymeaConfiguration::logDBPassword() const

    QString NymeaConfiguration::logDBUser() const

    void NymeaConfiguration::removeTcpServerConfiguration(const QString & id)

    void NymeaConfiguration::removeWebServerConfiguration(const QString & id)

    void NymeaConfiguration::removeWebSocketServerConfiguration(const QString & id)

    QString NymeaConfiguration::serverName() const

    See also setServerName().

    [signal] void NymeaConfiguration::serverNameChanged(const QString & serverName)

    QUuid NymeaConfiguration::serverUuid() const

    void NymeaConfiguration::setBluetoothServerEnabled(const bool & enabled)

    See also bluetoothServerEnabled().

    void NymeaConfiguration::setCloudCertificate(const QString & cloudCertificate)

    See also cloudCertificate().

    void NymeaConfiguration::setCloudCertificateCA(const QString & cloudCertificateCA)

    See also cloudCertificateCA().

    void NymeaConfiguration::setCloudCertificateKey(const QString & cloudCertificateKey)

    See also cloudCertificateKey().

    void NymeaConfiguration::setCloudEnabled(bool enabled)

    See also cloudEnabled().

    void NymeaConfiguration::setCloudServerUrl(const QString & cloudServerUrl)

    See also cloudServerUrl().

    void NymeaConfiguration::setDebugServerEnabled(bool enabled)

    See also debugServerEnabled().

    void NymeaConfiguration::setLocale(const QLocale & locale)

    See also locale().

    void NymeaConfiguration::setServerName(const QString & serverName)

    See also serverName().

    void NymeaConfiguration::setSslCertificate(const QString & sslCertificate, const QString & sslCertificateKey)

    See also sslCertificate().

    void NymeaConfiguration::setTcpServerConfiguration(const ServerConfiguration & config)

    void NymeaConfiguration::setTimeZone(const QByteArray & timeZone)

    See also timeZone().

    void NymeaConfiguration::setWebServerConfiguration(const WebServerConfiguration & config)

    void NymeaConfiguration::setWebSocketServerConfiguration(const ServerConfiguration & config)

    QString NymeaConfiguration::sslCertificate() const

    See also setSslCertificate().

    QString NymeaConfiguration::sslCertificateKey() const

    [signal] void NymeaConfiguration::tcpServerConfigurationChanged(const QString & configId)

    [signal] void NymeaConfiguration::tcpServerConfigurationRemoved(const QString & configId)

    QHash<QString, ServerConfiguration> NymeaConfiguration::tcpServerConfigurations() const

    QByteArray NymeaConfiguration::timeZone() const

    See also setTimeZone().

    [signal] void NymeaConfiguration::timeZoneChanged()

    [signal] void NymeaConfiguration::webServerConfigurationChanged(const QString & configId)

    [signal] void NymeaConfiguration::webServerConfigurationRemoved(const QString & configId)

    QHash<QString, WebServerConfiguration> NymeaConfiguration::webServerConfigurations() const

    [signal] void NymeaConfiguration::webSocketServerConfigurationChanged(const QString & configId)

    [signal] void NymeaConfiguration::webSocketServerConfigurationRemoved(const QString & configId)

    QHash<QString, ServerConfiguration> NymeaConfiguration::webSocketServerConfigurations() const