summaryrefslogtreecommitdiff
authoralwin <alwin>2004-01-02 01:11:18 (UTC)
committer alwin <alwin>2004-01-02 01:11:18 (UTC)
commit31df13e3d5eecef960e267b7ad4f7ad98fa28357 (patch) (side-by-side diff)
tree05c4735da9d7ed8669ce3bb8b8f2a75f3112c979
parentafca439e790b2a6261679fffa42c7eaa2b295824 (diff)
downloadopie-31df13e3d5eecef960e267b7ad4f7ad98fa28357.zip
opie-31df13e3d5eecef960e267b7ad4f7ad98fa28357.tar.gz
opie-31df13e3d5eecef960e267b7ad4f7ad98fa28357.tar.bz2
fixed appname for db access
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/addresspicker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/addresspicker.cpp b/noncore/net/mail/addresspicker.cpp
index 7857870..c6dec35 100644
--- a/noncore/net/mail/addresspicker.cpp
+++ b/noncore/net/mail/addresspicker.cpp
@@ -1,60 +1,60 @@
#include <qpushbutton.h>
#include <qmessagebox.h>
#include <qtextstream.h>
#include <qlistbox.h>
#include <qfile.h>
#include <qpe/resource.h>
#include <opie/ocontactaccess.h>
#include <opie/ocontact.h>
#include <stdlib.h>
#include "composemail.h"
AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFlags flags )
: AddressPickerUI( parent, name, modal, flags )
{
okButton->setIconSet( Resource::loadPixmap( "enter" ) );
cancelButton->setIconSet( Resource::loadPixmap( "editdelete" ) );
connect(okButton, SIGNAL(clicked()), SLOT(accept()));
connect(cancelButton, SIGNAL(clicked()), SLOT(close()));
OContactAccess::List::Iterator it;
QString lineEmail, lineName, contactLine;
/* what name has to set here???? */
- OContactAccess m_contactdb("addressbook");
+ OContactAccess m_contactdb("opiemail");
QStringList mails;
QString pre,suf;
OContactAccess::List m_list = m_contactdb.sorted( true, 0, 0, 0 );
for ( it = m_list.begin(); it != m_list.end(); ++it ) {
if ((*it).defaultEmail().length()!=0) {
mails = (*it).emailList();
if ((*it).fileAs().length()>0) {
pre = "\""+(*it).firstName()+" "+(*it).lastName()+"\" <";
suf = ">";
} else {
pre = "";
suf = "";
}
QStringList::ConstIterator sit = mails.begin();
for (;sit!=mails.end();++sit) {
contactLine=pre+(*sit)+suf;
addressList->insertItem(contactLine);
}
}
}
if ( addressList->count() <= 0 ) {
#if 0
// makes this realy sense??
addressList->insertItem(
tr( "There are no entries in the addressbook." ) );
#endif
addressList->setEnabled( false );
okButton->setEnabled( false );
} else {
// addressList->sort();
}
}