author | ulf69 <ulf69> | 2004-08-10 22:45:28 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-10 22:45:28 (UTC) |
commit | dc81e96e29f619c6eb32c3ed18ff45b789c8504e (patch) (unidiff) | |
tree | d38533c6630ec6246abbb6c726ae3da0605021a7 | |
parent | 9542b37886f0f70049696c2b65382b1d68caeff0 (diff) | |
download | kdepimpi-dc81e96e29f619c6eb32c3ed18ff45b789c8504e.zip kdepimpi-dc81e96e29f619c6eb32c3ed18ff45b789c8504e.tar.gz kdepimpi-dc81e96e29f619c6eb32c3ed18ff45b789c8504e.tar.bz2 |
enabled the collecting of emailadresses for the purpouse of sending emails
-rw-r--r-- | kaddressbook/kaddressbookview.cpp | 58 |
1 files changed, 26 insertions, 32 deletions
diff --git a/kaddressbook/kaddressbookview.cpp b/kaddressbook/kaddressbookview.cpp index a44fd82..da28870 100644 --- a/kaddressbook/kaddressbookview.cpp +++ b/kaddressbook/kaddressbookview.cpp | |||
@@ -1,23 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KAddressBook. | 2 | This file is part of KAddressBook. |
3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
@@ -35,2 +35,3 @@ | |||
35 | 35 | ||
36 | #include <kabc/distributionlistdialog.h> | ||
36 | #include <kabc/addressbook.h> | 37 | #include <kabc/addressbook.h> |
@@ -71,4 +72,2 @@ QString KAddressBookView::selectedEmails() | |||
71 | { | 72 | { |
72 | #ifndef KAB_EMBEDDED | ||
73 | |||
74 | bool first = true; | 73 | bool first = true; |
@@ -78,3 +77,3 @@ QString KAddressBookView::selectedEmails() | |||
78 | QString email; | 77 | QString email; |
79 | 78 | ||
80 | QStringList::Iterator it; | 79 | QStringList::Iterator it; |
@@ -82,3 +81,3 @@ QString KAddressBookView::selectedEmails() | |||
82 | addr = mAddressBook->findByUid( *it ); | 81 | addr = mAddressBook->findByUid( *it ); |
83 | 82 | ||
84 | if ( !addr.isEmpty() ) { | 83 | if ( !addr.isEmpty() ) { |
@@ -90,3 +89,3 @@ QString KAddressBookView::selectedEmails() | |||
90 | email = addr.fullEmail( m ); | 89 | email = addr.fullEmail( m ); |
91 | 90 | ||
92 | if ( !first ) | 91 | if ( !first ) |
@@ -95,3 +94,3 @@ QString KAddressBookView::selectedEmails() | |||
95 | first = false; | 94 | first = false; |
96 | 95 | ||
97 | emailAddrs += email; | 96 | emailAddrs += email; |
@@ -99,9 +98,4 @@ QString KAddressBookView::selectedEmails() | |||
99 | } | 98 | } |
100 | 99 | ||
101 | return emailAddrs; | 100 | return emailAddrs; |
102 | #else //KAB_EMBEDDED | ||
103 | qDebug("KAddressBookView::selectedEmails() update method"); | ||
104 | return 0; | ||
105 | #endif //KAB_EMBEDDED | ||
106 | |||
107 | } | 101 | } |
@@ -125,3 +119,3 @@ void KAddressBookView::initGUI() | |||
125 | QVBoxLayout *layout = new QVBoxLayout( this ); | 119 | QVBoxLayout *layout = new QVBoxLayout( this ); |
126 | 120 | ||
127 | // Add the view widget | 121 | // Add the view widget |
@@ -150,3 +144,3 @@ const QString &KAddressBookView::defaultFilterName() const | |||
150 | } | 144 | } |
151 | 145 | ||
152 | KABC::AddressBook *KAddressBookView::addressBook() const | 146 | KABC::AddressBook *KAddressBookView::addressBook() const |