Attica 5.109.0
folder.h
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2008 Cornelius Schumacher <schumacher@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef ATTICA_FOLDER_H
10#define ATTICA_FOLDER_H
11
12#include "attica_export.h"
13#include <QList>
14#include <QSharedDataPointer>
15#include <QString>
16
17namespace Attica
18{
24class ATTICA_EXPORT Folder
25{
26public:
27 typedef QList<Folder> List;
28 class Parser;
29
34
39 Folder(const Folder &other);
40
46 Folder &operator=(const Folder &other);
47
52
58 void setId(const QString &id);
59
65 QString id() const;
66
71 void setName(const QString &name);
72
77 QString name() const;
78
83 void setMessageCount(int messageCount);
84
89 int messageCount() const;
90
95 void setType(const QString &type);
96
101 QString type() const;
102
107 bool isValid() const;
108
109private:
110 class Private;
111 QSharedDataPointer<Private> d;
112};
113
114}
115
116#endif
Represents a single mail folder.
Definition folder.h:25
Folder & operator=(const Folder &other)
Assignment operator.
QString name() const
Gets the name of the Folder.
~Folder()
Destructor.
void setName(const QString &name)
Sets the name of the Folder.
void setType(const QString &type)
Sets the type of the folder.
QString type() const
Gets the type of the Folder.
bool isValid() const
Checks whether this Folder has an id.
Folder(const Folder &other)
Copy constructor.
Folder()
Creates an empty Folder.
int messageCount() const
Gets the number of messages in the Folder.
QString id() const
Gets the id of the Folder.
void setMessageCount(int messageCount)
Sets the number of messages in the Folder.
void setId(const QString &id)
Sets the id of the Folder.
The Attica namespace,.
Definition activity.h:21