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

kjs

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

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.8.13
This website is maintained by Timothy Pearson.