Skip to content
Snippets Groups Projects
Commit f2b4bffc authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Add setters & getters for the homeserver domain and port

parent 219d2a88
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,6 @@ else()
set(MAKE_CMD "make")
endif()
set(OLM_NAME "${CMAKE_STATIC_LIBRARY_PREFIX}olm${CMAKE_STATIC_LIBRARY_SUFFIX}")
ExternalProject_Add(
Olm
......
......@@ -67,10 +67,19 @@ struct SyncOpts
class Client : public std::enable_shared_from_this<Client>
{
public:
Client() = default;
Client(const std::string &server = "", uint16_t port = 443);
//! Wait for the client to close.
void close();
//! Set the homeserver domain name.
void set_server(const std::string &server) { server_ = server; };
//! Retrieve the homeserver domain name.
std::string server() { return server_; };
//! Set the homeserver port.
void set_port(uint16_t port) { port_ = port; };
//! Retrieve the homeserver port.
uint16_t port() { return port_; };
//! Add an access token.
void set_access_token(const std::string &token) { access_token_ = token; }
//! Retrieve the access token.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment