Diffstat (limited to 'noncore/net/mail/addresspicker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/addresspicker.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/net/mail/addresspicker.cpp b/noncore/net/mail/addresspicker.cpp index 35f9cd4..50c82e5 100644 --- a/noncore/net/mail/addresspicker.cpp +++ b/noncore/net/mail/addresspicker.cpp | |||
@@ -1,39 +1,37 @@ | |||
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/opimcontact.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> | ||
14 | #include <qlistbox.h> | 13 | #include <qlistbox.h> |
15 | #include <qfile.h> | ||
16 | 14 | ||
17 | /* STD */ | 15 | /* STD */ |
18 | #include <stdlib.h> | 16 | #include <stdlib.h> |
19 | 17 | ||
20 | AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFlags flags ) | 18 | AddressPicker::AddressPicker( QWidget *parent, const char *name, bool modal, WFlags flags ) |
21 | : AddressPickerUI( parent, name, modal, flags ) | 19 | : AddressPickerUI( parent, name, modal, flags ) |
22 | { | 20 | { |
23 | okButton->setIconSet( Resource::loadPixmap( "enter" ) ); | 21 | okButton->setIconSet( Resource::loadPixmap( "enter" ) ); |
24 | cancelButton->setIconSet( Resource::loadPixmap( "editdelete" ) ); | 22 | cancelButton->setIconSet( Resource::loadPixmap( "editdelete" ) ); |
25 | 23 | ||
26 | connect(okButton, SIGNAL(clicked()), SLOT(accept())); | 24 | connect(okButton, SIGNAL(clicked()), SLOT(accept())); |
27 | connect(cancelButton, SIGNAL(clicked()), SLOT(close())); | 25 | connect(cancelButton, SIGNAL(clicked()), SLOT(close())); |
28 | Opie::OPimContactAccess::List::Iterator it; | 26 | Opie::OPimContactAccess::List::Iterator it; |
29 | 27 | ||
30 | QString lineEmail, lineName, contactLine; | 28 | QString lineEmail, lineName, contactLine; |
31 | /* what name has to set here???? */ | 29 | /* what name has to set here???? */ |
32 | Opie::OPimContactAccess m_contactdb("opiemail"); | 30 | Opie::OPimContactAccess m_contactdb("opiemail"); |
33 | 31 | ||
34 | QStringList mails; | 32 | QStringList mails; |
35 | QString pre,suf; | 33 | QString pre,suf; |
36 | Opie::OPimContactAccess::List m_list = m_contactdb.sorted( true, 0, 0, 0 ); | 34 | Opie::OPimContactAccess::List m_list = m_contactdb.sorted( true, 0, 0, 0 ); |
37 | for ( it = m_list.begin(); it != m_list.end(); ++it ) | 35 | for ( it = m_list.begin(); it != m_list.end(); ++it ) |
38 | { | 36 | { |
39 | if ((*it).defaultEmail().length()!=0) | 37 | if ((*it).defaultEmail().length()!=0) |