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

kjs

  • kjs
object_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 _OBJECT_OBJECT_H_
22 #define _OBJECT_OBJECT_H_
23 
24 #include "internal.h"
25 #include "function.h"
26 
27 namespace KJS {
28 
29  class FunctionPrototypeImp;
30 
37  class ObjectPrototypeImp : public ObjectImp {
38  public:
39  ObjectPrototypeImp(ExecState *exec, FunctionPrototypeImp *funcProto);
40  };
41 
48  class ObjectProtoFuncImp : public InternalFunctionImp {
49  public:
50  ObjectProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto,
51  int i, int len, const Identifier &_ident);
52 
53  virtual bool implementsCall() const;
54  virtual Value call(ExecState *exec, Object &thisObj, const List &args);
55 
56  enum { ToString, ToLocaleString, ValueOf, HasOwnProperty,
57  IsPrototypeOf, PropertyIsEnumerable };
58 
59  private:
60  int id;
61  };
62 
68  class ObjectObjectImp : public InternalFunctionImp {
69  public:
70 
71  ObjectObjectImp(ExecState *exec,
72  ObjectPrototypeImp *objProto,
73  FunctionPrototypeImp *funcProto);
74 
75  virtual bool implementsConstruct() const;
76  virtual Object construct(ExecState *exec, const List &args);
77  virtual bool implementsCall() const;
78  virtual Value call(ExecState *exec, Object &thisObj, const List &args);
79  };
80 
81 } // namespace
82 
83 #endif
KJS
Definition: array_instance.h:27

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.8.8
This website is maintained by Timothy Pearson.