summaryrefslogtreecommitdiffhomepage
path: root/dev/Usr
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-12 19:39:59 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-12 19:39:59 +0100
commit8fc59848c87cc3cb05d9cf983f9dbd9d0e7aa390 (patch)
tree9822625565863062fe3b5d44f7d794b34400f68f /dev/Usr
parent873b670fbdd7b0544d84bab2c24dfa6c3a3c75b2 (diff)
TQ-23:
-> Implement CFWindowConnection_ structure. -> Need a controller class now. -> Refactor StringBuilder to KStringBuilder
Diffstat (limited to 'dev/Usr')
-rw-r--r--dev/Usr/LibCF/Object.h2
-rw-r--r--dev/Usr/LibCF/String.h (renamed from dev/Usr/LibWM/Core.h)5
-rw-r--r--dev/Usr/LibGUI/.keep0
-rw-r--r--dev/Usr/LibWM/WindowConnection.h31
4 files changed, 36 insertions, 2 deletions
diff --git a/dev/Usr/LibCF/Object.h b/dev/Usr/LibCF/Object.h
index c7369ee3..4899661e 100644
--- a/dev/Usr/LibCF/Object.h
+++ b/dev/Usr/LibCF/Object.h
@@ -9,6 +9,8 @@
#include <LibCF/Core.h>
+#define CF_OBJECT : public LibCF::CFObject
+
namespace LibCF
{
class CFObject;
diff --git a/dev/Usr/LibWM/Core.h b/dev/Usr/LibCF/String.h
index 83a2443e..457a999d 100644
--- a/dev/Usr/LibWM/Core.h
+++ b/dev/Usr/LibCF/String.h
@@ -11,5 +11,6 @@
namespace LibCF
{
- class CFWindowConnection_;
-} // namespace LibCF \ No newline at end of file
+ class CFString;
+
+} \ No newline at end of file
diff --git a/dev/Usr/LibGUI/.keep b/dev/Usr/LibGUI/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dev/Usr/LibGUI/.keep
diff --git a/dev/Usr/LibWM/WindowConnection.h b/dev/Usr/LibWM/WindowConnection.h
new file mode 100644
index 00000000..3a3e39a6
--- /dev/null
+++ b/dev/Usr/LibWM/WindowConnection.h
@@ -0,0 +1,31 @@
+
+/* -------------------------------------------
+
+ Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <LibCF/Object.h>
+#include <LibCF/Array.h>
+
+namespace LibCF
+{
+ class CFWindowConnection_;
+
+ class CFWindowConnection_ CF_OBJECT
+ {
+ public:
+ explicit CFWindowConnection_() = default;
+ virtual ~CFWindowConnection_() = default;
+
+ SCI_COPY_DEFAULT(CFWindowConnection_);
+
+ constexpr static SInt16 kMaxPeers = 16;
+
+ Char mConnName[256] = {0};
+ SInt32 mConnPeersCnt{0};
+ CFArray<VoidPtr, kMaxPeers> mConnPeers;
+ };
+} // namespace LibCF \ No newline at end of file