Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/xmlpatterns/api/qxmlquery.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the QtXmlPatterns module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    152152
    153153  \note For the current release, XSLT support should be considered
    154         experimental. See section \l{QtXmlPatterns Module#XSLT
     154        experimental. See section \l{Using XML technologies#XSLT
    155155        2.0}{XSLT conformance} for details.
    156156
     
    232232 \value XQuery10 XQuery 1.0.
    233233 \value XSLT20 XSLT 2.0
     234 \omitvalue XmlSchema11IdentityConstraintSelector The selector, the restricted
     235            XPath pattern found in W3C XML Schema 1.1 for uniqueness
     236            contraints. Apart from restricting the syntax, the type check stage
     237            for the expression assumes a sequence of nodes to be the focus.
     238 \omitvalue XmlSchema11IdentityConstraintField The field, the restricted
     239            XPath pattern found in W3C XML Schema 1.1 for uniqueness
     240            contraints. Apart from restricting the syntax, the type check stage
     241            for the expression assumes a sequence of nodes to be the focus.
     242 \omitvalue XPath20 Signifies XPath 2.0. Has no effect in the public API, it's
     243            used internally. As With XmlSchema11IdentityConstraintSelector and
     244            XmlSchema11IdentityConstraintField, the type check stage
     245            for the expression assumes a sequence of nodes to be the focus.
    234246
    235247 \sa setQuery()
     
    280292
    281293  \note The XSL-T support in this release is considered experimental.
    282   See the \l{QtXmlPatterns Module#XSLT 2.0}{XSLT conformance} for
     294  See the \l{Using XML technologies#XSLT 2.0}{XSLT conformance} for
    283295  details.
    284296
     
    416428    }
    417429
    418     d->queryURI = QXmlQueryPrivate::normalizeQueryURI(documentURI);
     430    d->queryURI = QPatternist::XPathHelper::normalizeQueryURI(documentURI);
    419431    d->expression(sourceCode);
    420432}
     
    464476    Q_ASSERT_X(queryURI.isValid(), Q_FUNC_INFO, "The passed URI must be valid.");
    465477
    466     const QUrl canonicalURI(QXmlQueryPrivate::normalizeQueryURI(queryURI));
     478    const QUrl canonicalURI(QPatternist::XPathHelper::normalizeQueryURI(queryURI));
    467479    Q_ASSERT(canonicalURI.isValid());
    468480    Q_ASSERT(!canonicalURI.isRelative());
    469481    Q_ASSERT(baseURI.isValid() || baseURI.isEmpty());
    470482
    471     d->queryURI = QXmlQueryPrivate::normalizeQueryURI(baseURI.isEmpty() ? queryURI : baseURI);
     483    d->queryURI = QPatternist::XPathHelper::normalizeQueryURI(baseURI.isEmpty() ? queryURI : baseURI);
    472484
    473485    QPatternist::AutoPtr<QIODevice> result;
     
    10401052
    10411053/*!
     1054  This function behaves identically to calling the setFocus() overload with a
     1055  QIODevice whose content is \a focus encoded as UTF-8. That is, \a focus is
     1056  treated as if it contained an XML document.
     1057
     1058  Returns the same result as the overload.
     1059
     1060  \overload
     1061  \since 4.6
     1062 */
     1063bool QXmlQuery::setFocus(const QString &focus)
     1064{
     1065    QBuffer device;
     1066    device.setData(focus.toUtf8());
     1067    device.open(QIODevice::ReadOnly);
     1068
     1069    return setFocusHelper(this, &device);
     1070}
     1071
     1072/*!
    10421073  Returns a value indicating what this QXmlQuery is being used for.
    10431074  The default is QXmlQuery::XQuery10, which means the QXmlQuery is
Note: See TracChangeset for help on using the changeset viewer.