|
Classified ads
|
#include <cadbrecord.h>

Public Member Functions | |
| bool | operator== (const struct SearchStructure &aItemToCompare) const |
| bool | operator< (const struct SearchStructure &aItemToCompare) const |
| QByteArray | asJSon () const |
| bool | fromJSon (const QByteArray &aJSon) |
Public Attributes | |
| Hash | iFromCollection |
| Hash | iById |
| quint32 | iModifiedAfter |
| quint32 | iModifiedBefore |
| qint64 | iByHavingNumberMoreThan |
| qint64 | iByHavingNumberLessThan |
| QString | iBySearchPhrase |
| Hash | iBySender |
Data structure for expressing db record search conditions
| QByteArray CaDbRecord::SearchStructure::asJSon | ( | ) | const |
returns db record search as JSon stream
| bool CaDbRecord::SearchStructure::fromJSon | ( | const QByteArray & | aJSon | ) |
initializes values from JSon
| bool CaDbRecord::SearchStructure::operator< | ( | const struct SearchStructure & | aItemToCompare | ) | const |
Less-than-operator. If from 2 queries A and B the result-set if A is subset of resultset of B, then A<B. Practical example is search by phrase "the king has left the building" compared to search by phrase "king" where resultset of first phrase includes all records with words "the", "king", "has" etc. while search by phrase "king" only includes all records with words "king". Because resultset from first searh includes all records with only word "king", thus "king"<"the king has left the building".
| bool CaDbRecord::SearchStructure::operator== | ( | const struct SearchStructure & | aItemToCompare | ) | const |
Equivalence-operator
| qint64 CaDbRecord::SearchStructure::iByHavingNumberLessThan |
Biggest permissible special search number
| qint64 CaDbRecord::SearchStructure::iByHavingNumberMoreThan |
Smallest permissible special search number
| Hash CaDbRecord::SearchStructure::iById |
Exact db record identifier
| QString CaDbRecord::SearchStructure::iBySearchPhrase |
Search phrase
| Hash CaDbRecord::SearchStructure::iBySender |
Limits results by publishing profile
| Hash CaDbRecord::SearchStructure::iFromCollection |
Search from which collection
| quint32 CaDbRecord::SearchStructure::iModifiedAfter |
Earliest permissible modification time
| quint32 CaDbRecord::SearchStructure::iModifiedBefore |
Latest permissible modification time
1.8.13