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

Desktop integration configuration management. More...

Classes

class  Desktop
 

Functions

 ENUM (IntegrationItem, ENTRY, MIMETYPE, ICON)
 
Value< Desktopdeserialize (std::string_view str_raw_json)
 Deserializes a string into a Desktop class.
 
Value< Desktopdeserialize (std::ifstream &stream_raw_json) noexcept
 Deserializes a input string stream into a Desktop class.
 
Value< std::string > serialize (Desktop const &desktop)
 Serializes a Desktop class into a json string.
 

Detailed Description

Desktop integration configuration management.

Handles XDG desktop integration settings including .desktop entry generation, MIME type associations, and icon installation. Manages application name, icon paths, integration toggles (entry/mimetype/icon), and FreeDesktop categories for proper system integration of FlatImage applications.

Function Documentation

◆ deserialize() [1/2]

Value< Desktop > ns_db::ns_desktop::deserialize ( std::ifstream & stream_raw_json)
inlinenodiscardnoexcept

Deserializes a input string stream into a Desktop class.

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

Definition at line 96 of file desktop.hpp.

Here is the call graph for this function:

◆ deserialize() [2/2]

Value< Desktop > ns_db::ns_desktop::deserialize ( std::string_view str_raw_json)
inlinenodiscardnoexcept

Deserializes a string into a Desktop class.

Deserializes JSON string into a Binds object.

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

Definition at line 69 of file desktop.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

Value< std::string > ns_db::ns_desktop::serialize ( Desktop const & desktop)
inlinenodiscardnoexcept

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.

Here is the caller graph for this function: