• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • kjs
error_object.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 */
20
21#ifndef _ERROR_OBJECT_H_
22#define _ERROR_OBJECT_H_
23
24#include "internal.h"
25#include "function_object.h"
26
27namespace KJS {
28
29 class ErrorInstanceImp : public ObjectImp {
30 public:
31 ErrorInstanceImp(ObjectImp *proto);
32
33 virtual const ClassInfo *classInfo() const { return &info; }
34 static const ClassInfo info;
35 };
36
37 class ErrorPrototypeImp : public ObjectImp {
38 public:
39 ErrorPrototypeImp(ExecState *exec,
40 ObjectPrototypeImp *objectProto,
41 FunctionPrototypeImp *funcProto);
42 };
43
44 class ErrorProtoFuncImp : public InternalFunctionImp {
45 public:
46 ErrorProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto);
47 virtual bool implementsCall() const;
48 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
49 };
50
51 class ErrorObjectImp : public InternalFunctionImp {
52 public:
53 ErrorObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
54 ErrorPrototypeImp *errorProto);
55
56 virtual bool implementsConstruct() const;
57 virtual Object construct(ExecState *exec, const List &args);
58
59 virtual bool implementsCall() const;
60 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
61 };
62
63
64
65
66
67 class NativeErrorPrototypeImp : public ObjectImp {
68 public:
69 NativeErrorPrototypeImp(ExecState *exec, ErrorPrototypeImp *errorProto,
70 ErrorType et, UString name, UString message);
71 private:
72 ErrorType errType;
73 };
74
75 class NativeErrorImp : public InternalFunctionImp {
76 public:
77 NativeErrorImp(ExecState *exec, FunctionPrototypeImp *funcProto,
78 const Object &prot);
79
80 virtual bool implementsConstruct() const;
81 virtual Object construct(ExecState *exec, const List &args);
82 virtual bool implementsCall() const;
83 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
84
85 virtual void mark();
86
87 virtual const ClassInfo *classInfo() const { return &info; }
88 static const ClassInfo info;
89 private:
90 ObjectImp *proto;
91 };
92
93} // namespace
94
95#endif

kjs

Skip menu "kjs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kjs

Skip menu "kjs"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.9.4
This website is maintained by Timothy Pearson.