FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_db::ns_desktop::Desktop Class Reference

Public Member Functions

 Desktop ()
 Construct a new Desktop:: Desktop object.
 
std::string const & get_name () const
 
Value< fs::path > const & get_path_file_icon () const
 
std::set< IntegrationItem > const & get_integrations () const
 
std::set< std::string > const & get_categories () const
 
void set_name (std::string_view str_name)
 
void set_integrations (std::set< IntegrationItem > const &set_integrations)
 
void set_categories (std::set< std::string > const &set_categories)
 

Friends

Value< Desktopdeserialize (std::string_view raw_json)
 Deserializes JSON string into a Binds object.
 
Value< std::string > serialize (Desktop const &desktop)
 Serializes a Desktop class into a json string.
 

Detailed Description

Definition at line 32 of file desktop.hpp.

Constructor & Destructor Documentation

◆ Desktop()

ns_db::ns_desktop::Desktop::Desktop ( )
inline

Construct a new Desktop:: Desktop object.

Definition at line 56 of file desktop.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ get_categories()

std::set< std::string > const & ns_db::ns_desktop::Desktop::get_categories ( ) const
inline

Definition at line 44 of file desktop.hpp.

◆ get_integrations()

std::set< IntegrationItem > const & ns_db::ns_desktop::Desktop::get_integrations ( ) const
inline

Definition at line 43 of file desktop.hpp.

◆ get_name()

std::string const & ns_db::ns_desktop::Desktop::get_name ( ) const
inline

Definition at line 41 of file desktop.hpp.

◆ get_path_file_icon()

Value< fs::path > const & ns_db::ns_desktop::Desktop::get_path_file_icon ( ) const
inline

Definition at line 42 of file desktop.hpp.

◆ set_categories()

void ns_db::ns_desktop::Desktop::set_categories ( std::set< std::string > const & set_categories)
inline

Definition at line 47 of file desktop.hpp.

◆ set_integrations()

void ns_db::ns_desktop::Desktop::set_integrations ( std::set< IntegrationItem > const & set_integrations)
inline

Definition at line 46 of file desktop.hpp.

◆ set_name()

void ns_db::ns_desktop::Desktop::set_name ( std::string_view str_name)
inline

Definition at line 45 of file desktop.hpp.

Friends And Related Symbol Documentation

◆ deserialize

Value< Desktop > deserialize ( std::string_view raw_json)
friend

Deserializes JSON string into a Binds object.

Parses a JSON string containing bind mount configurations and constructs a Binds object. Each JSON entry should have "src", "dst", and "type" fields. The type field must be "ro" (read-only), "rw" (read-write), or "dev" (device). Entries with invalid indices are logged as warnings and skipped. Successfully parsed entries are added to the Binds collection with their respective indices, source paths, destination paths, and access types.

Parameters
raw_jsonThe JSON string containing bind mount configurations
Returns
Value<Binds> The deserialized Binds object on success, or error on parse failure

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Boot class or the respective error

Deserializes JSON string into a Binds object.

Parameters
raw_jsonThe json string which to deserialize
Returns
The Desktop class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Logs class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Daemon class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Dispatcher class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Message class or the respective error

Deserializes JSON string into a Binds object.

Parameters
raw_jsonThe json string which to deserialize
Returns
The Recipe class or the respective error

Definition at line 184 of file bind.hpp.

◆ serialize

Value< std::string > serialize ( Desktop const & desktop)
friend

Serializes a Desktop class into a json string.

Parameters
desktopThe Desktop object to deserialize
Returns
The serialized json data;

Definition at line 109 of file desktop.hpp.


The documentation for this class was generated from the following file: