summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2002-05-09 10:59:41 (UTC)
committer dwmw2 <dwmw2>2002-05-09 10:59:41 (UTC)
commitc094cc02af3a6b3f1aaec5ee8de6d377da9b8fe1 (patch) (side-by-side diff)
tree175282ff017c4a7f3503d78268eddd1d7b7349ca
parenta6c915bbd6d77e9c10da9358e381ce03ac9fe5fc (diff)
downloadopie-c094cc02af3a6b3f1aaec5ee8de6d377da9b8fe1.zip
opie-c094cc02af3a6b3f1aaec5ee8de6d377da9b8fe1.tar.gz
opie-c094cc02af3a6b3f1aaec5ee8de6d377da9b8fe1.tar.bz2
#include <qregexp.h>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abtable.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp
index 124ff6c..e9e6a0b 100644
--- a/core/pim/addressbook/abtable.cpp
+++ b/core/pim/addressbook/abtable.cpp
@@ -1,78 +1,79 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
** This file is part of Qt Palmtop Environment.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#define QTOPIA_INTERNAL_CONTACT_MRE
#include <qpe/categoryselect.h>
#include <qpe/config.h>
#include <qpe/stringutil.h>
#include <qpe/qcopenvelope_qws.h>
#include <qasciidict.h>
#include <qdatetime.h>
#include <qfile.h>
+#include <qregexp.h>
#include "abtable.h"
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <ctype.h> //toupper() for key hack
static bool contactCompare( const Contact &cnt, const QRegExp &r, int category );
//### qtmail/addresslist.cpp hardcodes this filename as well
static QString journalFileName()
{
QString str = getenv("HOME");
str +="/.abjournal";
return str;
}
/*!
\class AbTableItem abtable.h
\brief QTableItem based class for showing a field of an entry
*/
AbTableItem::AbTableItem( QTable *t, EditType et, const QString &s,
const QString &secondSortKey)
: QTableItem( t, et, s )
{
// sortKey = s.lower() + QChar( '\0' ) + secondSortKey.lower();
sortKey = Qtopia::buildSortKey( s, secondSortKey );
}
int AbTableItem::alignment() const
{
return AlignLeft|AlignVCenter;
}
QString AbTableItem::key() const
{
return sortKey;
}
// A way to reset the item, without out doing a delete or a new...
void AbTableItem::setItem( const QString &txt, const QString &secondKey )