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

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • khtml
  • dom
QualifiedName.h
Go to the documentation of this file.
1 /*
2  * This file is part of the DOM implementation for KDE.
3  *
4  * Copyright (C) 2005 Apple Computer, Inc.
5  * Copyright (C) 2008 Vyacheslav Tokarev (tsjoker@gmail.com)
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public License
18  * along with this library; see the file COPYING.LIB. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  */
23 #ifndef _DOM_QUALIFIEDNAME_h_
24 #define _DOM_QUALIFIEDNAME_h_
25 
26 #include "misc/idstring.h"
27 #include "misc/htmlnames.h"
28 
29 namespace DOM {
30 
31 /*class DOMString;
32 class PrefixName;
33 class LocalName;
34 class NamespaceName;*/
35 
36 class QualifiedName {
37 public:
38  QualifiedName() {}
39  QualifiedName(PrefixName prefix, LocalName localName, NamespaceName namespaceURI) : m_namespace(namespaceURI), m_prefix(prefix), m_localName(localName) {}
40  QualifiedName(const DOMString& prefix, const DOMString& localName, const DOMString& namespaceURI);
41  QualifiedName(int prefix, int localName, int namespaceName);
42  //QualifiedName(DOMString namespaceURI, DOMString prefix, DOMString localName);
43  QualifiedName(quint32 id, PrefixName prefix);
44  ~QualifiedName() {}
45 
46  QualifiedName(const QualifiedName& name);
47  const QualifiedName& operator=(const QualifiedName& name);
48 
49  bool operator==(const QualifiedName& other) const;
50  //inline bool operator!=(const QualifiedName& other) const { return (m_prefix != other.prefixId() || m_localName != other.localNameId() || m_namespace != other.namespaceNameId()); }
51 
52  bool matches(const QualifiedName& other) const;
53 
54  inline bool hasPrefix() const;
55  void setPrefix(const PrefixName& prefix);
56  void setPrefix(const DOMString& prefix);
57 
58  inline PrefixName prefixId() const { return m_prefix; }
59  inline LocalName localNameId() const { return m_localName; }
60  inline NamespaceName namespaceNameId() const { return m_namespace; }
61  unsigned id() const;
62 
63  DOMString tagName() const;
64 
65  DOMString prefix() const;
66  DOMString localName() const;
67  DOMString namespaceURI() const;
68 
69  DOMString toString() const;
70 
71 private:
72  NamespaceName m_namespace;
73  PrefixName m_prefix;
74  LocalName m_localName;
75 };
76 
77 }
78 
79 #endif
80 // kate: indent-width 4; replace-tabs on; tab-width 4; space-indent on;
DOM::QualifiedName::localNameId
LocalName localNameId() const
Definition: QualifiedName.h:59
DOM::QualifiedName::hasPrefix
bool hasPrefix() const
Definition: QualifiedName.cpp:71
DOM::QualifiedName::operator==
bool operator==(const QualifiedName &other) const
Definition: QualifiedName.cpp:64
DOM::QualifiedName
Definition: QualifiedName.h:36
DOM::QualifiedName::id
unsigned id() const
Definition: QualifiedName.cpp:90
DOM::QualifiedName::QualifiedName
QualifiedName()
Definition: QualifiedName.h:38
quint32
DOM::QualifiedName::tagName
DOMString tagName() const
Definition: QualifiedName.cpp:95
DOM::QualifiedName::localName
DOMString localName() const
Definition: QualifiedName.cpp:109
DOM::QualifiedName::~QualifiedName
~QualifiedName()
Definition: QualifiedName.h:44
DOM::QualifiedName::operator=
const QualifiedName & operator=(const QualifiedName &name)
Definition: QualifiedName.cpp:56
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::QualifiedName::namespaceNameId
NamespaceName namespaceNameId() const
Definition: QualifiedName.h:60
DOM::QualifiedName::prefixId
PrefixName prefixId() const
Definition: QualifiedName.h:58
DOM::QualifiedName::prefix
DOMString prefix() const
Definition: QualifiedName.cpp:104
DOM::QualifiedName::namespaceURI
DOMString namespaceURI() const
Definition: QualifiedName.cpp:114
DOM::QualifiedName::setPrefix
void setPrefix(const PrefixName &prefix)
Definition: QualifiedName.cpp:82
DOM::QualifiedName::QualifiedName
QualifiedName(PrefixName prefix, LocalName localName, NamespaceName namespaceURI)
Definition: QualifiedName.h:39
DOM::QualifiedName::toString
DOMString toString() const
Definition: QualifiedName.cpp:119
DOM::QualifiedName::matches
bool matches(const QualifiedName &other) const
Definition: QualifiedName.cpp:76
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • 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