... | ... | @@ -218,7 +218,7 @@ Also, the content model should provide the view with chat status data: participa |
|
|
* GroupChatControl/PrivateChatControl/ChatControl
|
|
|
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). Every line contained in the model has a unique ID to find it. In case a line doesn't have a stanza_id, this class will generate an id and return that to the caller.
|
|
|
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. Additionally, the decision to merge two stanzas into one chat line (because they originate from the same jid and the user enabled merging) is on this class. 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). Every line contained in the model has a unique ID to find it. In case a line doesn't have a stanza_id (e.g. because it's a status message *or* because it's a merged line), this class will generate an id and return that to the caller.
|
|
|
* 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)
|
... | ... | |