LCOV - code coverage report
Current view: top level - src/tools/qt-gui/src - findvisitor.hpp (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 0 1 0.0 %
Date: 2019-09-12 12:28:41 Functions: 0 0 -

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  */
       8             : 
       9             : #ifndef FINDVISITOR_HPP
      10             : #define FINDVISITOR_HPP
      11             : 
      12             : #include "confignode.hpp"
      13             : #include "visitor.hpp"
      14             : 
      15             : /**
      16             :  * @brief The FindVisitor class. It performs the search for a term and includes all ConfigNodes that contain the search
      17             :  * term in their name, value or metadata.
      18             :  */
      19           0 : class FindVisitor : public Visitor
      20             : {
      21             : public:
      22             :         /**
      23             :          * @brief FindVisitor The constructor.
      24             :          * @param searchResults An empty TreeViewModel that will contain the ConfigNode s that match the searchterm after the search
      25             :          * is completed.
      26             :          * @param term The search term to look for.
      27             :          */
      28             :         explicit FindVisitor (TreeViewModel * searchResults, QString term);
      29             : 
      30             :         void visit (ConfigNode & node) override;
      31             :         void visit (TreeViewModel * model) override;
      32             : 
      33             : private:
      34             :         TreeViewModel * m_searchResults;
      35             :         QString m_term;
      36             : };
      37             : 
      38             : #endif // FINDVISITOR_HPP

Generated by: LCOV version 1.13