-rw-r--r-- | noncore/unsupported/mail2/addresspicker.cpp | 1 | ||||
-rw-r--r-- | noncore/unsupported/mail2/bend/opie-mailapplet.control | 4 | ||||
-rw-r--r-- | noncore/unsupported/mail2/opie-mail2.control | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/noncore/unsupported/mail2/addresspicker.cpp b/noncore/unsupported/mail2/addresspicker.cpp index 7f32725..a97b33f 100644 --- a/noncore/unsupported/mail2/addresspicker.cpp +++ b/noncore/unsupported/mail2/addresspicker.cpp @@ -1,74 +1,75 @@ #include <qpushbutton.h> #include <qmessagebox.h> #include <qtextstream.h> #include <qlistbox.h> #include <qfile.h> #include <qpe/resource.h> #include <stdlib.h> #include "addresspicker.h" AddressPicker::AddressPicker(QWidget *parent, const char *name, bool modal, WFlags fl) : AddressPickerBase(parent, name, modal, fl) { okButton->setIconSet(Resource::loadPixmap("enter")); cancelButton->setIconSet(Resource::loadPixmap("editdelete")); connect(okButton, SIGNAL(clicked()), SLOT(accept())); connect(cancelButton, SIGNAL(clicked()), SLOT(close())); QFile f((QString) getenv("HOME") + "/Applications/" + "addressbook/addressbook.xml"); if (f.open(IO_ReadOnly)) { QTextStream stream(&f); + stream.setEncoding( QTextStream::UnicodeUTF8 ); QString content; while (!f.atEnd()) content += stream.readLine() + "\n"; QStringList lines = QStringList::split(QRegExp("\\n"), content); QStringList::Iterator it; for (it = lines.begin(); it != lines.end(); it++) { if ((*it).find(QRegExp("^<Contact.*")) != -1) { int pos = (*it).find("FirstName=\""); QString fname; if (pos != -1) { int i = 1; QChar c; while (c != '"') { c = (*it)[pos + 10 + i]; if (c != '"') fname += c; i++; } } pos = (*it).find("LastName=\""); QString lname; if (pos != -1) { int i = 1; QChar c; while (c != '"') { c = (*it)[pos + 9 + i]; if (c != '"') lname += c; i++; } } pos = (*it).find("DefaultEmail=\""); QString email; if (pos != -1) { int i = 1; QChar c; while (c != '"') { c = (*it)[pos + 13 + i]; if (c != '"') email += c; i++; } } QString tname, temail; if (!fname.isEmpty()) tname += fname; if (!lname.isEmpty()) tname += fname.isEmpty() ? lname : (" " + lname); if (!email.isEmpty()) temail += tname.isEmpty() ? email : (" <" + email + ">"); if (!email.isEmpty()) addressList->insertItem(tname + temail); } } } if (addressList->count() <= 0) { diff --git a/noncore/unsupported/mail2/bend/opie-mailapplet.control b/noncore/unsupported/mail2/bend/opie-mailapplet.control index e5d3c6e..d618643 100644 --- a/noncore/unsupported/mail2/bend/opie-mailapplet.control +++ b/noncore/unsupported/mail2/bend/opie-mailapplet.control @@ -1,10 +1,10 @@ Package: opie-mailapplet Files: plugins/applets/libbend.so* Priority: optional Section: opie/applications Maintainer: Constantin Bergemann <cbergemann@lisa.de> Architecture: arm -Version: 0.0.9-$SUB_VERSION -Depends: task-opie-minimal libopie1 opie-mail2 +Version: $QPE_VERSION$EXTRAVERSION +Depends: task-opie-minimal, libopie1, opie-mail2 Description: A Biff-Like mailchecker License: LGPL diff --git a/noncore/unsupported/mail2/opie-mail2.control b/noncore/unsupported/mail2/opie-mail2.control index 7f8aeb6..976dc0b 100644 --- a/noncore/unsupported/mail2/opie-mail2.control +++ b/noncore/unsupported/mail2/opie-mail2.control @@ -1,10 +1,10 @@ Package: opie-mail2 Files: bin/mail $OPIEDIR/lib/libmail.so* apps/1Pim/mail.desktop pics/mail/*.png sounds/mail/*.wav Priority: optional Section: opie/applications Maintainer: Constantin Bergemann <cbergemann@lisa.de> Architecture: arm -Version: 0.0.9-$SUB_VERSION +Version: $QPE_VERSION$EXTRAVERSION Depends: task-opie-minimal, libopie1 Description: An IMAP mail client License: LGPL |