_pimpl->_flags |= SEARCH_NOCASE;
}
+ void PoolQuery::setMatchFiles()
+ {
+ _pimpl->_flags = (_pimpl->_flags & ~SEARCH_STRINGMASK) | SEARCH_FILES;
+ }
void PoolQuery::setMatchSubstring()
{ _pimpl->_flags = (_pimpl->_flags & ~SEARCH_STRINGMASK) | SEARCH_SUBSTRING; }
void PoolQuery::setFlags(int flags)
{ _pimpl->_flags = flags; }
+ int PoolQuery::flags() const
+ { return _pimpl->_flags; }
void PoolQuery::setInstalledOnly()
{ _pimpl->_status_flags = INSTALLED_ONLY; }
{ return (_pimpl->_flags & SEARCH_STRINGMASK) == SEARCH_REGEX; }
int PoolQuery::matchType() const
{ return _pimpl->_flags & SEARCH_STRINGMASK; }
-
+ bool PoolQuery::matchFiles() const
+ { return (_pimpl->_flags & SEARCH_STRINGMASK) == SEARCH_FILES; }
+
bool PoolQuery::matchWord() const
{ return _pimpl->_match_word; }
void setMatchWord();
//void setLocale(const Locale & locale);
//@}
-
+ /* set to match file type attributes (like file lists ) */
+ void setMatchFiles();
/**
* Require that all of the values set by addString or addAttribute
bool matchWord() const;
/**
+ * match file list types
+ *
+ * For attributes like \ref sat::SolvAttr::filelist
+ * you need to activate this one if you want to
+ * match them.
+ *
+ */
+ bool matchFiles() const;
+
+ /**
* Returns currently used string matching type.
* \see satsolver/repo.h
*/
* \see SEARCH_REGEX
* \see SEARCH_NOCASE
* \see SEARCH_NO_STORAGE_SOLVABLE
+ * \see SEARCH_FILES
*/
void setFlags(int flags);
+ /**
+ * Free function to get the satsolver repo search
+ * flags.
+ *
+ * \see setFlags
+ */
+ int flags() const;
+
class Impl;
private:
/** Pointer to implementation */