KHtml

kjs_navigator.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2000 Harri Porten ([email protected])
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library 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  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library 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 #ifndef _KJS_NAVIGATOR_H_
21 #define _KJS_NAVIGATOR_H_
22 
23 #include <kjs/object.h>
24 #include "kjs_binding.h"
25 
26 class KHTMLPart;
27 
28 namespace KJS
29 {
30 
31 class Navigator : public JSObject
32 {
33 public:
34  Navigator(ExecState *exec, KHTMLPart *p);
35  using KJS::JSObject::getOwnPropertySlot;
36  bool getOwnPropertySlot(ExecState *exec, const Identifier &propertyName, PropertySlot &slot) override;
37  JSValue *getValueProperty(ExecState *exec, int token) const;
38  const ClassInfo *classInfo() const override
39  {
40  return &info;
41  }
42  static const ClassInfo info;
43  enum { AppCodeName, AppName, AppVersion, Language, UserAgent, UserLanguage, Platform,
44  _Plugins, _MimeTypes, Product, ProductSub, Vendor, VendorSub, CookieEnabled, JavaEnabled,
45  BrowserLanguage, CpuClass
46  };
47  KHTMLPart *part() const
48  {
49  return m_part;
50  }
51 private:
52  KHTMLPart *m_part;
53 };
54 
55 // Hashtable enums
56 enum { Plugins_Refresh, Plugins_Length, Plugins_Item, Plugins_NamedItem };
57 enum { MimeTypes_Length, MimeTypes_Item, MimeTypes_NamedItem };
58 enum { Plugin_Name, Plugin_FileName, Plugin_Description, Plugin_Length, Plugin_Item, Plugin_NamedItem };
59 enum { MimeType_Type, MimeType_Description, MimeType_EnabledPlugin, MimeType_Suffixes };
60 
61 } // namespace
62 
63 #endif
This class is khtml&#39;s main class.
Definition: khtml_part.h:208
Language
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:48:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.