mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
docs: add documentation for some new functions
This commit is contained in:
parent
4fdf73f2f0
commit
74468fde32
|
@ -718,11 +718,23 @@ QVariant RawDatabase::extractData(sqlite3_stmt* stmt, int col)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Use for create function in db for search data use regular experessions without case sensitive
|
||||||
|
* @param ctx ctx the context in which an SQL function executes
|
||||||
|
* @param argc number of arguments
|
||||||
|
* @param argv arguments
|
||||||
|
*/
|
||||||
void RawDatabase::regexpInsensitive(sqlite3_context* ctx, int argc, sqlite3_value** argv)
|
void RawDatabase::regexpInsensitive(sqlite3_context* ctx, int argc, sqlite3_value** argv)
|
||||||
{
|
{
|
||||||
regexp(ctx, argc, argv, Qt::CaseInsensitive);
|
regexp(ctx, argc, argv, Qt::CaseInsensitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Use for create function in db for search data use regular experessions without case sensitive
|
||||||
|
* @param ctx the context in which an SQL function executes
|
||||||
|
* @param argc number of arguments
|
||||||
|
* @param argv arguments
|
||||||
|
*/
|
||||||
void RawDatabase::regexpSensitive(sqlite3_context* ctx, int argc, sqlite3_value** argv)
|
void RawDatabase::regexpSensitive(sqlite3_context* ctx, int argc, sqlite3_value** argv)
|
||||||
{
|
{
|
||||||
regexp(ctx, argc, argv, Qt::CaseSensitive);
|
regexp(ctx, argc, argv, Qt::CaseSensitive);
|
||||||
|
|
|
@ -315,6 +315,14 @@ QList<History::DateMessages> History::getChatHistoryCounts(const ToxPk& friendPk
|
||||||
return counts;
|
return counts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Search phrase in chat messages
|
||||||
|
* @param friendPk Friend public key
|
||||||
|
* @param from a date message where need to start a search
|
||||||
|
* @param phrase what need to find
|
||||||
|
* @param parameter for search
|
||||||
|
* @return date of the message where the phrase was found
|
||||||
|
*/
|
||||||
QDateTime History::getDateWhereFindPhrase(const QString& friendPk, const QDateTime& from, QString phrase, const ParameterSearch& parameter)
|
QDateTime History::getDateWhereFindPhrase(const QString& friendPk, const QDateTime& from, QString phrase, const ParameterSearch& parameter)
|
||||||
{
|
{
|
||||||
QList<QDateTime> counts;
|
QList<QDateTime> counts;
|
||||||
|
@ -389,6 +397,11 @@ QDateTime History::getDateWhereFindPhrase(const QString& friendPk, const QDateTi
|
||||||
return QDateTime();
|
return QDateTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief get start date of correspondence
|
||||||
|
* @param friendPk Friend public key
|
||||||
|
* @return start date of correspondence
|
||||||
|
*/
|
||||||
QDateTime History::getStartDateChatHistory(const QString &friendPk)
|
QDateTime History::getStartDateChatHistory(const QString &friendPk)
|
||||||
{
|
{
|
||||||
QList<QDateTime> counts;
|
QList<QDateTime> counts;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user