Skip to content
Repos

DevPlaceApp

C++ 1.1 KB28 lines Opens in site

Directory Raw Download

#pragma once
// Spec: SPEC.md section 4 (surfaces), FR-CLI-02. Screen factories: each screen area implements its own.
#include <optional>
#include <string>

#include "model/PostDetail.hpp"
#include "model/User.hpp"
#include "screens/PostDestination.hpp"
#include "ui/Navigation.hpp"

namespace dp {

// Feed area (agent "posts"): src/screens/feed, src/screens/post, src/screens/components for post parts.
ui::ScreenPtr makeFeedScreen();
ui::ScreenPtr makePostScreen(PostDestination destination);
// Compose area: create or edit post (editing = the post being edited).
ui::ScreenPtr makeCreatePostScreen(std::optional<PostDetail> editing = std::nullopt);
// Social area: profile (nullopt = own profile), messages list, conversation, notifications.
ui::ScreenPtr makeProfileScreen(std::optional<std::string> username);
ui::ScreenPtr makeMessagesScreen();
ui::ScreenPtr makeConversationScreen(User otherUser);
ui::ScreenPtr makeNotificationsScreen();
// App area (lead): settings, sign in, sign up.
ui::ScreenPtr makeSettingsScreen();
ui::ScreenPtr makeLoginScreen();
ui::ScreenPtr makeSignUpScreen();

}  // namespace dp
43.4ms