KMbox

mboxentry.h
1 /*
2  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KMBOX_MBOXENTRY_H
8 #define KMBOX_MBOXENTRY_H
9 
10 #include "kmbox_export.h"
11 
12 #include <QVector>
13 #include <QPair>
14 #include <QSharedDataPointer>
15 
16 namespace KMBox {
17 class MBoxEntryPrivate;
24 class KMBOX_EXPORT MBoxEntry
25 {
26 public:
31 
36 
40  MBoxEntry();
41 
47  explicit MBoxEntry(quint64 offset);
48 
52  MBoxEntry(const MBoxEntry &other);
53 
57  ~MBoxEntry();
58 
62  MBoxEntry &operator=(const MBoxEntry &other);
63 
67  bool operator==(const MBoxEntry &other) const;
68 
72  bool operator!=(const MBoxEntry &other) const;
73 
77  Q_REQUIRED_RESULT bool isValid() const;
78 
83  Q_REQUIRED_RESULT quint64 messageOffset() const;
84 
89  Q_REQUIRED_RESULT quint64 messageSize() const;
90 
95  Q_REQUIRED_RESULT quint64 separatorSize() const;
96 
97 private:
98  //@cond PRIVATE
99  friend class MBox;
100 
102  //@endcond
103 };
104 }
105 
106 Q_DECLARE_TYPEINFO(KMBox::MBoxEntry, Q_MOVABLE_TYPE);
107 
108 #endif // KMBOX_MBOXENTRY_H
A class to access mail storages in MBox format.
Definition: mbox.h:24
QVector< MBoxEntry > List
Describes a list of mbox entry objects.
Definition: mboxentry.h:30
A class that encapsulates an entry of a MBox.
Definition: mboxentry.h:24
QPair< MBoxEntry, MBoxEntry > Pair
Describes a pair of mbox entry objects.
Definition: mboxentry.h:35
Definition: mbox.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 2 2020 23:08:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.