summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/addresspicker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/mail/addresspicker.cpp b/noncore/net/mail/addresspicker.cpp
index 8cdabde..35f9cd4 100644
--- a/noncore/net/mail/addresspicker.cpp
+++ b/noncore/net/mail/addresspicker.cpp
@@ -1,48 +1,48 @@
1 1
2#include "composemail.h" 2#include "composemail.h"
3 3
4/* OPIE */ 4/* OPIE */
5#include <opie2/ocontactaccess.h> 5#include <opie2/ocontactaccess.h>
6#include <opie2/ocontact.h> 6#include <opie2/opimcontact.h>
7#include <qpe/resource.h> 7#include <qpe/resource.h>
8#include <qpe/qpeapplication.h> 8#include <qpe/qpeapplication.h>
9 9
10/* QT */ 10/* QT */
11#include <qpushbutton.h> 11#include <qpushbutton.h>
12#include <qmessagebox.h> 12#include <qmessagebox.h>
13#include <qtextstream.h> 13#include <qtextstream.h>
14#include <qlistbox.h> 14#include <qlistbox.h>
15#include <qfile.h> 15#include <qfile.h>
16 16
17/* STD */ 17/* STD */
18#include <stdlib.h> 18#include <stdlib.h>
19 19
20AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFlags flags ) 20AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFlags flags )
21 : AddressPickerUI( parent, name, modal, flags ) 21 : AddressPickerUI( parent, name, modal, flags )
22{ 22{
23 okButton->setIconSet( Resource::loadPixmap( "enter" ) ); 23 okButton->setIconSet( Resource::loadPixmap( "enter" ) );
24 cancelButton->setIconSet( Resource::loadPixmap( "editdelete" ) ); 24 cancelButton->setIconSet( Resource::loadPixmap( "editdelete" ) );
25 25
26 connect(okButton, SIGNAL(clicked()), SLOT(accept())); 26 connect(okButton, SIGNAL(clicked()), SLOT(accept()));
27 connect(cancelButton, SIGNAL(clicked()), SLOT(close())); 27 connect(cancelButton, SIGNAL(clicked()), SLOT(close()));
28 Opie::OContactAccess::List::Iterator it; 28 Opie::OPimContactAccess::List::Iterator it;
29 29
30 QString lineEmail, lineName, contactLine; 30 QString lineEmail, lineName, contactLine;
31 /* what name has to set here???? */ 31 /* what name has to set here???? */
32 Opie::OContactAccess m_contactdb("opiemail"); 32 Opie::OPimContactAccess m_contactdb("opiemail");
33 33
34 QStringList mails; 34 QStringList mails;
35 QString pre,suf; 35 QString pre,suf;
36 Opie::OContactAccess::List m_list = m_contactdb.sorted( true, 0, 0, 0 ); 36 Opie::OPimContactAccess::List m_list = m_contactdb.sorted( true, 0, 0, 0 );
37 for ( it = m_list.begin(); it != m_list.end(); ++it ) 37 for ( it = m_list.begin(); it != m_list.end(); ++it )
38 { 38 {
39 if ((*it).defaultEmail().length()!=0) 39 if ((*it).defaultEmail().length()!=0)
40 { 40 {
41 mails = (*it).emailList(); 41 mails = (*it).emailList();
42 if ((*it).fileAs().length()>0) 42 if ((*it).fileAs().length()>0)
43 { 43 {
44 pre = "\""+(*it).firstName()+" "+(*it).lastName()+"\" <"; 44 pre = "\""+(*it).firstName()+" "+(*it).lastName()+"\" <";
45 suf = ">"; 45 suf = ">";
46 } 46 }
47 else 47 else
48 { 48 {