chameria-webview-factory/src/main/java/de/akquinet/chameria/webview/WebViewFactory.java
private void configureApplication() {
        if (m_appName != null) {
            QApplication.setApplicationName(m_appName);
        } else {
            QApplication.setApplicationName("akquinet ChameRIA");
        }
        if (m_appVersion != null) {
            QApplication.setApplicationVersion(m_appVersion);
        } else {
            QApplication.setApplicationVersion(m_context.getBundle().getVersion().toString());
        }

        if (m_icon != null) {
            QFile file = new QFile(m_icon);

            QIcon icon = new QIcon(file.fileName());
            QApplication.setWindowIcon(icon);
        }

        QApplication.setOrganizationName("akquinet A.G.");

        // Configure the proxy
        if (m_proxyType != null) {
            m_logger.warn("Set application proxy : " + m_proxyType);
            if (m_proxyHostName == null || m_proxyPort == 0) {
                m_logger.error("Cannot configure proxy : hostname or port not set : " + m_proxyHostName + ":" + m_proxyPort);
            } else {
                QNetworkProxy proxy = new QNetworkProxy(m_proxyType, m_proxyHostName, m_proxyPort);
                QNetworkProxy.setApplicationProxy(proxy);
                m_logger.warn("Application proxy set " + m_proxyType + " on " + m_proxyHostName + ":" + m_proxyPort);
            }
        }

    }
private void configureApplication() {
        if (m_appName != null) {
            QApplication.setApplicationName(m_appName);
        } else {
            QApplication.setApplicationName("akquinet ChameRIA");
        }
        if (m_appVersion != null) {
            QApplication.setApplicationVersion(m_appVersion);
        } else {
            QApplication.setApplicationVersion(m_context.getBundle().getVersion().toString());
        }

        if (m_icon != null) {
            QFile file = new QFile(m_icon);

            QIcon icon = new QIcon(file.fileName());
            QApplication.setWindowIcon(icon);
        }

        QApplication.setOrganizationName("akquinet A.G.");

        // Configure the proxy
        if (m_proxyType != null) {
            m_logger.warn("Set application proxy : " + m_proxyType);
            if (m_proxyHostName == null || m_proxyPort == 0) {
                m_logger.error("Cannot configure proxy : hostname or port not set : " + m_proxyHostName + ":" + m_proxyPort);
            } else {
                QNetworkProxy proxy = new QNetworkProxy(m_proxyType, m_proxyHostName, m_proxyPort);
                QNetworkProxy.setApplicationProxy(proxy);
                m_logger.warn("Application proxy set " + m_proxyType + " on " + m_proxyHostName + ":" + m_proxyPort);
            }
        }

    }
private void configureApplication ( ) { if ( m_appName != null ) { QApplication . setApplicationName ( m_appName ) ; } else { QApplication . setApplicationName ( "akquinet ChameRIA" ) ; } if ( m_appVersion != null ) { QApplication . setApplicationVersion ( m_appVersion ) ; } else { QApplication . setApplicationVersion ( m_context . getBundle ( ) . getVersion ( ) . toString ( ) ) ; } if ( m_icon != null ) { QFile file = new QFile ( m_icon ) ; QIcon icon = new QIcon ( file . fileName ( ) ) ; QApplication . setWindowIcon ( icon ) ; } QApplication . setOrganizationName ( "akquinet A.G." ) ; // Configure the proxy if ( m_proxyType != null ) { m_logger . warn ( "Set application proxy : " + m_proxyType ) ; if ( m_proxyHostName == null || m_proxyPort == 0 ) { m_logger . error ( "Cannot configure proxy : hostname or port not set : " + m_proxyHostName + ":" + m_proxyPort ) ; } else { QNetworkProxy proxy = new QNetworkProxy ( m_proxyType , m_proxyHostName , m_proxyPort ) ; QNetworkProxy . setApplicationProxy ( proxy ) ; m_logger . warn ( "Application proxy set " + m_proxyType + " on " + m_proxyHostName + ":" + m_proxyPort ) ; } } }
Configures the application:
<ul>
<li>sets the application name (default: 'akquinet ChameRIA')</li>
<li>sets the application version (default: current web view factory version)</li>
<li>sets the application icon (default : no icon)</li>
</ul>
Configures the application : <ul > <li > sets the application name ( default : akquinet ChameRIA ) < / li > <li > sets the application version ( default : current web view factory version ) < / li > <li > sets the application icon ( default : no icon ) < / li > < / ul >