KIO
script.h
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 #ifndef KPAC_SCRIPT_H
00022 #define KPAC_SCRIPT_H
00023
00024 #include <QtCore/QString>
00025
00026 #include <kjs/interpreter.h>
00027
00028 class KUrl;
00029
00030 namespace KPAC
00031 {
00032 class Script
00033 {
00034 public:
00035 class Error
00036 {
00037 public:
00038 Error( const QString& message )
00039 : m_message( message ) {}
00040 const QString& message() const { return m_message; }
00041
00042 private:
00043 QString m_message;
00044 };
00045
00046 Script( const QString& code );
00047 ~Script();
00048 QString evaluate( const KUrl& );
00049
00050 private:
00051 KJS::Interpreter* m_interpreter;
00052 };
00053 }
00054
00055 #endif // KPAC_SCRIPT_H
00056
00057