FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_notify Namespace Reference

Desktop notification flag management in reserved space. More...

Functions

Value< void > write (fs::path const &path_file_binary, uint8_t is_notify)
 Writes a notification flag to the flatimage binary.
 
Value< uint8_t > read (fs::path const &path_file_binary)
 Read a notification flag from the flatimage binary.
 

Detailed Description

Desktop notification flag management in reserved space.

This namespace manages a single-byte flag in the binary's reserved space that controls whether desktop notifications are enabled for the FlatImage application. The flag determines if the application can display notifications to the user through the desktop environment's notification system.

Function Documentation

◆ read()

Value< uint8_t > ns_reserved::ns_notify::read ( fs::path const & path_file_binary)
inline

Read a notification flag from the flatimage binary.

Parameters
path_file_binaryPath to the flatimage binary
Returns
On success, if notifications are be enabled or not. Or the respective error.

Definition at line 59 of file notify.hpp.

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

◆ write()

Value< void > ns_reserved::ns_notify::write ( fs::path const & path_file_binary,
uint8_t is_notify )
inline

Writes a notification flag to the flatimage binary.

Parameters
path_file_binaryPath to the flatimage binary
is_notifyWhether notifications should be enabled or not
Returns
Value<void> Success or error

Definition at line 44 of file notify.hpp.

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