LCOV - code coverage report
Current view: top level - interfaceframework - qiffilterandbrowsemodel_p.h (source / functions) Coverage Total Hit
Test: QtInterfaceFramework Lines: 100.0 % 1 1
Test Date: 2024-05-18 10:00:28 Functions: - 0 0
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 75.0 % 8 6

             Branch data     Line data    Source code
       1                 :             : // Copyright (C) 2021 The Qt Company Ltd.
       2                 :             : // Copyright (C) 2019 Luxoft Sweden AB
       3                 :             : // Copyright (C) 2018 Pelagicore AG
       4                 :             : // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
       5                 :             : 
       6                 :             : #ifndef QIFSEARCHMODEL_P_H
       7                 :             : #define QIFSEARCHMODEL_P_H
       8                 :             : 
       9                 :             : //
      10                 :             : //  W A R N I N G
      11                 :             : //  -------------
      12                 :             : //
      13                 :             : // This file is not part of the Qt API.  It exists purely as an
      14                 :             : // implementation detail. This header file may change from version to
      15                 :             : // version without notice, or even be removed.
      16                 :             : //
      17                 :             : // We mean it.
      18                 :             : //
      19                 :             : 
      20                 :             : #include <QtInterfaceFramework/private/qifpagingmodel_p.h>
      21                 :             : #include <private/qtifglobal_p.h>
      22                 :             : 
      23                 :             : #include "qifqueryterm.h"
      24                 :             : #include "qiffilterandbrowsemodel.h"
      25                 :             : #include "qiffilterandbrowsemodelinterface.h"
      26                 :             : #include "qifstandarditem.h"
      27                 :             : 
      28                 :             : #include <QBitArray>
      29                 :             : #include <QUuid>
      30                 :             : 
      31                 :             : QT_BEGIN_NAMESPACE
      32                 :             : 
      33                 :             : class Q_QTINTERFACEFRAMEWORK_EXPORT QIfFilterAndBrowseModelPrivate : public QIfPagingModelPrivate
      34                 :             : {
      35                 :             : public:
      36                 :             :     QIfFilterAndBrowseModelPrivate(const QString &interface, QIfFilterAndBrowseModel *model);
      37                 :             :     ~QIfFilterAndBrowseModelPrivate() override;
      38                 :             : 
      39                 :             :     void resetModel() override;
      40                 :             :     void parseQuery();
      41                 :             :     void setupFilter(QIfAbstractQueryTerm* queryTerm, const QList<QIfOrderTerm> &orderTerms);
      42                 :             :     void clearToDefaults() override;
      43                 :             :     void onCanGoForwardChanged(QUuid identifier, const QVector<bool> &indexes, int start);
      44                 :             :     void onCanGoBackChanged(QUuid identifier, bool canGoBack);
      45                 :             :     void onContentTypeChanged(QUuid identifier, const QString &contentType);
      46                 :             :     void onAvailableContentTypesChanged(const QStringList &contentTypes);
      47                 :             :     void onQueryIdentifiersChanged(QUuid identifier, const QSet<QString> &queryIdentifiers);
      48                 :             : 
      49                 :             :     QIfFilterAndBrowseModelInterface *searchBackend() const;
      50                 :             :     void updateContentType(const QString &contentType);
      51                 :             : 
      52                 :             :     QIfFilterAndBrowseModel * const q_ptr;
      53   [ +  +  +  +  :         110 :     Q_DECLARE_PUBLIC(QIfFilterAndBrowseModel)
             +  -  -  + ]
      54                 :             : 
      55                 :             :     QString m_query;
      56                 :             : 
      57                 :             :     QIfAbstractQueryTerm *m_queryTerm;
      58                 :             :     QList<QIfOrderTerm> m_orderTerms;
      59                 :             : 
      60                 :             :     QString m_contentTypeRequested;
      61                 :             :     QString m_contentType;
      62                 :             :     QStringList m_availableContentTypes;
      63                 :             :     QSet<QString> m_queryIdentifiers;
      64                 :             :     QVector<bool> m_canGoForward;
      65                 :             :     bool m_canGoBack;
      66                 :             : };
      67                 :             : 
      68                 :             : QT_END_NAMESPACE
      69                 :             : 
      70                 :             : #endif // QIFSEARCHMODEL_P_H
        

Generated by: LCOV version 2.0-1