pairpal
Loading...
Searching...
No Matches
include
chat
message_store.hpp
1
#ifndef MESSAGE_STORE_HPP
2
#define MESSAGE_STORE_HPP
3
#include <vector>
4
#include <tuple>
5
#include <string>
6
#include <sqlite3.h>
7
class
Message_store
{
8
public
:
9
Message_store
();
10
~Message_store
();
11
bool
addMessage(
const
std::string& fromUser,
const
std::string& toUser,
const
std::string& messageconst, std::string& timeStamp);
12
std::vector<std::tuple<int, std::string, std::string, std::string, std::string>> getMessages();
13
private
:
14
sqlite3* db;
15
};
16
#endif
// MESSAGE_STORE_HPP
Message_store
Definition
message_store.hpp:7
Generated by
1.12.0