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 32 33 34 35 36 37 38 39 40 41 42 43
|
//
// C++ Interface: aptsearchscorecalculationstrategy
//
// Description:
//
//
// Author: Benjamin Mesing <bensmail@gmx.net>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef __NAPT_APTSEARCHSCORECALCULATIONSTRATEGY_H_2005_07_31
#define __NAPT_APTSEARCHSCORECALCULATIONSTRATEGY_H_2005_07_31
#include <scorecalculationstrategybase.h>
#include <qstringlist.h>
namespace NApt {
/**
@author Benjamin Mesing
*/
class AptSearchScoreCalculationStrategy : public NPlugin::ScoreCalculationStrategyBase
{
protected:
/** @brief Holds of the search was performed case sensitve.
*
* Default is false.
*/
bool _cs;
QStringList _includePatterns;
public:
AptSearchScoreCalculationStrategy();
virtual ~AptSearchScoreCalculationStrategy();
void setCaseSensitive(bool cs) { _cs = cs; }
bool isCaseSensitive() { return _cs; }
void setIncludePatterns(const QStringList& includePatterns) { _includePatterns = includePatterns; }
};
}
#endif // __NAPT_APTSEARCHSCORECALCULATIONSTRATEGY_H_2005_07_31
|