--===============0128952739== Content-Type: multipart/signed; boundary="nextPart5045039.vglX9FTEEY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart5045039.vglX9FTEEY Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le mercredi 3 d=C3=A9cembre 2008, Timo Schl=C3=BC=C3=9Fler a =C3=A9crit=C2= =A0: > Hello, > > attached is a patch and the two files which add the ability to import > logs from pidgin to kopete. The source-code files belong to > kdenetwork/kopete/plugins/history. > I changed HistoryLogger slightly so that appendMessage() uses the > timestamp from the message that is to be imported but not > QDate::currentDate(). > > I don't know what happens if you want to import multiuser chatlogs > because i haven't got any ... i would be glad if you can check that. > For me it works just fine, but the logs from pidgin are very unsteady. > anyway i hope it works for all pidgin logs. Hi, sorry for answering so late. You shouldn't change the reference date in the getDocument() function. You should understand that by definition, the 'int month' passed to the=20 getDocument function is the difference between the _current_ month and the= =20 month of the document you ask. So you should not change the reference. What you should do instead is, in appendMessage, call the overloaded getDocument, that take a QDate instead. BUT then move the cache from the function that take an integer to this one. --nextPart5045039.vglX9FTEEY Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQBJTWbTz58lY8jWrL0RAoFwAJ0ZNWQriEPNyVoH+RIP31Ms8eIqgQCcCeSZ 7wpiEBauJK6hPoztXwu3kkc= =HaHf -----END PGP SIGNATURE----- --nextPart5045039.vglX9FTEEY-- --===============0128952739== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel --===============0128952739==--