Ticket #73 (closed enhancement: fixed)
Applications and message types enhancement
| Reported by: | amroth | Owned by: | diederik |
|---|---|---|---|
| Priority: | major | Milestone: | kmess-1.5 |
| Component: | GUI - Chat window | Version: | 1.5-pre2 |
| Keywords: | Cc: |
Description (last modified by diederik) (diff)
KMess currently uses two kind of messages for applications: AppMessage - for standard info messages; AppEventMessages - for positive or passive messages. This is very wrong. For example it completely disallows to distinguish between an incoming file transfer invitation, and a notification message like "transfer cancelled"; and also, disallow distinguishing between FT messages and other kinds of application messages. So neither the ChatMaster, nor the Notification* classes are able to correctly display or ignore the relevant applications' messages.
At the moment, when a contact closes a chatwindow and then an Application sends a message like "transfer cancelled", another chatwindow is opened with that message only. And that's very annoying.
We should rework a bit the applications' methods which send messages, and optimize ChatMaster::showSpecialMessage(): For example in the Applications, have only one method and one signal to send a message; but having the message QString associated with a relative ChatMessage::MessageType identificator. This way every message sent by the Applications can be meaning by itself, and we can know if it NEEDS to be displayed, even if it means making a new chatwindow out of nowhere, or if it can be safely ignored. This fix would resolve some more 1.5 blocking bugs we've still got pending!
