Build with non-standard boost locations.
[kdepim.git] / messagecore / nodehelper.h
blobde02fc5b6243e39b454a4d5b01e78c5925bc8078
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
3 Copyright (c) 2009 Andras Mantia <andras@kdab.net>
4 Copyright (c) 2010 Leo Franchi <lfranchi@kde.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef MESSAGECORE_NODE_HELPER_H
22 #define MESSAGECORE_NODE_HELPER_H
24 #include "messagecore_export.h"
26 namespace KMime {
27 class Content;
30 /**
31 * A few static functions for nagivating in KMime::Node trees
34 namespace MessageCore {
36 namespace NodeHelper {
39 MESSAGECORE_EXPORT KMime::Content *nextSibling( const KMime::Content* node );
40 MESSAGECORE_EXPORT KMime::Content *next( KMime::Content *node, bool allowChildren = true );
42 MESSAGECORE_EXPORT KMime::Content *firstChild( const KMime::Content* node );
44 // The node parameters here should be const, be there is no const version of
45 // functions like contentDisposition() yet
46 MESSAGECORE_EXPORT bool isAttachment( KMime::Content* node );
47 MESSAGECORE_EXPORT bool isHeuristicalAttachment( KMime::Content* node );
54 #endif