KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
KviKvsObject Class Reference

#include <KviKvsObject.h>

+ Inheritance diagram for KviKvsObject:

Public Member Functions

bool callFunction (KviKvsObject *pCaller, const QString &fncName, const QString &classOverride, KviKvsRunTimeContext *pContext, KviKvsVariant *pRetVal, KviKvsVariantList *pParams)
 
bool callFunction (KviKvsObject *pCaller, const QString &fncName, KviKvsVariantList *pParams=0)
 
bool callFunction (KviKvsObject *pCaller, const QString &fncName, KviKvsVariant *pRetVal, KviKvsVariantList *pParams=0)
 
bool connectSignal (const QString &sigName, KviKvsObject *target, const QString &slotName)
 
KviKvsHashdataContainer ()
 
bool die ()
 
bool dieNow ()
 
bool disconnectSignal (const QString &sigName, KviKvsObjectConnection *con)
 
bool disconnectSignal (const QString &sigName, KviKvsObject *target, const QString &slotName)
 
int emitSignal (const QString &sigName, KviKvsObjectFunctionCall *pOuterCall, KviKvsVariantList *pParams=0)
 
KviKvsObjectfindChild (const QString &szClass, const QString &szName)
 
KviPointerHashTable< QString,
KviKvsObjectFunctionHandler > * 
functionHandlers ()
 
KviKvsObjectClassgetClass (const QString &classOverride=QString())
 
KviKvsObjectClassgetExactClass ()
 
const QString & getName ()
 
kvs_hobject_t handle ()
 
bool inheritsClass (KviKvsObjectClass *pClass)
 
bool inheritsClass (const QString &szClass)
 
void killAllChildrenWithClass (KviKvsObjectClass *cl)
 
 KviKvsObject (KviKvsObjectClass *pClass, KviKvsObject *pParent, const QString &szName)
 
KviKvsObjectFunctionHandlerlookupFunctionHandler (const QString &funcName, const QString &classOverride=QString())
 
QObject * object () const
 
KviKvsObjectparentObject ()
 
QWidget * parentScriptWidget ()
 
void registerPrivateImplementation (const QString &szFunctionName, const QString &szCode)
 
void setObject (QObject *o, bool bIsOwned=true)
 
void setSignalName (const QString &szSigName)
 
void setSignalSender (kvs_hobject_t hObject)
 
kvs_hobject_t signalSender ()
 
virtual ~KviKvsObject ()
 

Protected Slots

void delayedDie ()
 
void objectDestroyed ()
 

Protected Member Functions

virtual bool eventFilter (QObject *o, QEvent *e)
 
bool function_childCount (KviKvsObjectFunctionCall *c)
 
bool function_children (KviKvsObjectFunctionCall *c)
 
bool function_className (KviKvsObjectFunctionCall *c)
 
bool function_destructor (KviKvsObjectFunctionCall *c)
 
bool function_emit (KviKvsObjectFunctionCall *c)
 
bool function_findChild (KviKvsObjectFunctionCall *c)
 
bool function_killTimer (KviKvsObjectFunctionCall *c)
 
bool function_listProperties (KviKvsObjectFunctionCall *c)
 
bool function_name (KviKvsObjectFunctionCall *c)
 
bool function_parent (KviKvsObjectFunctionCall *c)
 
bool function_property (KviKvsObjectFunctionCall *c)
 
bool function_setProperty (KviKvsObjectFunctionCall *c)
 
bool function_signalName (KviKvsObjectFunctionCall *c)
 
bool function_signalSender (KviKvsObjectFunctionCall *c)
 
bool function_startTimer (KviKvsObjectFunctionCall *c)
 
virtual bool init (KviKvsRunTimeContext *pContext, KviKvsVariantList *pParams)
 
void registerChild (KviKvsObject *c)
 
void registerConnection (KviKvsObjectConnection *con)
 
virtual void timerEvent (QTimerEvent *e)
 
void unregisterChild (KviKvsObject *c)
 
bool unregisterConnection (KviKvsObjectConnection *con)
 

Protected Attributes

bool m_bAboutToDie
 
bool m_bDestructorCalled
 
bool m_bInDelayedDeath
 
bool m_bObjectOwner
 
kvs_hobject_t m_hObject
 
kvs_hobject_t m_hSignalSender
 
KviPointerList< KviKvsObject > * m_pChildList
 
KviKvsObjectClassm_pClass
 
KviKvsObjectConnectionListm_pConnectionList
 
KviKvsHashm_pDataContainer
 
KviPointerHashTable< QString,
KviKvsObjectFunctionHandler > * 
m_pFunctionHandlers
 
QObject * m_pObject
 
KviPointerHashTable< QString,
KviKvsObjectConnectionList > * 
m_pSignalDict
 
QString m_szName
 
QString m_szSignalName
 

Private Member Functions

void callDestructor ()
 

Friends

class KviKvsObjectClass
 
class KviKvsObjectController
 

Constructor & Destructor Documentation

KviKvsObject::KviKvsObject ( KviKvsObjectClass pClass,
KviKvsObject pParent,
const QString &  szName 
)
KviKvsObject::~KviKvsObject ( )
virtual

Member Function Documentation

void KviKvsObject::callDestructor ( )
private
bool KviKvsObject::callFunction ( KviKvsObject pCaller,
const QString &  fncName,
const QString &  classOverride,
KviKvsRunTimeContext pContext,
KviKvsVariant pRetVal,
KviKvsVariantList pParams 
)

References __tr2qs_ctx(), KviKvsObjectFunctionHandler::call(), KviKvsRunTimeContext::error(), KviKvsObjectFunctionHandler::flags(), getClass(), h, KviKvsObjectFunctionHandler::Internal, lookupFunctionHandler(), m_szName, and KviRuntimeInfo::name().

Referenced by KvsObject_wizard::accept(), KviKvsObjectClass::allocateInstance(), KvsObject_textBrowser::anchorClicked(), KvsObject_wizard::backClicked(), callDestructor(), callFunction(), KvsObject_tableWidget::cellActivated(), KvsObject_tableWidget::cellDoubleClicked(), KviXmlHandler::characters(), KvsObject_listWidget::currentItemChanged(), KvsObject_comboBox::editTextChanged(), emitSignal(), KviXmlHandler::endDocument(), KviXmlHandler::endElement(), KviXmlHandler::error(), KviKvsTreeNodeThisObjectFunctionCall::evaluateReadOnlyInObjectScope(), KviKvsTreeNodeBaseObjectFunctionCall::evaluateReadOnlyInObjectScope(), KvsObject_widget::eventFilter(), KvsObject_treeWidget::fileDropped(), KvsObject_pixmap::frameChanged(), KvsObject_wizard::nextClicked(), KvsObject_tableWidget::paint(), KvsObject_wizard::reject(), KvsObject_listWidget::selectionChanged(), KviCellItemDelegate::sizeHint(), KvsObject_trayIcon::slotActivated(), KvsObject_comboBox::slotActivated(), KvsObject_button::slotClicked(), KvsObject_toolButton::slotClicked(), KvsObject_treeWidget::slotClicked(), KvsObject_colorDialog::slotColorSelected(), KvsObject_ftp::slotCommandFinished(), KvsObject_socket::slotConnected(), KvsObject_tabWidget::slotCurrentChanged(), KvsObject_treeWidget::slotCurrentChanged(), KvsObject_colorDialog::slotCurrentColorChanged(), KvsObject_http::slotDataReadProgress(), KvsObject_http::slotDataSendProgress(), KvsObject_ftp::slotDataTransferProgress(), KvsObject_dateTimeEdit::slotDateChanged(), KvsObject_dateTimeEdit::slotDateTimeChanged(), KvsObject_socket::slotDisconnected(), KvsObject_http::slotDone(), KvsObject_socket::slotError(), KvsObject_socket::slotHostFound(), KvsObject_popupMenu::slothovered(), KvsObject_treeWidget::slotItemActivated(), KvsObject_listWidget::slotItemChanged(), KvsObject_treeWidget::slotItemChanged(), KvsObject_treeWidget::slotItemCollapsed(), KvsObject_listWidget::slotItemEntered(), KvsObject_tableWidget::slotItemEntered(), KvsObject_treeWidget::slotItemExpanded(), KvsObject_ftp::slotListInfo(), KvsObject_lineEdit::slotlostFocus(), KvsObject_trayIcon::slotMessageClicked(), KvsObject_socket::slotNewConnection(), KvsObject_treeWidget::slotOnItemEntered(), KvsObject_process::slotReadStderr(), KvsObject_process::slotReadStdout(), KvsObject_socket::slotReadyRead(), KvsObject_http::slotReadyRead(), KvsObject_http::slotRequestFinished(), KvsObject_http::slotRequestStarted(), KvsObject_http::slotResponseHeaderReceived(), KvsObject_lineEdit::slotreturnPressed(), KvsObject_treeWidget::slotSelectionChanged(), KvsObject_http::slotSslErrors(), KvsObject_ftp::slotStateChanged(), KvsObject_socket::slotStateChanged(), KvsObject_http::slotStateChanged(), KvsObject_tabWidget::slotTabCloseRequest(), KvsObject_lineEdit::slottextChanged(), KvsObject_dateTimeEdit::slotTimeChanged(), KvsObject_popupMenu::slottriggered(), KviXmlHandler::startDocument(), KviXmlHandler::startElement(), timerEvent(), KvsObject_checkBox::toggled(), KvsObject_radioButton::toggled(), KvsObject_slider::valueChanged(), KvsObject_spinBox::valueChanged(), and KviXmlHandler::warning().

bool KviKvsObject::callFunction ( KviKvsObject pCaller,
const QString &  fncName,
KviKvsVariantList pParams = 0 
)

References callFunction().

bool KviKvsObject::callFunction ( KviKvsObject pCaller,
const QString &  fncName,
KviKvsVariant pRetVal,
KviKvsVariantList pParams = 0 
)
bool KviKvsObject::connectSignal ( const QString &  sigName,
KviKvsObject target,
const QString &  slotName 
)
KviKvsHash* KviKvsObject::dataContainer ( )
inline
void KviKvsObject::delayedDie ( )
protectedslot
bool KviKvsObject::die ( )
bool KviKvsObject::dieNow ( )
bool KviKvsObject::disconnectSignal ( const QString &  sigName,
KviKvsObjectConnection con 
)
bool KviKvsObject::disconnectSignal ( const QString &  sigName,
KviKvsObject target,
const QString &  slotName 
)
int KviKvsObject::emitSignal ( const QString &  sigName,
KviKvsObjectFunctionCall pOuterCall,
KviKvsVariantList pParams = 0 
)
bool KviKvsObject::eventFilter ( QObject *  o,
QEvent *  e 
)
protectedvirtual

Reimplemented in KvsObject_widget.

Referenced by KvsObject_widget::eventFilter().

KviKvsObject * KviKvsObject::findChild ( const QString &  szClass,
const QString &  szName 
)
bool KviKvsObject::function_childCount ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_children ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_className ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_destructor ( KviKvsObjectFunctionCall c)
protected

References emitSignal().

Referenced by KviKvsObjectController::init().

bool KviKvsObject::function_emit ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_findChild ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_killTimer ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_listProperties ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_name ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_parent ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_property ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_setProperty ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_signalName ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_signalSender ( KviKvsObjectFunctionCall c)
protected
bool KviKvsObject::function_startTimer ( KviKvsObjectFunctionCall c)
protected
KviPointerHashTable<QString, KviKvsObjectFunctionHandler>* KviKvsObject::functionHandlers ( )
inline
KviKvsObjectClass * KviKvsObject::getClass ( const QString &  classOverride = QString())
KviKvsObjectClass* KviKvsObject::getExactClass ( )
inline
const QString& KviKvsObject::getName ( )
inline
kvs_hobject_t KviKvsObject::handle ( )
inline
bool KviKvsObject::inheritsClass ( KviKvsObjectClass pClass)
bool KviKvsObject::inheritsClass ( const QString &  szClass)
bool KviKvsObject::init ( KviKvsRunTimeContext pContext,
KviKvsVariantList pParams 
)
protectedvirtual
void KviKvsObject::killAllChildrenWithClass ( KviKvsObjectClass cl)
KviKvsObjectFunctionHandler * KviKvsObject::lookupFunctionHandler ( const QString &  funcName,
const QString &  classOverride = QString() 
)
QObject* KviKvsObject::object ( ) const
inline
void KviKvsObject::objectDestroyed ( )
protectedslot

References die(), and m_pObject.

Referenced by setObject(), and ~KviKvsObject().

KviKvsObject* KviKvsObject::parentObject ( )
inline
QWidget * KviKvsObject::parentScriptWidget ( )

References object(), and parentObject().

void KviKvsObject::registerChild ( KviKvsObject c)
protected
void KviKvsObject::registerConnection ( KviKvsObjectConnection con)
protected
void KviKvsObject::registerPrivateImplementation ( const QString &  szFunctionName,
const QString &  szCode 
)
void KviKvsObject::setObject ( QObject *  o,
bool  bIsOwned = true 
)
void KviKvsObject::setSignalName ( const QString &  szSigName)
inline

Referenced by emitSignal().

void KviKvsObject::setSignalSender ( kvs_hobject_t  hObject)
inline

Referenced by emitSignal().

kvs_hobject_t KviKvsObject::signalSender ( )
inline

Referenced by emitSignal().

void KviKvsObject::timerEvent ( QTimerEvent *  e)
protectedvirtual
void KviKvsObject::unregisterChild ( KviKvsObject c)
protected
bool KviKvsObject::unregisterConnection ( KviKvsObjectConnection con)
protected

Friends And Related Function Documentation

friend class KviKvsObjectClass
friend
friend class KviKvsObjectController
friend

Member Data Documentation

bool KviKvsObject::m_bAboutToDie
protected
bool KviKvsObject::m_bDestructorCalled
protected
bool KviKvsObject::m_bInDelayedDeath
protected

Referenced by delayedDie(), die(), and KviKvsObject().

bool KviKvsObject::m_bObjectOwner
protected
kvs_hobject_t KviKvsObject::m_hObject
protected

Referenced by emitSignal(), and KviKvsObject().

kvs_hobject_t KviKvsObject::m_hSignalSender
protected

Referenced by function_signalSender().

KviPointerList<KviKvsObject>* KviKvsObject::m_pChildList
protected
KviKvsObjectClass* KviKvsObject::m_pClass
protected
KviKvsObjectConnectionList* KviKvsObject::m_pConnectionList
protected
KviKvsHash* KviKvsObject::m_pDataContainer
protected

Referenced by KviKvsObject(), and ~KviKvsObject().

KviPointerHashTable<QString, KviKvsObjectFunctionHandler>* KviKvsObject::m_pFunctionHandlers
protected
QObject* KviKvsObject::m_pObject
protected
KviPointerHashTable<QString, KviKvsObjectConnectionList>* KviKvsObject::m_pSignalDict
protected
QString KviKvsObject::m_szName
protected
QString KviKvsObject::m_szSignalName
protected

Referenced by function_signalName().


The documentation for this class was generated from the following files: