CCIMXDesktop
 
Loading...
Searching...
No Matches
Noter Class Reference

Manages date-based note storage and retrieval. More...

#include <Noter.h>

Public Member Functions

 Noter ()=default
 Default constructor.
 
 Q_DISABLE_COPY_MOVE (Noter)
 
void submitNoteInfo (const QDate &date, const NoteInfo &infos)
 Add or update a note for a specific date.
 
void removeNoteInfo (const QDate &date)
 Remove a note for a specific date.
 
NoteInfonoteInfo (const QDate &date) const
 Retrieve a note for a specific date.
 

Detailed Description

Manages date-based note storage and retrieval.

Provides functionality to store, retrieve, and manage notes associated with specific dates using a QMap-based storage system. The class is non-copyable and non-movable.

Member Function Documentation

◆ noteInfo()

NoteInfo * Noter::noteInfo ( const QDate &  date) const

Retrieve a note for a specific date.

Parameters
dateThe date to look up
Returns
Pointer to the NoteInfo if found, nullptr otherwise
Note
The returned pointer is only valid while the Noter exists

◆ Q_DISABLE_COPY_MOVE()

Noter::Q_DISABLE_COPY_MOVE ( Noter  )

Disables copying and moving

◆ removeNoteInfo()

void Noter::removeNoteInfo ( const QDate &  date)

Remove a note for a specific date.

Parameters
dateThe date whose note should be removed

◆ submitNoteInfo()

void Noter::submitNoteInfo ( const QDate &  date,
const NoteInfo infos 
)

Add or update a note for a specific date.

Parameters
dateThe date to associate with the note
infosThe note content to store

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