File indexing completed on 2024-05-12 05:11:10

0001 /*
0002  * SPDX-FileCopyrightText: 2010 Klaralvdalens Datakonsult AB a KDAB Group company, <info@kdab.com>
0003  * SPDX-FileCopyrightText: 2010 Leo Franchi <lfranchi@kde.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  */
0007 
0008 #pragma once
0009 
0010 #include "akonadi-mime_export.h"
0011 
0012 namespace KMime
0013 {
0014 class Message;
0015 }
0016 
0017 namespace Akonadi
0018 {
0019 class Item;
0020 
0021 /**
0022  * @short Contains predefined message flag identifiers.
0023  *
0024  * This namespace contains identifiers of message flags that
0025  *  are used internally in the Akonadi server.
0026  */
0027 namespace MessageFlags
0028 {
0029 /**
0030  * The flag for a message being seen (i.e. opened by user).
0031  */
0032 AKONADI_MIME_EXPORT extern const char Seen[];
0033 
0034 /**
0035  * The flag for a message being deleted by the user.
0036  */
0037 AKONADI_MIME_EXPORT extern const char Deleted[];
0038 
0039 /**
0040  * The flag for a message being replied to by the user.
0041  * @deprecated use Replied instead.
0042  */
0043 AKONADI_MIME_EXPORT extern const char Answered[];
0044 
0045 /**
0046  * The flag for a message being marked as flagged.
0047  */
0048 AKONADI_MIME_EXPORT extern const char Flagged[];
0049 
0050 /**
0051  * The flag for a message being marked with an error.
0052  * @since 4.6
0053  */
0054 AKONADI_MIME_EXPORT extern const char HasError[];
0055 
0056 /**
0057  * The flag for a message being marked as having an attachment.
0058  * @since 4.6
0059  */
0060 AKONADI_MIME_EXPORT extern const char HasAttachment[];
0061 
0062 /**
0063  * The flag for a message being marked as having an invitation.
0064  * @since 4.6
0065  */
0066 AKONADI_MIME_EXPORT extern const char HasInvitation[];
0067 
0068 /**
0069  * The flag for a message being marked as sent.
0070  * @since 4.6
0071  */
0072 AKONADI_MIME_EXPORT extern const char Sent[];
0073 
0074 /**
0075  * The flag for a message being marked as queued.
0076  * @since 4.6
0077  */
0078 AKONADI_MIME_EXPORT extern const char Queued[];
0079 
0080 /**
0081  * The flag for a message being marked as replied.
0082  * @since 4.6
0083  */
0084 AKONADI_MIME_EXPORT extern const char Replied[];
0085 
0086 /**
0087  * The flag for a message being marked as forwarded.
0088  * @since 4.6
0089  */
0090 AKONADI_MIME_EXPORT extern const char Forwarded[];
0091 
0092 /**
0093  * The flag for a message being marked as action item to act on.
0094  * @since 4.6
0095  */
0096 AKONADI_MIME_EXPORT extern const char ToAct[];
0097 
0098 /**
0099  * The flag for a message being marked as watched.
0100  * @since 4.6
0101  */
0102 AKONADI_MIME_EXPORT extern const char Watched[];
0103 
0104 /**
0105  * The flag for a message being marked as ignored.
0106  * @since 4.6
0107  */
0108 AKONADI_MIME_EXPORT extern const char Ignored[];
0109 
0110 /**
0111  * The flag for a message being marked as signed.
0112  * @since 4.6
0113  */
0114 AKONADI_MIME_EXPORT extern const char Signed[];
0115 
0116 /**
0117  * The flag for a message being marked as encrypted.
0118  * @since 4.6
0119  */
0120 AKONADI_MIME_EXPORT extern const char Encrypted[];
0121 
0122 /**
0123  * The flag for a message being marked as spam.
0124  * @since 4.6
0125  */
0126 AKONADI_MIME_EXPORT extern const char Spam[];
0127 
0128 /**
0129  * The flag for a message being marked as ham.
0130  * @since 4.6
0131  */
0132 AKONADI_MIME_EXPORT extern const char Ham[];
0133 
0134 /**
0135  * Copies all message flags from a KMime::Message object
0136  * into an Akonadi::Item object
0137  * @since 4.14.6
0138  */
0139 AKONADI_MIME_EXPORT void copyMessageFlags(KMime::Message &from, Akonadi::Item &to);
0140 }
0141 }