Debian Codegraph @

src/librssguard/definitions/typedefs.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #ifndef TYPEDEFS_H
4 #define TYPEDEFS_H
5
6 #include "core/message.h"
7 #include "services/abstract/rootitem.h"
8
9 #include <QList>
10 #include <QPair>
11
12 // First item here represents ID (int, primary key) of the item.
13 typedef QList<QPair<int, RootItem*>> Assignment;
14 typedef QPair<int, RootItem*> AssignmentItem;
15 typedef QPair<Message, RootItem::Importance> ImportanceChange;
16
17 struct ArticleCounts {
18 int m_total = -1;
19 int m_unread = -1;
20 };
21
22 struct UpdatedArticles {
23 QList<Message> m_unread;
24 QList<Message> m_all;
25 };
26
27 struct IconLocation {
28 QString m_url;
29
30 // The "bool" if true means that the URL is direct and download directly, if false then
31 // only use its domain and download via 3rd-party service.
32 bool m_isDirect;
33
34 IconLocation(const QString& url, bool is_direct) : m_url(url), m_isDirect(is_direct) {}
35 };
36
37 #endif // TYPEDEFS_H