Diffstat (limited to 'core/pim/addressbook/abtable.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp index 70330c7..f7bff58 100644 --- a/core/pim/addressbook/abtable.cpp +++ b/core/pim/addressbook/abtable.cpp | |||
@@ -1,84 +1,75 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** Copyright (c) 2002 Stefan Eilers (eilers.stefan@epost.de) | 3 | ** Copyright (c) 2002 Stefan Eilers (eilers.stefan@epost.de) |
4 | ** | 4 | ** |
5 | ** This file is part of Qt Palmtop Environment. | 5 | ** This file is part of Qt Palmtop Environment. |
6 | ** | 6 | ** |
7 | ** This file may be distributed and/or modified under the terms of the | 7 | ** This file may be distributed and/or modified under the terms of the |
8 | ** GNU General Public License version 2 as published by the Free Software | 8 | ** GNU General Public License version 2 as published by the Free Software |
9 | ** Foundation and appearing in the file LICENSE.GPL included in the | 9 | ** Foundation and appearing in the file LICENSE.GPL included in the |
10 | ** packaging of this file. | 10 | ** packaging of this file. |
11 | ** | 11 | ** |
12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
14 | ** | 14 | ** |
15 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 15 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
16 | ** | 16 | ** |
17 | ** Contact info@trolltech.com if any conditions of this licensing are | 17 | ** Contact info@trolltech.com if any conditions of this licensing are |
18 | ** not clear to you. | 18 | ** not clear to you. |
19 | ** | 19 | ** |
20 | **********************************************************************/ | 20 | **********************************************************************/ |
21 | 21 | ||
22 | 22 | ||
23 | #include <qpe/categoryselect.h> | ||
24 | #include <qpe/config.h> | ||
25 | #include <qpe/stringutil.h> | ||
26 | #include <qpe/qcopenvelope_qws.h> | ||
27 | #include <qpe/timestring.h> | 23 | #include <qpe/timestring.h> |
28 | #include <qpe/resource.h> | 24 | #include <qpe/resource.h> |
29 | 25 | ||
30 | #include <opie/orecordlist.h> | 26 | #include <opie/orecordlist.h> |
31 | 27 | ||
32 | #include <qasciidict.h> | ||
33 | #include <qdatetime.h> | ||
34 | #include <qfile.h> | ||
35 | #include <qregexp.h> | ||
36 | #include <qmessagebox.h> | ||
37 | 28 | ||
38 | #include "abtable.h" | 29 | #include "abtable.h" |
39 | 30 | ||
40 | #include <errno.h> | 31 | #include <errno.h> |
41 | #include <fcntl.h> | 32 | #include <fcntl.h> |
42 | #include <unistd.h> | 33 | #include <unistd.h> |
43 | #include <stdlib.h> | 34 | #include <stdlib.h> |
44 | 35 | ||
45 | #include <ctype.h> //toupper() for key hack | 36 | #include <ctype.h> //toupper() for key hack |
46 | 37 | ||
47 | #if 0 | 38 | #if 0 |
48 | 39 | ||
49 | /*! | 40 | /*! |
50 | \class AbTableItem abtable.h | 41 | \class AbTableItem abtable.h |
51 | 42 | ||
52 | \brief QTableItem based class for showing a field of an entry | 43 | \brief QTableItem based class for showing a field of an entry |
53 | */ | 44 | */ |
54 | 45 | ||
55 | AbTableItem::AbTableItem( QTable *t, EditType et, const QString &s, | 46 | AbTableItem::AbTableItem( QTable *t, EditType et, const QString &s, |
56 | const QString &secondSortKey) | 47 | const QString &secondSortKey) |
57 | : QTableItem( t, et, s ) | 48 | : QTableItem( t, et, s ) |
58 | { | 49 | { |
59 | // sortKey = s.lower() + QChar( '\0' ) + secondSortKey.lower(); | 50 | // sortKey = s.lower() + QChar( '\0' ) + secondSortKey.lower(); |
60 | sortKey = Qtopia::buildSortKey( s, secondSortKey ); | 51 | sortKey = Qtopia::buildSortKey( s, secondSortKey ); |
61 | } | 52 | } |
62 | 53 | ||
63 | int AbTableItem::alignment() const | 54 | int AbTableItem::alignment() const |
64 | { | 55 | { |
65 | return AlignLeft|AlignVCenter; | 56 | return AlignLeft|AlignVCenter; |
66 | } | 57 | } |
67 | 58 | ||
68 | QString AbTableItem::key() const | 59 | QString AbTableItem::key() const |
69 | { | 60 | { |
70 | return sortKey; | 61 | return sortKey; |
71 | } | 62 | } |
72 | 63 | ||
73 | // A way to reset the item, without out doing a delete or a new... | 64 | // A way to reset the item, without out doing a delete or a new... |
74 | void AbTableItem::setItem( const QString &txt, const QString &secondKey ) | 65 | void AbTableItem::setItem( const QString &txt, const QString &secondKey ) |
75 | { | 66 | { |
76 | setText( txt ); | 67 | setText( txt ); |
77 | sortKey = Qtopia::buildSortKey( txt, secondKey ); | 68 | sortKey = Qtopia::buildSortKey( txt, secondKey ); |
78 | 69 | ||
79 | // sortKey = txt.lower() + QChar( '\0' ) + secondKey.lower(); | 70 | // sortKey = txt.lower() + QChar( '\0' ) + secondKey.lower(); |
80 | } | 71 | } |
81 | 72 | ||
82 | /*! | 73 | /*! |
83 | \class AbPickItem abtable.h | 74 | \class AbPickItem abtable.h |
84 | 75 | ||