#include <ToastMessageFormLogic.h>
| ToastMessageFormLogic::ToastMessageFormLogic |
( |
QWidget * |
parentWidget | ) |
|
|
explicit |
| ToastMessageFormLogic::~ToastMessageFormLogic |
( |
| ) |
|
|
virtual |
AddMessage - create and show new ToastMessageWidget with specified text. If max message count was reached, oldest message will be removed.
- Parameters
-
| text | - the content of a message (warning - text may be trimmed by ToastMessageWidget if it is too long) |
| timeDuration | - time duration of the message, message will start hiding animation after this time |
- Returns
- ID of created toast message
| bool ToastMessageFormLogic::HideMessage |
( |
const int32_t |
messageId | ) |
|
HideMessage - hides toast message with specified ID.
- Parameters
-
| messageId | - ID of the message which is returned from AddMessage() |
- Returns
- true if hiding was successful, false otherwise (wrong message ID?)
| void ToastMessageFormLogic::OnSecondTick |
( |
| ) |
|
OnSecondTick - checks time duration of all messages and compares it to current time. If time duration expired, hiding animation will be started.
The documentation for this class was generated from the following files: