From 7c1ae4737e4461583f52f29a6cbeca7b5e3669aa Mon Sep 17 00:00:00 2001 From: vae Date: Tue, 11 May 2021 00:32:44 +0300 Subject: [PATCH] feat(omemo): WIP signal-protocol-c cpp wrapper --- qomemo/CMakeLists.txt | 4 +++- qomemo/signal.h | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 qomemo/signal.h diff --git a/qomemo/CMakeLists.txt b/qomemo/CMakeLists.txt index 5f92df4..0837eac 100644 --- a/qomemo/CMakeLists.txt +++ b/qomemo/CMakeLists.txt @@ -8,7 +8,7 @@ find_package(Qt5Core CONFIG REQUIRED) find_package(Qt5Xml CONFIG REQUIRED) find_package(LMDB REQUIRED) -set(qomemo_SRC) +set(qomemo_SRC signal.h) add_library(qomemo STATIC ${qomemo_SRC}) @@ -17,6 +17,8 @@ if(SYSTEM_QXMPP) target_include_directories(qomemo PUBLIC ${QXMPP_INTERFACE_INCLUDE_DIRECTORIES}) endif() +target_include_directories(qomemo PUBLIC ${CMAKE_SOURCE_DIR}/external/signal-protocol-c/src) + target_link_libraries(qomemo Qt5::Core) target_link_libraries(qomemo Qt5::Xml) target_link_libraries(qomemo qxmpp) diff --git a/qomemo/signal.h b/qomemo/signal.h new file mode 100644 index 0000000..e7e4c8b --- /dev/null +++ b/qomemo/signal.h @@ -0,0 +1,20 @@ +/* + * Created by victoria on 2021-05-11. + */ + +#pragma once + +#include + +namespace Signal +{ + +class Context {}; +class RatchetIdentityPair {}; +class SessionSignedPreKey {}; +class ProtocolKeyHelper {}; +class ProtocolStoreContext {}; +class SessionBuilder {}; +class SessionCipher {}; + +}