/usr/include/mailtransport/sentactionattribute.h is in kdepimlibs5-dev 4:4.14.10-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | /*
Copyright (C) 2010 Klarälvdalens Datakonsult AB,
a KDAB Group company, info@kdab.net,
author Tobias Koenig <tokoe@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef MAILTRANSPORT_SENTACTIONATTRIBUTE_H
#define MAILTRANSPORT_SENTACTIONATTRIBUTE_H
#include <mailtransport/mailtransport_export.h>
#include <QtCore/QSharedDataPointer>
#include <QtCore/QVariant>
#include <akonadi/attribute.h>
namespace MailTransport {
/**
* @short An Attribute that stores the action to execute after sending.
*
* This attribute stores the action that will be executed by the mail dispatcher
* after a mail has successfully be sent.
*
* @author Tobias Koenig <tokoe@kdab.com>
* @since 4.6
*/
class MAILTRANSPORT_EXPORT SentActionAttribute : public Akonadi::Attribute
{
public:
/**
* @short A sent action.
*/
class MAILTRANSPORT_EXPORT Action
{
public:
/**
* Describes the action type.
*/
enum Type {
Invalid, ///< An invalid action.
MarkAsReplied, ///< The message will be marked as replied.
MarkAsForwarded ///< The message will be marked as forwarded.
};
/**
* Describes a list of sent actions.
*/
typedef QList<Action> List;
/**
* Creates a new invalid action.
*/
Action();
/**
* Creates a new action.
*
* @param action The action that shall be executed.
* @param value The action specific argument.
*/
Action( Type type, const QVariant &value );
/**
* Creates an action from an @p other action.
*/
Action( const Action &other );
/**
* Destroys the action.
*/
~Action();
/**
* Returns the type of the action.
*/
Type type() const;
/**
* Returns the argument value of the action.
*/
QVariant value() const;
/**
* @internal
*/
Action &operator=( const Action &other );
/**
* @internal
*/
bool operator==( const Action &other ) const;
private:
//@cond PRIVATE
class Private;
QSharedDataPointer<Private> d;
//@endcond
};
/**
* Creates a new sent action attribute.
*/
explicit SentActionAttribute();
/**
* Destroys the sent action attribute.
*/
virtual ~SentActionAttribute();
/**
* Adds a new action to the attribute.
*
* @param type The type of the action that shall be executed.
* @param value The action specific argument.
*/
void addAction( Action::Type type, const QVariant &value );
/**
* Returns the list of actions.
*/
Action::List actions() const;
/* reimpl */
virtual SentActionAttribute *clone() const;
virtual QByteArray type() const;
virtual QByteArray serialized() const;
virtual void deserialize( const QByteArray &data );
private:
//@cond PRIVATE
class Private;
Private *const d;
//@endcond
};
}
#endif
|