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

KParts

  • KParts
  • SelectorInterface
  • Element
Public Member Functions

KParts::SelectorInterface::Element Class Reference

#include <htmlextension.h>

List of all members.

Public Member Functions

 Element ()
 Element (const Element &other)
 ~Element ()
QString attribute (const QString &name, const QString &defaultValue=QString()) const
QStringList attributeNames () const
bool hasAttribute (const QString &name) const
bool isNull () const
Element & operator= (const Element &other)
void setAttribute (const QString &name, const QString &value)
void setTagName (const QString &tag)
void swap (Element &other)
QString tagName () const

Detailed Description

Definition at line 149 of file htmlextension.h.


Constructor & Destructor Documentation

SelectorInterface::Element::Element ( )

Constructor.

Definition at line 60 of file htmlextension.cpp.

SelectorInterface::Element::Element ( const Element &  other)

Copy constructor.

Definition at line 65 of file htmlextension.cpp.

SelectorInterface::Element::~Element ( )

Destructor.

Definition at line 70 of file htmlextension.cpp.


Member Function Documentation

QString SelectorInterface::Element::attribute ( const QString &  name,
const QString &  defaultValue = QString() 
) const

Returns the attribute with the given name.

If the attribute does not exist, defaultValue is returned.

Definition at line 99 of file htmlextension.cpp.

QStringList SelectorInterface::Element::attributeNames ( ) const

Returns the list of attributes in this element.

Definition at line 94 of file htmlextension.cpp.

bool SelectorInterface::Element::hasAttribute ( const QString &  name) const

Returns true if the attribute with the given name exists.

Definition at line 104 of file htmlextension.cpp.

bool SelectorInterface::Element::isNull ( ) const

Returns true if the element is null ; otherwise returns false.

Definition at line 74 of file htmlextension.cpp.

Element& KParts::SelectorInterface::Element::operator= ( const Element &  other) [inline]

Assignment operator.

Definition at line 214 of file htmlextension.h.

void SelectorInterface::Element::setAttribute ( const QString &  name,
const QString &  value 
)

Adds an attribute with the given name and value.

If an attribute with the same name exists, its value is replaced by value.

Definition at line 89 of file htmlextension.cpp.

void SelectorInterface::Element::setTagName ( const QString &  tag)

Sets the tag name of this element.

Definition at line 79 of file htmlextension.cpp.

void KParts::SelectorInterface::Element::swap ( Element &  other) [inline]

Swaps the contents of other with the contents of this.

Definition at line 207 of file htmlextension.h.

QString SelectorInterface::Element::tagName ( ) const

Returns the tag name of this element.

Definition at line 84 of file htmlextension.cpp.


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

KParts

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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