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 QSCRIPTPROGRAM_H
00025 #define QSCRIPTPROGRAM_H
00026
00027 #include <QtCore/qsharedpointer.h>
00028
00029 #include <QtCore/qstring.h>
00030
00031 QT_BEGIN_HEADER
00032
00033 QT_BEGIN_NAMESPACE
00034
00035 QT_MODULE(Script)
00036
00037 class QScriptProgramPrivate;
00038 class Q_SCRIPT_EXPORT QScriptProgram
00039 {
00040 public:
00041 QScriptProgram();
00042 QScriptProgram(const QString &sourceCode,
00043 const QString fileName = QString(),
00044 int firstLineNumber = 1);
00045 QScriptProgram(const QScriptProgram &other);
00046 ~QScriptProgram();
00047
00048 QScriptProgram &operator=(const QScriptProgram &other);
00049
00050 bool isNull() const;
00051
00052 QString sourceCode() const;
00053 QString fileName() const;
00054 int firstLineNumber() const;
00055
00056 bool operator==(const QScriptProgram &other) const;
00057 bool operator!=(const QScriptProgram &other) const;
00058
00059 private:
00060 QExplicitlySharedDataPointer<QScriptProgramPrivate> d_ptr;
00061 Q_DECLARE_PRIVATE(QScriptProgram)
00062 };
00063
00064 QT_END_NAMESPACE
00065
00066 QT_END_HEADER
00067
00068 #endif // QSCRIPTPROGRAM_H