rssguard/src/librssguard/definitions/typedefs.h

36 lines
867 B
C

// For license of this file, see <project-root-folder>/LICENSE.md.
#ifndef TYPEDEFS_H
#define TYPEDEFS_H
#include "core/message.h"
#include "services/abstract/rootitem.h"
#include <QList>
#include <QPair>
// First item here represents ID (int, primary key) of the item.
typedef QList<QPair<int, RootItem*>> Assignment;
typedef QPair<int, RootItem*> AssignmentItem;
typedef QPair<Message, RootItem::Importance> ImportanceChange;
struct ArticleCounts {
int m_total = -1;
int m_unread = -1;
};
struct UpdatedArticles {
QList<Message> m_unread;
QList<Message> m_all;
};
struct IconLocation {
QString m_url;
// The "bool" if true means that the URL is direct and download directly, if false then
// only use its domain and download via 3rd-party service.
bool m_isDirect;
};
#endif // TYPEDEFS_H