From e515ca109faa897e84be8a97a1240c59df612dd4 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Wed, 5 Jul 2023 15:14:46 +0200 Subject: Implement a small library of ActivityPub objects These objects allow, and will allow us, to move HTML rendering out of the archive parser and into separate classes. Each of the derived classes specialise HTML rendering for their specific requirements. Furthermore, these ActivityPub objects will be able to be expanded upon and have support to be written to disk, in a database, for instance. Separating ActivityPub object retrieving from rendering allows us to implement other retrieving sources and methods, such as downloading posts from a configured remote instance. --- CMakeLists.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c6381c..f0994a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # For Kate's LSP -find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets) +find_package(QT NAMES Qt5 REQUIRED COMPONENTS Widgets) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets) # add_subdirectory will happen later… @@ -28,6 +28,20 @@ set(PROJECT_SOURCES src/list_item.h src/command_line.cpp src/command_line.h + src/activitypub/apactivity.h + src/activitypub/apactor.h + src/activitypub/apattachment.h + src/activitypub/apbase.h + src/activitypub/apobject.h + src/activitypub/appost.h + src/activitypub/apreblog.h + src/activitypub/apactivity.cpp + src/activitypub/apactor.cpp + src/activitypub/apattachment.cpp + src/activitypub/apbase.cpp + src/activitypub/apobject.cpp + src/activitypub/appost.cpp + src/activitypub/apreblog.cpp ) if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) -- cgit v1.2.3-54-g00ecf