Am Dienstag, 19. September 2006 01:52 schrieb Joachim Staib:
> more a kind of feeling but a line like this:
> "if (nPPID == MSN_PPID && bAutoNA && !bAutoOffline && status ==
> ICQ_STATUS_AWAY)"
>
> cannot be a good solution somehow. is it really a task of the
> licq-backend, the "protocol container" to have the need to distinguish
> between the protocols? Hope the status stuff is abstracted in the future
> licq API :)

Well, this happens in the frontend, but anyway: yes, it might be a good idea 
to abstract a little. The protocols should just have a pushStatus(), 
popStatus() and setAutoAway() function or something like that so that no 
extra cases should be needed. One could save the original mode with 
pushStatus(), go to auto away, and restore the status with popStatus() if 
needed. The setAutoAway() function would be virtual and could e.g. go to away 
only if not occupied or something.

Arne

-- 
Dipl.-Inform. Arne Schmitz              Phone   +49 (0)241 80-21817
Computer Graphics Group                 Fax     +49 (0)241 80-22899
RWTH Aachen University                  http://www.rwth-graphics.de
Ahornstrasse 55, 52074 Aachen, Germany

Attachment: pgpyTdmsgaS5e.pgp
Description: PGP signature

Reply via email to