On Sunday 22 April 2007 16:21, Michaël Larouche wrote:
> Here as promised my refactoring of Kopete::Message
>
> Just cleaning up the constructor and added some accessor really helped to
> clarify the usage of Kopete::Message :)
>
> instead of:
> Kopete::Message msg( from, to, body, Kopete::Message::Internal, QString(),
> Kopete::Message::TypeAction);
>
> now a Kopete::Message is build like:
> Kopete::Message msg( from, to );
> msg.setPlainBody( body );
> msg.setDirection( Kopete::Message::Internal );
> msg.setType( Kopete::Message::TypeAction );
>
> I left the fromContact and toContact in the constructor, it make some sense
> to me to construct a message with its originator and its recipient.
>
> Also renamed fg(), bg() and related to foregroundColor(), backgroundColor()
>
> Comments before I commit ?
It seems fine
--
~Charles Connell
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel