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

jovie

Public Member Functions | Static Public Member Functions | List of all members
KttsUtils Class Reference

#include <utils.h>

Public Member Functions

 KttsUtils ()
 
 ~KttsUtils ()
 

Static Public Member Functions

static bool hasDoctype (const QString &xmldoc, const QString &name)
 
static bool hasRootElement (const QString &xmldoc, const QString &elementName)
 
static void setCbItemFromText (KComboBox *cb, const QString &text)
 

Detailed Description

Definition at line 27 of file utils.h.

Constructor & Destructor Documentation

KttsUtils::KttsUtils ( )

Constructor.

Definition at line 24 of file utils.cpp.

KttsUtils::~KttsUtils ( )

Destructor.

Definition at line 28 of file utils.cpp.

Member Function Documentation

bool KttsUtils::hasDoctype ( const QString &  xmldoc,
const QString &  name 
)
static

Check if an XML document has a certain DOCTYPE.

Parameters
xmldocThe document to check for the doctype.
nameThe doctype name to check for. Pass QString() to not check the name.
Returns
true if the parameters match the doctype, false otherwise.

Definition at line 76 of file utils.cpp.

bool KttsUtils::hasRootElement ( const QString &  xmldoc,
const QString &  elementName 
)
static

Check if an XML document has a certain root element.

Parameters
xmldocThe document to check for the element.
elementNameThe element to check for in the document.
Returns
true if the root element exists in the document, false otherwise.
Parameters
xmldocThe document to check for the element.
elementNameThe element to check for in the document.
Returns
True if the root element exists in the document, false otherwise.

Definition at line 37 of file utils.cpp.

void KttsUtils::setCbItemFromText ( KComboBox *  cb,
const QString &  text 
)
static

Sets the current item in the given combobox to the item with the given text.

If item with the text not found, does nothing.

Definition at line 112 of file utils.cpp.


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

KDE's Doxygen guidelines are available online.

jovie

Skip menu "jovie"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeaccessibility API Reference

Skip menu "kdeaccessibility API Reference"
  • jovie

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