On Monday 23 March 2009, Marco Martin wrote:
> so would be necessary an api that a Task implementation can use to say it
> wants to be hidden (that the systemtray could or could not respect)
> like bool hiddenHint(), that taskarea would use to manipulate
> d->hiddenTypes

makes sense; there are three scenarios:

* shown
* hidden by user request
* hidden because the icon requests it

i'd like to think that if the icons are able to request hiding, we wouldn't 
need "hidden by user request". but realistically i know that won't happen due 
to having to support the legacy system tray icons and simply not being able to 
always know what the user wants.

sooo ... i agree that it makes sense to to introduce an api into Task that 
suports this.

perhaps something like:

        bool hidden() const;
        void setHidden(HideState state);

where HideReason would be an enum in Task consisting of:

        NotHidden = 0,
        UserHidden = 1,
        AutoHidden = 2

so when a request comes from the icon to hide or from the user we can | the 
values together, allowing user and auto hiding to be set separately, but 
keeping hidden() simple: m_hideState != 0;

thoughts?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to