MessageCore::NodeHelper

MessageCore::NodeHelper Namespace Reference

Functions

MESSAGECORE_EXPORT KMime::ContentfirstChild (const KMime::Content *node)
 
MESSAGECORE_EXPORT KMime::Contentnext (KMime::Content *node, bool allowChildren=true)
 
MESSAGECORE_EXPORT KMime::ContentnextSibling (const KMime::Content *node)
 

Detailed Description

Contains some static functions for navigating in KMime::Node trees.

Function Documentation

KMime::Content * MessageCore::NodeHelper::firstChild ( const KMime::Content node)

Returns the first child node of the given node.

If there is no child node 0 is returned.

Definition at line 67 of file messagecore/src/helpers/nodehelper.cpp.

KMime::Content * MessageCore::NodeHelper::next ( KMime::Content node,
bool  allowChildren = true 
)

Returns the next node (child, sibling or parent) of the given node.

Parameters
nodeThe start node for iteration.
allowChildrenIf true child nodes will be returned, otherwise only sibling or parent nodes.

Definition at line 45 of file messagecore/src/helpers/nodehelper.cpp.

KMime::Content * MessageCore::NodeHelper::nextSibling ( const KMime::Content node)

Returns the next sibling node of the given node.

If there is no sibling node 0 is returned.

Definition at line 26 of file messagecore/src/helpers/nodehelper.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jun 6 2020 23:07:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.