mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-28 10:17:24 -04:00
* [EGD-2513] new API to create temparary contact entry if cannot be found Calllog should search for contact. * [EGD-2513] #pragma once in all headers file in module-db * [EGD-2513] new constructor for CalllogRecord * [EGD-2513] contact recognition for calllog DB API * [EGD-2513] clean up * [EGD-2513] displaying name and surname call and calllog * [EGD-2513] enum instead bool * [EGD-2513] fix in remporary contact creation * [fix][EGD-2513] missing c_str * [fix][EGD-2513] minor fixes in documentation * [EGD-2513] unified entry read state for both sms and calllog dbs * [EGD-2513] calllog db documentation * [EGD-2513] code reviex fixed in ContactRecord
45 lines
742 B
C++
45 lines
742 B
C++
|
|
/*
|
|
* @file QueryResult.hpp
|
|
* @author Mateusz Piesta (mateusz.piesta@mudita.com)
|
|
* @date 24.05.19
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
#include <memory>
|
|
#include "Field.hpp"
|
|
|
|
class QueryResult {
|
|
|
|
public:
|
|
QueryResult();
|
|
|
|
virtual ~QueryResult() {};
|
|
|
|
|
|
const Field &operator[](int index) const { return rows[currentRow][index]; }
|
|
|
|
bool NextRow();
|
|
|
|
void AddRow(const std::vector<Field> &row);
|
|
|
|
uint32_t GetFieldCount() const { return fieldCount; }
|
|
|
|
uint32_t GetRowCount() const { return rowCount; }
|
|
|
|
|
|
private:
|
|
uint32_t currentRow;
|
|
std::vector<std::vector<Field>> rows;
|
|
uint32_t fieldCount;
|
|
uint32_t rowCount;
|
|
|
|
};
|
|
|