project: the repository skeleton
The SMS app for imsd's net.catcrafts.IMS1.Messaging interface starts here: the licence (GPL-3.0-only), FUNDING.yml, README and AGENTS, a project.cpp with the three build products (imsd-messages-core: std and Crafter.DB; imsd-messages-bus: GLib; the imsd-messages executable), their module units as stubs, the version constant, the bundled Noto Sans font with its OFL text, and the first test. This commit is the base every later range is reviewed against. Tested: crafter-build builds the three products and --version answers, crafter-build test passes the one test, lint and format --check are clean on every text rule and on the AST rules for the eleven files without a global module fragment; the four files that include gio/gio.h are not parsed by the lint driver's libclang (no C++ standard library on its include path: 'type_traits' file not found), which is a Crafter.Build matter.
This commit is contained in:
commit
3d635a6f9d
22 changed files with 1173 additions and 0 deletions
11
interfaces/ImsdMessages-Model.cppm
Normal file
11
interfaces/ImsdMessages-Model.cppm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module ImsdMessages:Model;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages {
|
||||
// The app's version: the one source for --version, the metainfo and the
|
||||
// package. A bump is a commit that changes only this line.
|
||||
inline constexpr std::string_view version = "0.1.0";
|
||||
}
|
||||
8
interfaces/ImsdMessages-Number.cppm
Normal file
8
interfaces/ImsdMessages-Number.cppm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module ImsdMessages:Number;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages {
|
||||
}
|
||||
8
interfaces/ImsdMessages-Store.cppm
Normal file
8
interfaces/ImsdMessages-Store.cppm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module ImsdMessages:Store;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages {
|
||||
}
|
||||
8
interfaces/ImsdMessages-Sync.cppm
Normal file
8
interfaces/ImsdMessages-Sync.cppm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module ImsdMessages:Sync;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages {
|
||||
}
|
||||
8
interfaces/ImsdMessages-Time.cppm
Normal file
8
interfaces/ImsdMessages-Time.cppm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module ImsdMessages:Time;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages {
|
||||
}
|
||||
8
interfaces/ImsdMessages-Wrap.cppm
Normal file
8
interfaces/ImsdMessages-Wrap.cppm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module ImsdMessages:Wrap;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages {
|
||||
}
|
||||
10
interfaces/ImsdMessages.Bus-Client.cppm
Normal file
10
interfaces/ImsdMessages.Bus-Client.cppm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
module;
|
||||
#include <gio/gio.h>
|
||||
export module ImsdMessages.Bus:Client;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages::Bus {
|
||||
}
|
||||
10
interfaces/ImsdMessages.Bus-Instance.cppm
Normal file
10
interfaces/ImsdMessages.Bus-Instance.cppm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
module;
|
||||
#include <gio/gio.h>
|
||||
export module ImsdMessages.Bus:Instance;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages::Bus {
|
||||
}
|
||||
10
interfaces/ImsdMessages.Bus-Notifier.cppm
Normal file
10
interfaces/ImsdMessages.Bus-Notifier.cppm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
module;
|
||||
#include <gio/gio.h>
|
||||
export module ImsdMessages.Bus:Notifier;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages::Bus {
|
||||
}
|
||||
12
interfaces/ImsdMessages.Bus-Variant.cppm
Normal file
12
interfaces/ImsdMessages.Bus-Variant.cppm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
module;
|
||||
#include <gio/gio.h>
|
||||
export module ImsdMessages.Bus:Variant;
|
||||
import std;
|
||||
|
||||
export namespace ImsdMessages::Bus {
|
||||
// The GLib the bus layer is built against, for --version.
|
||||
inline const std::string glibVersion = std::format("{}.{}.{}", glib_major_version, glib_minor_version, glib_micro_version);
|
||||
}
|
||||
14
interfaces/ImsdMessages.Bus.cppm
Normal file
14
interfaces/ImsdMessages.Bus.cppm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
/*
|
||||
ImsdMessages.Bus — the GLib side of imsd-messages: the GDBus client of
|
||||
net.catcrafts.IMS1.Messaging on the system bus, the decoding of its
|
||||
dictionaries, the desktop notifications, and the app's own session-bus name.
|
||||
No window: the executable wires this to the UI.
|
||||
*/
|
||||
export module ImsdMessages.Bus;
|
||||
export import :Variant;
|
||||
export import :Client;
|
||||
export import :Notifier;
|
||||
export import :Instance;
|
||||
17
interfaces/ImsdMessages.cppm
Normal file
17
interfaces/ImsdMessages.cppm
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
/*
|
||||
ImsdMessages — the core of imsd-messages: the parts that need neither the
|
||||
bus nor a window (numbers, time, the message model, word wrap, the store and
|
||||
the sync logic), so each of them is unit-testable on a dev box with no phone,
|
||||
no imsd and no GPU. The bus layer is ImsdMessages.Bus, the window is the
|
||||
executable.
|
||||
*/
|
||||
export module ImsdMessages;
|
||||
export import :Number;
|
||||
export import :Time;
|
||||
export import :Model;
|
||||
export import :Wrap;
|
||||
export import :Store;
|
||||
export import :Sync;
|
||||
Loading…
Reference in a new issue