Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

KJSEmbed::JSProxy Class Reference

Base class for all proxy objects. More...

#include <jsproxy.h>

Inheritance diagram for KJSEmbed::JSProxy:

KJSEmbed::JSObjectProxy KJSEmbed::JSOpaqueProxy KJSEmbed::JSValueProxy List of all members.

Public Types

enum  ProxyType { UnknownProxy, ObjectProxy, ValueProxy, OpaqueProxy }

Public Methods

 JSProxy (int type)
virtual ~JSProxy ()
int proxyType () const
bool isObjectProxy () const
bool isValueProxy () const
bool isOpaqueProxy () const
JSObjectProxytoObjectProxy ()
JSValueProxytoValueProxy ()
JSOpaqueProxytoOpaqueProxy ()

Static Public Methods

JSProxy * toProxy (KJS::ValueImp *imp)
JSObjectProxytoObjectProxy (KJS::ValueImp *imp)
JSValueProxytoValueProxy (KJS::ValueImp *imp)
JSOpaqueProxytoOpaqueProxy (KJS::ValueImp *imp)

Detailed Description

Base class for all proxy objects.

Version:
Id:
jsproxy.h,v 1.6 2003/10/31 01:20:24 rich Exp
Author:
Richard Moore, rich@kde.org


Member Enumeration Documentation

enum KJSEmbed::JSProxy::ProxyType
 

Identifiers for the various types of proxy.

Enumeration values:
UnknownProxy 
ObjectProxy 
ValueProxy 
OpaqueProxy 


Constructor & Destructor Documentation

KJSEmbed::JSProxy::JSProxy int    type
 

virtual KJSEmbed::JSProxy::~JSProxy   [virtual]
 


Member Function Documentation

bool KJSEmbed::JSProxy::isObjectProxy   const [inline]
 

Returns true iff this is a JSObjectProxy.

bool KJSEmbed::JSProxy::isOpaqueProxy   const [inline]
 

Returns true iff this is a JSOpaqueProxy.

bool KJSEmbed::JSProxy::isValueProxy   const [inline]
 

Returns true iff this is a JSValueProxy.

int KJSEmbed::JSProxy::proxyType   const [inline]
 

Returns the type of the proxy.

JSObjectProxy* KJSEmbed::JSProxy::toObjectProxy KJS::ValueImp *    imp [static]
 

Converts the specified ValueImp to a JSObjectProxy if possible, if the ValueImp is not a JSObjectProxy then 0 is returned.

JSObjectProxy* KJSEmbed::JSProxy::toObjectProxy  
 

Returns this object as a JSObjectProxy or 0 if the type is wrong.

JSOpaqueProxy* KJSEmbed::JSProxy::toOpaqueProxy KJS::ValueImp *    imp [static]
 

Converts the specified ValueImp to a JSOpaqueProxy if possible, if the ValueImp is not a JSOpaqueProxy then 0 is returned.

JSOpaqueProxy* KJSEmbed::JSProxy::toOpaqueProxy  
 

Returns this object as a JSOpaqueProxy or 0 if the type is wrong.

JSProxy* KJSEmbed::JSProxy::toProxy KJS::ValueImp *    imp [static]
 

Converts the specified ValueImp to a JSProxy if possible, if the ValueImp is not a JSProxy then 0 is returned.

JSValueProxy* KJSEmbed::JSProxy::toValueProxy KJS::ValueImp *    imp [static]
 

Converts the specified ValueImp to a JSValueProxy if possible, if the ValueImp is not a JSValueProxy then 0 is returned.

JSValueProxy* KJSEmbed::JSProxy::toValueProxy  
 

Returns this object as a JSValueProxy or 0 if the type is wrong.


The documentation for this class was generated from the following file:
Generated on Sun Jan 11 02:29:54 2004 for KJSEmbed by doxygen1.2.18