From kopete-devel Mon Nov 12 20:16:30 2007 From: Dennis =?utf-8?q?Nienh=C3=BCser?= Date: Mon, 12 Nov 2007 20:16:30 +0000 To: kopete-devel Subject: Re: [kopete-devel] Prevent creating duplicate accounts Message-Id: <200711122116.30954.earthwings () gentoo ! org> X-MARC-Message: https://marc.info/?l=kopete-devel&m=119489862912473 Am Samstag, 10. November 2007 19:29:12 schrieb Duncan Mac-Vicar P.: > The amount of duplicated code that it introduces in every protocol is what > makes me nervous. Something I spotted: > > - validateData in Kopete"s ediitaccountwidget is pure virtual > - it is reimplemented by protocols, same with validatePassword > > What I suggest: > - rename validateData to validateProtocolData (or just validateData), as > virtual > make some method in the editaccountwidget (validateData or something else?) > non virtual, put the duplicated account code there, and call the virtuals > validateProtocolData (or validateData if it is the name) and > validatePassword as decorator methods. I'll look into that - won't find time today and tomorrow, but Wednesday (when it's time to get it done before message freeze...) Dennis _______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel