/****************************************************************************
**
** Copyright (C) 2012 Róbert Márki
**
** This file is part of Web Feeds.
**
** Web Feeds is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** Web Feeds 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Web Feeds.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

#ifndef GOOGLEREADERENUM_H
#define GOOGLEREADERENUM_H
#include <QObject>
#include <QMetaType>

namespace GoogleReader
{
class GoogleReaderEnum : public QObject
{
    Q_OBJECT
public:
    enum ErrorType
    {
        ErrNoError = 0,
        ErrUndefinedError,
        ErrAborted,
        ErrNetworkError,
        ErrInvalidReplyContents,
        ErrResponseResultFalse,
        ErrInvalidAccount
    };
    Q_ENUMS(ErrorType)
    enum ItemFilterType
    {
        IftAllItems,
        IftNewItems
    };
    Q_ENUMS(ItemFilterType)
    enum ItemSortType
    {
        IstSortByNewest,
        IstSortByOldest,
        IstSortByMagic
    };
    Q_ENUMS(ItemSortType)
private:
    explicit GoogleReaderEnum()
        : QObject(0)
    {
    }
};
} // namespace GoogleReader
Q_DECLARE_METATYPE(GoogleReader::GoogleReaderEnum::ErrorType)
Q_DECLARE_METATYPE(GoogleReader::GoogleReaderEnum::ItemFilterType)
Q_DECLARE_METATYPE(GoogleReader::GoogleReaderEnum::ItemSortType)
#endif // GOOGLEREADERENUM_H
