Hi,

I've add message state (sending/error/sent) notification into the chat window.

Messages can have four state:
StateSending: message was sent but not yet delivered.
StateSent: message was delivered
StateError: message has not been delivered
StateUnknown: state of message isn't known
              (e.g. protocol doesn't support message acknowledgment)

Each state can have its own html code that is inserted into an element
which has id="%stateElementId%". To change message state, protocol should
call ChatSession::receivedMessageState( messageId, MessageState state ),
style can also define resend message button for error state.

I've added some status html code and icons into clear style and made
a screenshot and movie with it.

http://kedge.wz.cz/kopete/kopeteft5.png
http://kedge.wz.cz/kopete/state-notification.mpg
(btw. the sending animation is smooth in reality)

I also hooked ICQ to the new notification system and while doing this
I found out that for icq we have to keep a dictionary which maps icq
icbm cookie to Kopete messageId. So maybe we should use internal message
id in receivedMessageState? (for icq it would be the cookie)

Comments and suggestions are welcome?

Regards,
Roman

PS. The ICQ part isn't finished yet.

Attachment: messagestatenf.diff
Description: Binary data

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to