CTrayIcon



Implementation of the TrayIcon component.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CTrayIcon : public virtual ITrayIcon, public CComponent
{
public:
    enum class NotificationIconType // Notification icon types 
    {
        None, // Use the same icon as is set as a tray icon 
        Info, // Use system information icon 
        Warning, // Use system warning icon 
        Error, // Use system error icon 
        Custom // Use icon set in NotificationIcon property 
    };
public:
    String getTip() override;
    Image *getIcon() override;
    String getTitle() override;
    String getMessage() override;

    bool setTip(const String &value) override;
    bool setTitle(const String &value) override;
    bool setMessage(const String &value) override;

    bool ShowNotification() override;
    bool HideNotification() override;
    void Update() override;

    CTrayIcon();
    CTrayIcon(IForm *parent);
    ~CTrayIcon() override;

    NotificationIconType getNotificationIconType() const; // Return notification icon type 
    bool isPlaySound() const; // Return whether standard sound should be played when showing notification 
    bool isRespectQuietTime() const; // Return whether quiet time should be taken in consideration when showing notification 
    Image *getNotificationIcon(); // Return notification custom icon 

    bool setNotificationIconType(const NotificationIconType value); // Set notification icon type 
    bool setPlaySound(const bool value); // Set whether standard sound should be played when showing notification 
    bool setRespectQuietTime(const bool value); // Set whether quiet time should be taken in consideration when showing notification 
};
Namespace: nitisa::standard
Include: Standard/Components/TrayIcon/TrayIcon.h