Skip to content

Commit c2a661e

Browse files
committed
Commit in-progress work
1 parent 5afbca6 commit c2a661e

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,15 @@ set (HEADERS
1818
${INCLUDE_DIR}/gitrepublic.h
1919
)
2020

21+
find_package(Qt6 REQUIRED COMPONENTS
22+
Core
23+
Network
24+
)
25+
2126
add_executable(gitrepublic-core ${SOURCES} ${HEADERS})
2227
target_include_directories(gitrepublic-core PRIVATE ${INCLUDE_DIR})
28+
29+
target_link_libraries(gitrepublic-core PRIVATE
30+
Qt6::Core
31+
Qt6::Network
32+
)

install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/bash
2+
3+
set -eux
4+
5+
# ================ CLONE QT SOURCES ================
6+
git clone git@github.com:qt/qtbase.git
7+
8+
# ================ INSTALLING QT DEPENDENCIES ================
9+
sudo apt-get install -y qt6-base-dev

src/nostr/nostr_client.cpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include <nostr.h>
2+
3+
class NostrClient {
4+
public:
5+
// Constructor
6+
NostrClient() {
7+
// TODO: Implement constructor
8+
}
9+
10+
// Destructor
11+
~NostrClient() {
12+
// TODO: Implement destructor
13+
}
14+
15+
// Member functions
16+
void connect() {
17+
// TODO: Implement connect()
18+
}
19+
20+
void disconnect() {
21+
// TODO: Implement disconnect()
22+
}
23+
24+
void sendData(const std::string& data) {
25+
// TODO: Implement sendData()
26+
}
27+
28+
std::string receiveData() {
29+
// TODO: Implement receiveData()
30+
return "";
31+
}
32+
33+
// TODO: Add more member functions as needed
34+
};

0 commit comments

Comments
 (0)