File: aptpackagesearch.h

package info (click to toggle)
packagesearch 2.10.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,704 kB
  • sloc: cpp: 9,176; perl: 248; makefile: 15; sh: 11
file content (31 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __NAPT_APTPACKAGESEARCH_H_2024_04_14
#define __NAPT_APTPACKAGESEARCH_H_2024_04_14

#include "iaptsearch.h"

namespace NApt {

class IPackageDB;

class AptPackageSearch : public IAptSearch
{
    IPackageDB* _pPackageDB;
public:
    AptPackageSearch(IPackageDB* _pPackageDB);
    virtual ~AptPackageSearch() {};

    bool search(std::set<string>& result,
                const QStringList& includePatterns,
                bool searchDescr,
                bool wholeWords
    ) const;

    /** @brief This reloads the package information search upon.
      * @param pLoader the observer where to report the reload progress, 0 if no progress should be reported
      */
    void reloadPackageInformation(NUtil::IProgressObserver* pObserver);
};

} // namespace NApt

#endif // __NAPT_APTPACKAGESEARCH_H_2024_04_14