[BB10-internal] Add a method that allows registration of files to types

There is currently no way in C++ to duplicate the functionality of a qmldir
file in mapping QML files to versioned types in a module. This functionality
would be useful both in cases where a separate qmldir file would be overkill,
and for cases where the type mapping should be generated dynamically.

Since public API is frozen for 4.8, this is being added as private API
for those who need some measure of compatibility with qtquick1 in Qt5.

Change-Id: I28d7898122c5556fcd7cf3476795bcf4bb288ea6
Manual cherry pick of qtquick1/9995a2910d8a5f0317fe3adeb54f838b99ab31a8

Signed-off-by: Peter Hartmann <phartmann@rim.com>
[BB10-internal] QNetworkAccessManager: return default configuration if without session

... instead of a zero configuration. That is documented already for
QNetworkAccessManager::setConfiguration().

Task-number: QTBUG-28973
(cherry picked from commit 1df2b9ee2376e132a6bf9596097351f0c79e6b73)

Change-Id: I074265525485b63adecad90f16fd4e2acf6d7b16
Signed-off-by: Peter Hartmann <phartmann@rim.com>
[BB10-internal] Revert "Remove QPerformanceTimer now that QElapsedTimer contains the necessary bits"

This reverts commit 88966515993773e4d7d6276bce6fccfcc13ab6f4.

This apparently caused regressions in Cascades.

Change-Id: I8b4290ab9412fd779e1c5ed7752539f241ce90a5
Signed-off-by: Peter Hartmann <phartmann@rim.com>
[BB10-internal] QSslConfiguration: toggle on demand loading of root certs properly

make sure we keep track of when we can load root certs and when we
cannot (we cannot when the developer set the certs explicitly). This is
implemented the same way for QSslSocket already, and needs to be
duplicated because we have 2 methods for setting CA certificates: one in
QSslSocket and one in QSslConfiguration.
In addition, adapt the auto test which checks whether setting a default
QSslConfiguration works: There is no way to set on demand loading
through the API, so it should be enabled by default.

Task-number: QTBUG-29103
(backport of commit ce35c0db0d9dd849c736eabaeb57d597186aaa13)

Change-Id: Idf15c21092c7727e1080b1c261ce055f30dbcf63
Signed-off-by: Peter Hartmann <phartmann@rim.com>
[BB10-internal] SSL: Implement session sharing and use it from QNetworkAccessManager

This improves performance since a network round trip can be avoided.

Change-Id: I1aaff7e48ef9638cb137de0f43942c3a4dd2884a
Initial-patch-by: Markus Goetz <markus@woboq.com>
Reviewed-by: Richard J. Moore <rich@kde.org>

Author: Marcel Krems <m.krems@software-vision.eu>
Date:   Thu Feb 7 05:24:52 2013 +0100
SSL: Use correct signature for SSL_get1_session

This fixes a compilation error with GCC 4.7
which was introduced in b5652df775efbd1c52eecee5f08e40e600e5d70b
In function ‘SSL_SESSION* q_SSL_get1_session(const SSL*)’:
invalid conversion from ‘const SSL* {aka const ssl_st*}’ to ‘SSL* {aka ssl_st*}’ [-fpermissive]

Change-Id: I909f7fb4295b2019283a7af66a038d4711e5f7cb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Peter Hartmann <phartmann@rim.com>

(backport of b5652df775efbd1c52eecee5f08e40e600e5d70b and
9b5ec67c18cba4e7b0b8a4d5c8c52b64da7549a9 squashed together)

Signed-off-by: Peter Hartmann <phartmann@rim.com>