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

KParts

  • KParts
  • SelectorInterface
  • Element
Public Member Functions | List of all members
KParts::SelectorInterface::Element Class Reference

#include <htmlextension.h>

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

◆ Element() [1/2]

SelectorInterface::Element::Element ( )

Constructor.

Definition at line 61 of file htmlextension.cpp.

◆ Element() [2/2]

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

Copy constructor.

Definition at line 66 of file htmlextension.cpp.

◆ ~Element()

SelectorInterface::Element::~Element ( )

Destructor.

Definition at line 71 of file htmlextension.cpp.

Member Function Documentation

◆ attribute()

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 100 of file htmlextension.cpp.

◆ attributeNames()

QStringList SelectorInterface::Element::attributeNames ( ) const

Returns the list of attributes in this element.

Definition at line 95 of file htmlextension.cpp.

◆ hasAttribute()

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

Returns true if the attribute with the given name exists.

Definition at line 105 of file htmlextension.cpp.

◆ isNull()

bool SelectorInterface::Element::isNull ( ) const

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

Definition at line 75 of file htmlextension.cpp.

◆ operator=()

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

Assignment operator.

Definition at line 214 of file htmlextension.h.

◆ setAttribute()

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 90 of file htmlextension.cpp.

◆ setTagName()

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

Sets the tag name of this element.

Definition at line 80 of file htmlextension.cpp.

◆ swap()

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.

◆ tagName()

QString SelectorInterface::Element::tagName ( ) const

Returns the tag name of this element.

Definition at line 85 of file htmlextension.cpp.


The documentation for this class was generated from the following files:
  • htmlextension.h
  • htmlextension.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KParts

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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