• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KJS

KJS::DateInstance

KJS::DateInstance Class Reference

#include <date_object.h>

Inheritance diagram for KJS::DateInstance:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 34 of file date_object.h.


Public Member Functions

 DateInstance (JSObject *proto)
bool getTime (tm &t, int &gmtoffset) const
bool getUTCTime (tm &t) const
bool getTime (double &ms, int &gmtoffset) const
bool getUTCTime (double &ms) const
virtual const ClassInfo * classInfo () const

Static Public Attributes

static const ClassInfo info = {"Date", 0, 0, 0}

Constructor & Destructor Documentation

KJS::DateInstance::DateInstance ( JSObject *  proto  ) 

Definition at line 392 of file date_object.cpp.


Member Function Documentation

bool KJS::DateInstance::getTime ( tm &  t,
int &  gmtoffset 
) const

Definition at line 397 of file date_object.cpp.

bool KJS::DateInstance::getUTCTime ( tm &  t  )  const

Definition at line 408 of file date_object.cpp.

bool KJS::DateInstance::getTime ( double &  ms,
int &  gmtoffset 
) const

Definition at line 418 of file date_object.cpp.

bool KJS::DateInstance::getUTCTime ( double &  ms  )  const

Definition at line 430 of file date_object.cpp.

virtual const ClassInfo* KJS::DateInstance::classInfo (  )  const [inline, virtual]

A pointer to a ClassInfo struct for this class.

This provides a basic facility for run-time type information, and can be used to check an object's class an inheritance (see inherits()). This should always return a statically declared pointer, or 0 to indicate that there is no class information.

This is primarily useful if you have application-defined classes that you wish to check against for casting purposes.

For example, to specify the class info for classes FooImp and BarImp, where FooImp inherits from BarImp, you would add the following in your class declarations:

   class BarImp : public JSObject {
     virtual const ClassInfo *classInfo() const { return &info; }
     static const ClassInfo info;
     // ...
   };

   class FooImp : public JSObject {
     virtual const ClassInfo *classInfo() const { return &info; }
     static const ClassInfo info;
     // ...
   };

And in your source file:

   const ClassInfo BarImp::info = {"Bar", 0, 0, 0}; // no parent class
   const ClassInfo FooImp::info = {"Foo", &BarImp::info, 0, 0};

See also:
inherits()

Reimplemented from KJS::JSObject.

Reimplemented in KJS::DatePrototype.

Definition at line 43 of file date_object.h.


Member Data Documentation

const ClassInfo KJS::DateInstance::info = {"Date", 0, 0, 0} [static]

Reimplemented in KJS::DatePrototype.

Definition at line 44 of file date_object.h.


The documentation for this class was generated from the following files:
  • date_object.h
  • date_object.cpp

KJS

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal