summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-10 12:50:23 (UTC)
committer zecke <zecke>2002-09-10 12:50:23 (UTC)
commit8064c0e86eed8a48c2c7745195bf991b1d83f504 (patch) (side-by-side diff)
tree0ef65832310cfdaa49eeb7c2c94dce03f85ad785
parent9612cb91bf2a7f101e1b935f697e97d290d6c1a9 (diff)
downloadopie-8064c0e86eed8a48c2c7745195bf991b1d83f504.zip
opie-8064c0e86eed8a48c2c7745195bf991b1d83f504.tar.gz
opie-8064c0e86eed8a48c2c7745195bf991b1d83f504.tar.bz2
header fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/categories.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/backend/categories.cpp b/library/backend/categories.cpp
index e37b3b9..2e84089 100644
--- a/library/backend/categories.cpp
+++ b/library/backend/categories.cpp
@@ -1,68 +1,68 @@
/**********************************************************************
** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
**
** This file is part of the Qtopia 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.
**
**********************************************************************/
-#include <qtopia/categories.h>
+#include <qtopia/private/categories.h>
#include <qtopia/stringutil.h>
#include <qfile.h>
#include <qcstring.h>
#include <qtextstream.h>
using namespace Qtopia;
/***********************************************************
*
* CategoryGroup
*
**********************************************************/
#ifdef PALMTOPCENTER
UidGen CategoryGroup::sUidGen( UidGen::PalmtopCenter );
#else
UidGen CategoryGroup::sUidGen( UidGen::Qtopia );
#endif
/*! \class CategoryGroup categories.h
\brief Helper class that is used by Categories
CategoryGroup is a group of categories that is associated with an
application or global set. Mainly it defines a map of ids to
category labels and category labels to ids. Lookups can be done with
labels or unique idenifiers.
\ingroup qtopiaemb
\ingroup qtopiadesktop
\warning Categories API will likely change between Qtopia 1.5 and Qtopia 3
\sa Categories::appGroupMap(), Categories::globalGroup()
*/
/*! Add \a label and return the UID. If failure, then 0 is returned. Note
that All and Unfiled are reserved labels.
\internal
*/
int CategoryGroup::add( const QString &label )
{
if ( label == QObject::tr("All") || label == QObject::tr("Unfiled") )
return 0;
QMap<QString,int>::Iterator findIt = mLabelIdMap.find( label );
if ( findIt != mLabelIdMap.end() )
return 0;
int newUid = uidGen().generate();
insert( newUid, label );
return newUid;