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

◆ firstChild()

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 54 of file messagecore/src/helpers/nodehelper.cpp.

◆ next()

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 33 of file messagecore/src/helpers/nodehelper.cpp.

◆ nextSibling()

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 14 of file messagecore/src/helpers/nodehelper.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.