So here's the patch for non-intrusive notifications. I've added 3 classes.
InfoEventManager and InfoEvent into libkopete and InfoEventWidget into kopete
folder.
* InfoEvent is base class for all events. I've tried to make the methods and
logic
in InfoEvent the same as in KNotification.
* InfoEventManager practically only holds the events and emits changed() signal.
* InfoEventWidget is the widget you see in the screenshot.
The InfoEvent name was just first that came to my mind as I thought about this
more
maybe ServiceEvent or ServiceNontification would be better. What you think?
I've also changed the ICQ authorization request to InfoEvent.
GUI screenshot
http://kedge.wz.cz/kopete/kopetenotifications2.png
Any comments?
Thanks,
Roman
On Fri, 14 Mar 2008 13:06:06 +0100, Roman Jarosz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> During this week I got 5 authorization request and every time this happens
> ICQ shows dialog which is annoying because it popups in front of every window
> and steals focus.
>
> So I thought about doing something less intrusive. The events like
> authorization requests, someone added/deleted you to/from contact list etc.
> could be stored in global event manager and it can be shown in widget
> in Kopete main window (like identities).
> The flag icon could signal if there are some new events with its color.
>
> Here's the screenshot:
> http://kedge.wz.cz/kopete/kopetenotifications.png
>
> I think that it wouldn't be too hard to do something like this.
> There could be one global event manager class which could hold
> all events and one base class for all events.
>
> The protocols than could create specific event classes by deriving
> from the event base class.
>
> So what do you think?
>
> Regards,
> Roman
>
>
> _______________________________________________
> kopete-devel mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kopete-devel
>
>
kopetenotifications.diff
Description: Binary data
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
