FactDev  0.1
Models::Search Class Reference

The Search class. More...

#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...
 

Detailed Description

The Search class.

Author
Antoine de Roquemaurel
Florent Berbie

Member Function Documentation

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

Parameters
filterText inputed in searchbar
listList 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

Parameters
filterText inputed in searchbar
listList of companies
void Models::Search::filterOnContributories ( QString &  filter,
const QStringList  list 
)

Search::filterOnContributories Search all contributories contained in the list of the filter

Parameters
filterText inputed in searchbar
listList 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

Parameters
filterText inputed in searchbar
listList 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.

Parameters
filterText inputed in the searchbar
listList of numbers from the filter
elementAttribute 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

Parameters
filterText inputed in searchbar
listList 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

Parameters
filterText inputed in searchbar
listList 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.

Parameters
filterText inputed in the searchbar
listList of words from the filter
elementAttribute name into the database
QString Models::Search::getFilter ( )

Search::getFilter Return the search filter.

Returns
filter selected (sql portion)
bool Models::Search::getGroupFilter ( ) const

Search::getGroupFilter Return if the filter is actived.

Returns
boolean if search filter is actived
bool Models::Search::getSearchInBillsQuotes ( ) const

Search::searchInBillsQuotes Return TRUE if it exists one or more bills or quotes in database.

Returns
boolean if bills or quotes are existing
bool Models::Search::getSearchInCompanies ( ) const

Search::getSearchInCompanies Return if we search a company.

Returns
boolean if we search a company
bool Models::Search::getSearchInProjects ( ) const

Search::getSearchInProjects Return TRUE if it exists one or more projets in database.

Returns
boolean if project are existing
bool Models::Search::getSearchInReferentLastname ( ) const

Search::getSearchInReferentLastname Return if we search a Last name referent.

Returns
boolean if search concerns the last name of referent
QString Models::Search::getText ( ) const

Search::getText Return sql portion of filter.

Returns
QString the sql portion
bool Models::Search::searchInContributories ( ) const

Search::getSearchInContributories Return TRUE if it exists one or more projets in database.

Returns
boolean if contributories are existing
void Models::Search::setGroupFilter ( bool  getGroupFilter)

Search::setGroupFilter Modify if we active search filter.

Parameters
getGroupFilterGet if filter is actived
void Models::Search::setSearchInBillsQuotes ( bool  searchInBillsQuotes)

Search::setSearchInBillsQuotes Modify the filter of bills and quotes search.

Parameters
searchInBillsQuotesSearch in bills or quotes which are concerned
void Models::Search::setSearchInCompanies ( bool  searchInCompanies)

Search::setSearchInCompanies Modify the filter of companies search.

Parameters
getSearchInCompaniesSearch in companies is concerned
void Models::Search::setSearchInContributories ( bool  searchInContributories)

Search::setSearchInContributories Modify the filter of contributories search.

Parameters
searchInContributoriesSearch in contributories which are concerned
void Models::Search::setSearchInProjects ( bool  searchInProjects)

Search::setSearchInProjects Modify the filter of projects search.

Parameters
searchInProjectsSearch in projects which are concerned
void Models::Search::setSearchInReferentLastname ( bool  searchInReferentLastname)

Search::setSearchInReferentLastname Modify the filter of referents last name search.

Parameters
searchInReferentLastnameSearch in referents last name which are concerned
void Models::Search::setText ( const QString &  getText)

Search::setText Modify sql portion.

Parameters
getTextGet sql portion

The documentation for this class was generated from the following files: