Build with non-standard boost locations.
[kdepim.git] / messagecomposer / messageinfo.cpp
blob37a7c3b36daadb590168bb2a4f7c7a66f3cc4364
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 Copyright (C) 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 Copyright (c) 2009 Andras Mantia <andras@kdab.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #include "messageinfo.h"
21 #include <kmime/kmime_content.h>
22 #include <kmime/kmime_message.h>
23 #include <kdebug.h>
25 MessageInfo * MessageInfo::mSelf = 0;
27 MessageInfo * MessageInfo::instance()
29 if ( !mSelf )
30 mSelf = new MessageInfo();
31 return mSelf;
34 MessageInfo::MessageInfo()
36 mSelf = this;
39 MessageInfo::~MessageInfo()
41 mSelf = 0;
45 void MessageInfo::clear()
47 mMDNSentState.clear();
51 void MessageInfo::setMDNSentState( KMime::Content* node, const KMMsgMDNSentState state )
53 mMDNSentState[node] = state;
56 KMMsgMDNSentState MessageInfo::mdnSentState( KMime::Content *node ) const
58 if ( mMDNSentState.contains( node ) )
59 return mMDNSentState[node];
61 return KMMsgMDNStateUnknown;