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 NOTIFICATION_ICON_TYPE // Notification icon types 
    {
        nitNone, // Use the same icon as is set as a tray icon 
        nitInfo, // Use system information icon 
        nitWarning, // Use system warning icon 
        nitError, // Use system error icon 
        nitCustom // Use icon set in NotificationIcon property 
    };
public:
    String getTip() override;
    Bitmap *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;

    NOTIFICATION_ICON_TYPE 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 
    Bitmap *getNotificationIcon(); // Return notification custom icon 

    bool setNotificationIconType(const NOTIFICATION_ICON_TYPE 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