FactDev
0.1
|
#include <search.h>
Public Member Functions | |
Search () | |
Search::Search Construct a search. | |
~Search () | |
Search::Search Destruct a search. | |
QString | getFilter () |
Search::getFilter Return the search filter. More... | |
void | filterOnVarcharElements (QString &filter, const QStringList list, QString element) |
Search::filterOnVarcharElements Search, for each word of the list from the filter, if it corresponds to the element in the database. More... | |
void | filterOnNumberElements (QString &filter, const QStringList list, QString element) |
Search::filterOnNumberElements Search, for each number of the list from the filter, if it corresponds to the element in the database. More... | |
void | filterOnCompany (QString &filter, const QStringList list) |
Search::filterOnCompany Search all companies contained in the list of the filter More... | |
void | filterOnReferentLastname (QString &filter, const QStringList list) |
Search::filterOnReferentLastname Search all referents last name contained in the list of the filter More... | |
void | filterOnProjects (QString &filter, const QStringList list) |
Search::filterOnProjects Search all projects contained in the list of the filter More... | |
void | filterOnContributories (QString &filter, const QStringList list) |
Search::filterOnContributories Search all contributories contained in the list of the filter More... | |
void | filterOnBillsOrQuotes (QString &filter, const QStringList list) |
Search::filterOnBillsOrQuotes Search all bills or quotes which are contained in the list of the filter More... | |
void | filterOnCustomersWithoutProject (QString &filter, const QStringList list) |
Search::filterOnCustomersWithoutProject Search all customers which are contained in the list of the filter More... | |
bool | getSearchInCompanies () const |
Search::getSearchInCompanies Return if we search a company. More... | |
void | setSearchInCompanies (bool searchInCompanies) |
Search::setSearchInCompanies Modify the filter of companies search. More... | |
bool | getSearchInReferentLastname () const |
Search::getSearchInReferentLastname Return if we search a Last name referent. More... | |
void | setSearchInReferentLastname (bool searchInReferentLastname) |
Search::setSearchInReferentLastname Modify the filter of referents last name search. More... | |
bool | getSearchInProjects () const |
Search::getSearchInProjects Return TRUE if it exists one or more projets in database. More... | |
void | setSearchInProjects (bool searchInProjects) |
Search::setSearchInProjects Modify the filter of projects search. More... | |
bool | searchInContributories () const |
Search::getSearchInContributories Return TRUE if it exists one or more projets in database. More... | |
void | setSearchInContributories (bool searchInContributories) |
Search::setSearchInContributories Modify the filter of contributories search. More... | |
bool | getSearchInBillsQuotes () const |
Search::searchInBillsQuotes Return TRUE if it exists one or more bills or quotes in database. More... | |
void | setSearchInBillsQuotes (bool searchInBillsQuotes) |
Search::setSearchInBillsQuotes Modify the filter of bills and quotes search. More... | |
bool | getGroupFilter () const |
Search::getGroupFilter Return if the filter is actived. More... | |
void | setGroupFilter (bool getGroupFilter) |
Search::setGroupFilter Modify if we active search filter. More... | |
QString | getText () const |
Search::getText Return sql portion of filter. More... | |
void | setText (const QString &getText) |
Search::setText Modify sql portion. More... | |
The Search class.
void Models::Search::filterOnBillsOrQuotes | ( | QString & | filter, |
const QStringList | list | ||
) |
Search::filterOnBillsOrQuotes Search all bills or quotes which are contained in the list of the filter
filter | Text inputed in searchbar |
list | List of bills or quotes |
void Models::Search::filterOnCompany | ( | QString & | filter, |
const QStringList | list | ||
) |
Search::filterOnCompany Search all companies contained in the list of the filter
filter | Text inputed in searchbar |
list | List of companies |
void Models::Search::filterOnContributories | ( | QString & | filter, |
const QStringList | list | ||
) |
Search::filterOnContributories Search all contributories contained in the list of the filter
filter | Text inputed in searchbar |
list | List of contributories |
void Models::Search::filterOnCustomersWithoutProject | ( | QString & | filter, |
const QStringList | list | ||
) |
Search::filterOnCustomersWithoutProject Search all customers which are contained in the list of the filter
filter | Text inputed in searchbar |
list | List of bills or quotes |
void Models::Search::filterOnNumberElements | ( | QString & | filter, |
const QStringList | list, | ||
QString | element | ||
) |
Search::filterOnNumberElements Search, for each number of the list from the filter, if it corresponds to the element in the database.
filter | Text inputed in the searchbar |
list | List of numbers from the filter |
element | Attribute name into the database |
void Models::Search::filterOnProjects | ( | QString & | filter, |
const QStringList | list | ||
) |
Search::filterOnProjects Search all projects contained in the list of the filter
filter | Text inputed in searchbar |
list | List of projects |
void Models::Search::filterOnReferentLastname | ( | QString & | filter, |
const QStringList | list | ||
) |
Search::filterOnReferentLastname Search all referents last name contained in the list of the filter
filter | Text inputed in searchbar |
list | List of referent last name |
void Models::Search::filterOnVarcharElements | ( | QString & | filter, |
const QStringList | list, | ||
QString | element | ||
) |
Search::filterOnVarcharElements Search, for each word of the list from the filter, if it corresponds to the element in the database.
filter | Text inputed in the searchbar |
list | List of words from the filter |
element | Attribute name into the database |
QString Models::Search::getFilter | ( | ) |
Search::getFilter Return the search filter.
bool Models::Search::getGroupFilter | ( | ) | const |
Search::getGroupFilter Return if the filter is actived.
bool Models::Search::getSearchInBillsQuotes | ( | ) | const |
Search::searchInBillsQuotes Return TRUE if it exists one or more bills or quotes in database.
bool Models::Search::getSearchInCompanies | ( | ) | const |
Search::getSearchInCompanies Return if we search a company.
bool Models::Search::getSearchInProjects | ( | ) | const |
Search::getSearchInProjects Return TRUE if it exists one or more projets in database.
bool Models::Search::getSearchInReferentLastname | ( | ) | const |
Search::getSearchInReferentLastname Return if we search a Last name referent.
QString Models::Search::getText | ( | ) | const |
Search::getText Return sql portion of filter.
bool Models::Search::searchInContributories | ( | ) | const |
Search::getSearchInContributories Return TRUE if it exists one or more projets in database.
void Models::Search::setGroupFilter | ( | bool | getGroupFilter | ) |
Search::setGroupFilter Modify if we active search filter.
getGroupFilter | Get if filter is actived |
void Models::Search::setSearchInBillsQuotes | ( | bool | searchInBillsQuotes | ) |
Search::setSearchInBillsQuotes Modify the filter of bills and quotes search.
searchInBillsQuotes | Search in bills or quotes which are concerned |
void Models::Search::setSearchInCompanies | ( | bool | searchInCompanies | ) |
Search::setSearchInCompanies Modify the filter of companies search.
getSearchInCompanies | Search in companies is concerned |
void Models::Search::setSearchInContributories | ( | bool | searchInContributories | ) |
Search::setSearchInContributories Modify the filter of contributories search.
searchInContributories | Search in contributories which are concerned |
void Models::Search::setSearchInProjects | ( | bool | searchInProjects | ) |
Search::setSearchInProjects Modify the filter of projects search.
searchInProjects | Search in projects which are concerned |
void Models::Search::setSearchInReferentLastname | ( | bool | searchInReferentLastname | ) |
Search::setSearchInReferentLastname Modify the filter of referents last name search.
searchInReferentLastname | Search in referents last name which are concerned |
void Models::Search::setText | ( | const QString & | getText | ) |
Search::setText Modify sql portion.
getText | Get sql portion |