script.h
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 <qstring.h>
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
QString evaluate(
const KURL& );
00048
00049
private:
00050
KJS::Interpreter m_interpreter;
00051 };
00052 }
00053
00054
#endif // KPAC_SCRIPT_H
00055
00056
This file is part of the documentation for kio Library Version 3.3.1.