... | ... | @@ -201,6 +201,8 @@ What do all these mean??? |
|
|
These classes determine which messages are applicable to the current chat; they do nothing more than add the message to the ConversationContentModel.
|
|
|
* ConversationContentModel
|
|
|
This class is responsible of maintaining the exact content to be shown in the correct order. This means that any messages being corrected, get updated in this content representation. It's the responsibility of this model indicate to the view it has been updated/appended, including which messages were updated, by stanza_id. It is the responsibility of this class to store and update history of the channel (as this class is the place where it all gets together).
|
|
|
* ConversationContentLine
|
|
|
This class-or-dict contains the available fields from the list above (can it just be a dict or do we need a class?)
|
|
|
* ConversationTextview (current presentation)
|
|
|
This class is responsible for showing any content available in the model and updating the display when the content model gets updated. It's up to the view to determine how any given message is to be rendered, meaning that the content model should be able to provide all data that might influence this (see the listed fields above for the current situation). The view maintains a mapping between stanza_ids and regions in the widget to ensure efficient updates. Note that this class and the next don't differ in their responsibilities.
|
|
|
* ConversationListBoxview (desired presentation)
|
... | ... | |