#ifndef FEEDSVIEW_H
#define FEEDSVIEW_H

#include <QTreeView>


class FeedsModel;
class FeedsProxyModel;

class FeedsView : public QTreeView {
    Q_OBJECT

  public:
    // Constructors and destructors.
    explicit FeedsView(QWidget *parent = 0);
    virtual ~FeedsView();

    void setSortingEnabled(bool enable);
    
  protected:
    void setupAppearance();
    void selectionChanged(const QItemSelection &selected,
                          const QItemSelection &deselected);

  signals:
    void feedsSelected(const QList<int> feed_ids);

  private:
    FeedsModel *m_sourceModel;
    FeedsProxyModel *m_proxyModel;
    
};

#endif // FEEDSVIEW_H
