Go to the
documentation of this file.
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef QSCRIPTSTRING_H
00025 #define QSCRIPTSTRING_H
00026
00027 #include <QtCore/qstring.h>
00028
00029 #include <QtCore/qsharedpointer.h>
00030
00031 QT_BEGIN_HEADER
00032
00033 QT_BEGIN_NAMESPACE
00034
00035 QT_MODULE(Script)
00036
00037 class QScriptStringPrivate;
00038 class Q_SCRIPT_EXPORT QScriptString
00039 {
00040 public:
00041 QScriptString();
00042 QScriptString(const QScriptString &other);
00043 ~QScriptString();
00044
00045 QScriptString &operator=(const QScriptString &other);
00046
00047 bool isValid() const;
00048
00049 bool operator==(const QScriptString &other) const;
00050 bool operator!=(const QScriptString &other) const;
00051
00052 quint32 toArrayIndex(bool *ok = 0) const;
00053
00054 QString toString() const;
00055 operator QString() const;
00056
00057 private:
00058 QExplicitlySharedDataPointer<QScriptStringPrivate> d_ptr;
00059 friend class QScriptValue;
00060 Q_DECLARE_PRIVATE(QScriptString)
00061 };
00062
00063 Q_SCRIPT_EXPORT uint qHash(const QScriptString &key);
00064
00065 QT_END_NAMESPACE
00066
00067 QT_END_HEADER
00068
00069 #endif // QSCRIPTSTRING_H