diff options
author | Vincent Richard <[email protected]> | 2013-07-16 09:07:16 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-07-16 09:07:16 +0000 |
commit | 54084253e62941d641061b9db0af7ea607a910bd (patch) | |
tree | 81ae637583e56e02790e65cd12caf906a0770b04 /src/net/maildir/maildirFolderStatus.cpp | |
parent | Fixed IMAP tag not incrementing. (diff) | |
download | vmime-54084253e62941d641061b9db0af7ea607a910bd.tar.gz vmime-54084253e62941d641061b9db0af7ea607a910bd.zip |
Added basic support for IMAP CONDSTORE extension.
Process CAPABILITY in IMAP greeting response.
Renamed getUniqueId() to getUID() for consistency.
Diffstat (limited to '')
-rw-r--r-- | src/net/maildir/maildirFolderStatus.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/net/maildir/maildirFolderStatus.cpp b/src/net/maildir/maildirFolderStatus.cpp new file mode 100644 index 00000000..49425e59 --- /dev/null +++ b/src/net/maildir/maildirFolderStatus.cpp @@ -0,0 +1,67 @@ +// +// VMime library (http://www.vmime.org) +// Copyright (C) 2002-2013 Vincent Richard <[email protected]> +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 3 of +// the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +// +// Linking this library statically or dynamically with other modules is making +// a combined work based on this library. Thus, the terms and conditions of +// the GNU General Public License cover the whole combination. +// + +#include "vmime/config.hpp" + + +#if VMIME_HAVE_MESSAGING_FEATURES && VMIME_HAVE_MESSAGING_PROTO_MAILDIR + + +#include "vmime/net/maildir/maildirFolderStatus.hpp" + + +namespace vmime { +namespace net { +namespace maildir { + + +unsigned int maildirFolderStatus::getMessageCount() const +{ + return m_count; +} + + +unsigned int maildirFolderStatus::getUnseenCount() const +{ + return m_unseen; +} + + +void maildirFolderStatus::setMessageCount(const unsigned int count) +{ + m_count = count; +} + + +void maildirFolderStatus::setUnseenCount(const unsigned int unseen) +{ + m_unseen = unseen; +} + + +} // maildir +} // net +} // vmime + + +#endif // VMIME_HAVE_MESSAGING_FEATURES && VMIME_HAVE_MESSAGING_PROTO_MAILDIR |