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

Kross

  • Kross
  • ChildrenInterface
Public Types | Public Member Functions | List of all members
Kross::ChildrenInterface Class Reference

#include <childreninterface.h>

Inheritance diagram for Kross::ChildrenInterface:
Inheritance graph
[legend]

Public Types

enum  Options { NoOption = 0x00, AutoConnectSignals = 0x01, LastOption = 0x1000000 }
 

Public Member Functions

void addObject (QObject *object, const QString &name=QString(), Options options=NoOption)
 
bool hasObject (const QString &name) const
 
QObject * object (const QString &name) const
 
Options objectOption (const QString &name) const
 
QHash< QString, Options > objectOptions () const
 
QHash< QString, QObject * > objects () const
 

Detailed Description

Interface for managing Object collections.

The Manager as well as the Action class inherit this interface to allow to attach QObject to a global or a local context related instances that should be published to the scripting code.

Definition at line 38 of file childreninterface.h.

Member Enumeration Documentation

enum Kross::ChildrenInterface::Options

Additional options that could be defined for a QObject instance.

Enumerator
NoOption 

No additional options. This is the default.

AutoConnectSignals 

auto connect signals with scripting functions.

LastOption 

Definition at line 45 of file childreninterface.h.

Member Function Documentation

void Kross::ChildrenInterface::addObject ( QObject *  object,
const QString &  name = QString(),
Options  options = NoOption 
)
inline

Add a QObject to the list of children.

Parameters
objectThe QObject instance that should be added to the list of children.
nameThe name the QObject should be known under. If not defined, the QObject's objectName is used.
optionsAdditional optional options for the QObject.

Definition at line 80 of file childreninterface.h.

bool Kross::ChildrenInterface::hasObject ( const QString &  name) const
inline
Returns
true if there exist a QObject with the name else false is returned.

Definition at line 90 of file childreninterface.h.

QObject* Kross::ChildrenInterface::object ( const QString &  name) const
inline
Returns
the QObject with name or NULL if there exist no such object.

Definition at line 97 of file childreninterface.h.

Options Kross::ChildrenInterface::objectOption ( const QString &  name) const
inline
Returns
true if the QObject with name was added with autoConnect enabled.

Definition at line 111 of file childreninterface.h.

QHash< QString, Options > Kross::ChildrenInterface::objectOptions ( ) const
inline
Returns
the map of options.

Definition at line 118 of file childreninterface.h.

QHash< QString, QObject* > Kross::ChildrenInterface::objects ( ) const
inline
Returns
the map of QObject instances.

Definition at line 104 of file childreninterface.h.


The documentation for this class was generated from the following file:
  • childreninterface.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal