Usage of KNotify in programs (was: Re: Sound in KMail)
Aaron J. Seigo
aseigo at olympusproject.org
Sun Jul 7 04:58:03 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 07 July 2002 03:04, Ingo Klöcker wrote:
> Solution #1:
> Use only KNotify.
> Advantages:
> - It's a clean solution and uses the powerful tools provided by KDE.
> Disadvantages:
- - it is (or at least should be) a standard way of providing events, much as
there is a standard way for configuring key shortcuts and toolbars
- - by using it programs get improvements and bug fixes for free (such as
kpassivepopup support)
> - AFAICS KNotify doesn't support running an arbitrary command on an
> event. (wishlist item?)
this would be trivial to add ...
> - Probably more than one "You have new mail" message box will be shown
> if multiple "New Mail" events occur (e.g. when the user is away from
> his terminal for some time). But maybe KNotify is smart enough to not
> do this.
i don't think it is right now (though i'm sure someone will correct me if it
is =), but seeing as it runs as a process (e.g. is stateful) it should be
able to keep track of events if they are marked by the sender as "unique"
> - The user probably won't find the place where he can configure the "New
> Mail" events (because almost no program uses this KDE feature). A
> solution for this would be to make it possible to call the System
> Notifications configuration directly from KMail.
this is what KNotifyDialog is for, right?
a KStdAction could be added for this to make it easily accessable..
i'm willing to do the work necessary to implement all the above if it is
deemed the correct path. consistency is important and this takes knotify to
its logical conclusion IMO.
- --
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
"Everything should be made as simple as possible, but not simpler"
- Albert Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9J7xL1rcusafx20MRAn09AJkB3g/cy9FUYN4nyGxPiGKn0395LgCgkCp9
tWAnGh18u8foevy2TCABqOY=
=+YR4
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list