// qsortfilterproxymodel.sip generated by MetaSIP on Thu Sep 11 18:50:33 2014
//
// This file is part of the QtGui Python extension module.
//
// Copyright (c) 2014 Riverbank Computing Limited <info@riverbankcomputing.com>
// 
// This file is part of PyQt.
// 
// This file may be used under the terms of the GNU General Public
// License versions 2.0 or 3.0 as published by the Free Software
// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
// included in the packaging of this file.  Alternatively you may (at
// your option) use any later version of the GNU General Public
// License if such license has been publicly approved by Riverbank
// Computing Limited (or its successors, if any) and the KDE Free Qt
// Foundation. In addition, as a special exception, Riverbank gives you
// certain additional rights. These rights are described in the Riverbank
// GPL Exception version 1.1, which can be found in the file
// GPL_EXCEPTION.txt in this package.
// 
// If you are unsure which license is appropriate for your use, please
// contact the sales department at sales@riverbankcomputing.com.
// 
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


class QSortFilterProxyModel : QAbstractProxyModel
{
%TypeHeaderCode
#include <qsortfilterproxymodel.h>
%End

public:
%If (Qt_5_0_0 -)
    explicit QSortFilterProxyModel(QObject *parent /TransferThis/ = 0);
%End
%If (- Qt_5_0_0)
    QSortFilterProxyModel(QObject *parent /TransferThis/ = 0);
%End
    virtual ~QSortFilterProxyModel();
    virtual void setSourceModel(QAbstractItemModel *sourceModel /KeepReference/);
    virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
    virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const;
    virtual QItemSelection mapSelectionToSource(const QItemSelection &proxySelection) const;
    virtual QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection) const;
    QRegExp filterRegExp() const;
    void setFilterRegExp(const QRegExp &regExp);
    int filterKeyColumn() const;
    void setFilterKeyColumn(int column);
    Qt::CaseSensitivity filterCaseSensitivity() const;
    void setFilterCaseSensitivity(Qt::CaseSensitivity cs);

public slots:
    void setFilterRegExp(const QString &pattern);
    void setFilterWildcard(const QString &pattern);
    void setFilterFixedString(const QString &pattern);
    void clear();

protected:
    virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
    virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const;
%If (Qt_4_2_0 -)
    void filterChanged();
%End
    virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const;

public:
    virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
    virtual QModelIndex parent(const QModelIndex &child) const;
    QObject *parent() const;
    virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
    virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
    virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
%If (Qt_4_3_0 -)
    virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
%End
%If (- Qt_4_3_0)
    virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
%End
%If (Qt_4_3_0 -)
    virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
%End
%If (- Qt_4_3_0)
    virtual bool setData(const QModelIndex &index, const QVariant &value, int role);
%End
%If (Qt_4_3_0 -)
    virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::EditRole) const;
%End
%If (- Qt_4_3_0)
    virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
%End
%If (Qt_4_3_0 -)
    virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole);
%End
%If (- Qt_4_3_0)
    virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role);
%End
    virtual QMimeData *mimeData(const QModelIndexList &indexes) const /TransferBack/;
    virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
    virtual bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex());
    virtual bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex());
    virtual bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
    virtual bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex());
    virtual void fetchMore(const QModelIndex &parent);
    virtual bool canFetchMore(const QModelIndex &parent) const;
    virtual Qt::ItemFlags flags(const QModelIndex &index) const;
    virtual QModelIndex buddy(const QModelIndex &index) const;
    virtual QSize span(const QModelIndex &index) const;
%If (Qt_4_3_0 -)
    virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits = 1, Qt::MatchFlags flags = Qt::MatchStartsWith|Qt::MatchWrap) const;
%End
%If (- Qt_4_3_0)
    virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const;
%End
    virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
%If (Qt_4_2_0 -)
    Qt::CaseSensitivity sortCaseSensitivity() const;
%End
%If (Qt_4_2_0 -)
    void setSortCaseSensitivity(Qt::CaseSensitivity cs);
%End
%If (Qt_4_2_0 -)
    bool dynamicSortFilter() const;
%End
%If (Qt_4_2_0 -)
    void setDynamicSortFilter(bool enable);
%End
%If (Qt_4_2_0 -)
    int sortRole() const;
%End
%If (Qt_4_2_0 -)
    void setSortRole(int role);
%End
%If (Qt_4_5_0 -)
    int sortColumn() const;
%End
%If (Qt_4_5_0 -)
    Qt::SortOrder sortOrder() const;
%End
%If (Qt_4_2_0 -)
    int filterRole() const;
%End
%If (Qt_4_2_0 -)
    void setFilterRole(int role);
%End
%If (Qt_4_2_0 -)
    virtual QStringList mimeTypes() const;
%End
%If (Qt_4_2_0 -)
    virtual Qt::DropActions supportedDropActions() const;
%End
%If (Qt_4_3_0 -)
    bool isSortLocaleAware() const;
%End
%If (Qt_4_3_0 -)
    void setSortLocaleAware(bool on);
%End
%If (Qt_5_0_0 -)
    virtual QModelIndex sibling(int row, int column, const QModelIndex &idx) const;
%End

public slots:
%If (Qt_4_3_0 -)
    void invalidate();
%End

protected:
%If (Qt_4_3_0 -)
    void invalidateFilter();
%End

private:
    QSortFilterProxyModel(const QSortFilterProxyModel &);
};
