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

kjs

  • kjs
bool_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 _BOOL_OBJECT_H_
23 #define _BOOL_OBJECT_H_
24 
25 #include "internal.h"
26 #include "function_object.h"
27 
28 namespace KJS {
29 
30  class BooleanInstanceImp : public ObjectImp {
31  public:
32  BooleanInstanceImp(ObjectImp *proto);
33 
34  virtual const ClassInfo *classInfo() const { return &info; }
35  static const ClassInfo info;
36  };
37 
44  class BooleanPrototypeImp : public BooleanInstanceImp {
45  public:
46  BooleanPrototypeImp(ExecState *exec,
47  ObjectPrototypeImp *objectProto,
48  FunctionPrototypeImp *funcProto);
49  };
50 
57  class BooleanProtoFuncImp : public InternalFunctionImp {
58  public:
59  BooleanProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto,
60  int i, int len, const Identifier &_ident);
61 
62  virtual bool implementsCall() const;
63  virtual Value call(ExecState *exec, Object &thisObj, const List &args);
64 
65  enum { ToString, ValueOf };
66  private:
67  int id;
68  };
69 
75  class BooleanObjectImp : public InternalFunctionImp {
76  friend class BooleanProtoFuncImp;
77  public:
78  BooleanObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
79  BooleanPrototypeImp *booleanProto);
80 
81  virtual bool implementsConstruct() const;
82  virtual Object construct(ExecState *exec, const List &args);
83 
84  virtual bool implementsCall() const;
85  virtual Value call(ExecState *exec, Object &thisObj, const List &args);
86  };
87 
88 } // namespace
89 
90 #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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kjs by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |