FOperatingSystemNotification
#include <OperatingSystemSimulator/Public/OperatingSystemNotification.h>Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemNotification["FOperatingSystemNotification"]
class EOperatingSystemNotificationType["EOperatingSystemNotificationType"]
FOperatingSystemNotification ..> EOperatingSystemNotificationType
class EOperatingSystemNotificationCategory["EOperatingSystemNotificationCategory"]
FOperatingSystemNotification ..> EOperatingSystemNotificationCategory
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemNotification {
+Title : FText
+Description : FText
+Code : FText
+TimeStamp : FText
+Icon : TSoftObjectPtr< UObject >
+Level : EOperatingSystemNotificationType()
+Category : EOperatingSystemNotificationCategory()
+IsValid() const bool
+IsWarning() const bool
+IsError() const bool
+FOperatingSystemNotification()
+FOperatingSystemNotification(const FText &Title, const EOperatingSystemN
+FOperatingSystemNotification(const FText &Title, const EOperatingSystemN
+FOperatingSystemNotification(const FText &Title, const FText &Descriptio
+FOperatingSystemNotification(const FText &Title, const FText &Descriptio
}
Caller impact — IsValid
Section titled “Caller impact — IsValid”Documented call sites inside the plugin (2):
flowchart LR FOperatingSystemNotification__IsValid["FOperatingSystemNotification::IsValid"] UOperatingSystemStatics__IsNotificationValid["UOperatingSystemStatics::IsNotificationValid"] UOperatingSystemStatics__IsNotificationValid --> FOperatingSystemNotification__IsValid FOperatingSystemNotificationManager__LogNotification["FOperatingSystemNotificationManager::LogNotification"] FOperatingSystemNotificationManager__LogNotification --> FOperatingSystemNotification__IsValid
struct FOperatingSystemNotificationDefined in OperatingSystemNotification.h:58 A struct representing an operating system notification.
This struct encapsulates information about an operating system notification, including its title, description, code, timestamp, icon, level, and category. It provides various constructors to create different types of notifications. Notifications can be checked for validity and can also be checked if they are warnings or errors.
See also: EOperatingSystemNotificationType
See also: EOperatingSystemNotificationCategory
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FText | Title | A title for the notification. Something that makes sense. |
FText | Description | A short description of this notification. Typically less than 255 characters but recommended to keep it under 100 characters.. |
FText | Code | A code like ERR_SOMETHING, ACCESS_DENIED, 0x000FFFD456D or anything like that. |
FText | TimeStamp | Local date and time on this computer. This will be according to your computer’s time zone and daylight saving settings. |
TSoftObjectPtr< UObject > | Icon | An optional icon. |
EOperatingSystemNotificationType | Level | What type of notification is this? |
EOperatingSystemNotificationCategory | Category | What generated this notification? |
FText TitleDefined in OperatingSystemNotification.h:64 A title for the notification. Something that makes sense.
Referenced by
Section titled “Referenced by”FOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationIsValid
Description
Section titled “Description”FText DescriptionDefined in OperatingSystemNotification.h:68 A short description of this notification. Typically less than 255 characters but recommended to keep it under 100 characters..
Referenced by
Section titled “Referenced by”AddNotificationCreateProgramsFromRepositoryFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotification
FText CodeDefined in OperatingSystemNotification.h:72 A code like ERR_SOMETHING, ACCESS_DENIED, 0x000FFFD456D or anything like that.
Referenced by
Section titled “Referenced by”CreateProgramsFromRepositoryFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotification
TimeStamp
Section titled “TimeStamp”FText TimeStampDefined in OperatingSystemNotification.h:76 Local date and time on this computer. This will be according to your computer’s time zone and daylight saving settings.
Referenced by
Section titled “Referenced by”FOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationIsValid
TSoftObjectPtr< UObject > IconDefined in OperatingSystemNotification.h:80 An optional icon.
Referenced by
Section titled “Referenced by”CreateNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotification
EOperatingSystemNotificationType LevelDefined in OperatingSystemNotification.h:84 What type of notification is this?
Referenced by
Section titled “Referenced by”CreateNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationIsErrorIsValidIsWarning
Category
Section titled “Category”EOperatingSystemNotificationCategory CategoryDefined in OperatingSystemNotification.h:88 What generated this notification?
Referenced by
Section titled “Referenced by”FOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationFOperatingSystemNotificationIsValid
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
bool | IsValid const inline | Checks if the operating system notification is valid. |
bool | IsWarning const inline | |
bool | IsError const inline | |
FOperatingSystemNotification inline | ||
FOperatingSystemNotification inline | Constructs a new operating system notification with the given title and category. The constructor initializes the operating system notification object with the provided title, an empty description, an empty code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category. | |
FOperatingSystemNotification inline | Constructs a new operating system notification with the given title, category, and verbosity level. The constructor initializes the operating system notification object with the provided title, an empty description, an empty code, the current date and time as the timestamp, a null icon, the specified verbosity level, and the given category. | |
FOperatingSystemNotification inline | Constructs a new operating system notification with the given title, description, and category. The constructor initializes the operating system notification object with the provided title, description, an empty code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category. | |
FOperatingSystemNotification inline | Constructs a new operating system notification. |
IsValid
Section titled “IsValid”const inline
inline bool IsValid() constDefined in OperatingSystemNotification.h:101 Checks if the operating system notification is valid.
A notification is considered valid if:
-
The title is not empty or whitespace.
-
The level is not None.
-
The category is not None.
-
The timestamp can be parsed to a valid date and time.
Returns
Section titled “Returns”True if the notification is valid, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”IsWarning
Section titled “IsWarning”const inline
inline bool IsWarning() constDefined in OperatingSystemNotification.h:112
Referenced by
Section titled “Referenced by”References
Section titled “References”LevelWarning
IsError
Section titled “IsError”const inline
inline bool IsError() constDefined in OperatingSystemNotification.h:113
Referenced by
Section titled “Referenced by”References
Section titled “References”ErrorLevel
FOperatingSystemNotification
Section titled “FOperatingSystemNotification”inline
inline FOperatingSystemNotification()Defined in OperatingSystemNotification.h:115
References
Section titled “References”FOperatingSystemNotification
Section titled “FOperatingSystemNotification”inline
inline FOperatingSystemNotification(const FText & Title, const EOperatingSystemNotificationCategory & Category)Defined in OperatingSystemNotification.h:139 Constructs a new operating system notification with the given title and category. The constructor initializes the operating system notification object with the provided title, an empty description, an empty code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category.
Parameters
Section titled “Parameters”-
TitleThe title for the notification. -
CategoryThe category of the notification.
Example usage:
FOperatingSystemNotification Notification(FText::FromString("Title"), EOperatingSystemNotificationCategory::OperatingSystem);References
Section titled “References”FOperatingSystemNotification
Section titled “FOperatingSystemNotification”inline
inline FOperatingSystemNotification(const FText & Title, const EOperatingSystemNotificationCategory & Category, const EOperatingSystemNotificationType & Verbosity)Defined in OperatingSystemNotification.h:164 Constructs a new operating system notification with the given title, category, and verbosity level. The constructor initializes the operating system notification object with the provided title, an empty description, an empty code, the current date and time as the timestamp, a null icon, the specified verbosity level, and the given category.
Parameters
Section titled “Parameters”-
TitleThe title for the notification. -
CategoryThe category of the notification. -
VerbosityThe verbosity level of the notification.
Example usage:
FOperatingSystemNotification Notification(FText::FromString("Title"), EOperatingSystemNotificationCategory::OperatingSystem, EOperatingSystemNotificationType::Info);References
Section titled “References”FOperatingSystemNotification
Section titled “FOperatingSystemNotification”inline
inline FOperatingSystemNotification(const FText & Title, const FText & Description, const EOperatingSystemNotificationCategory & Category)Defined in OperatingSystemNotification.h:192 Constructs a new operating system notification with the given title, description, and category. The constructor initializes the operating system notification object with the provided title, description, an empty code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category.
Parameters
Section titled “Parameters”-
TitleThe title for the notification. -
DescriptionA short description of this notification. -
CategoryThe category of the notification.
Example usage:
FText Title = FText::FromString("Title");FText Description = FText::FromString("Description");EOperatingSystemNotificationCategory Category = EOperatingSystemNotificationCategory::OperatingSystem;FOperatingSystemNotification Notification(Title, Description, Category);References
Section titled “References”FOperatingSystemNotification
Section titled “FOperatingSystemNotification”inline
inline FOperatingSystemNotification(const FText & Title, const FText & Description, const FText & Code, const EOperatingSystemNotificationCategory & Category)Defined in OperatingSystemNotification.h:221 Constructs a new operating system notification.
The constructor initializes the operating system notification object with the provided title, description, code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category.
Parameters
Section titled “Parameters”-
TitleThe title for the notification. -
DescriptionA short description of this notification. -
CodeA code like ERR_SOMETHING, ACCESS_DENIED, 0x000FFFD456D, or anything like that. -
CategoryThe category of the notification.
Example usage: FText title = FText::FromString(“Title”); FText description = FText::FromString(“Description”); FText code = FText::FromString(“ERR_SOMETHING”); EOperatingSystemNotificationCategory category = EOperatingSystemNotificationCategory::OperatingSystem; FOperatingSystemNotification notification(title, description, code, category);