From 15318cad33835e4e2dc620d033e43cd930676cdd Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 25 Jan 2002 22:14:26 +0000 Subject: Initial revision --- (limited to 'library/backend/recordfields.h') diff --git a/library/backend/recordfields.h b/library/backend/recordfields.h new file mode 100644 index 0000000..3cddde2 --- a/dev/null +++ b/library/backend/recordfields.h @@ -0,0 +1,135 @@ +/********************************************************************** +** Copyright (C) 2000 Trolltech AS. All rights reserved. +** +** This file is part of Qtopia Environment. +** +** Licensees holding valid Qtopia Developer license may use this +** file in accordance with the Qtopia Developer License Agreement +** provided with the Software. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING +** THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +** PURPOSE. +** +** email sales@trolltech.com for information about Qtopia License +** Agreements. +** +** Contact info@trolltech.com if any conditions of this licensing are +** not clear to you. +** +**********************************************************************/ +#ifndef QPC_RECORD_FIELDS_H +#define QPC_RECORD_FIELDS_H +#include "qpcglobal.h" + +// dataset = "addressbook" +namespace Qtopia +{ + static const int UID_ID = 0; + static const int CATEGORY_ID = 1; + + enum AddressBookFields { + AddressUid = UID_ID, + AddressCategory = CATEGORY_ID, + + Title, + FirstName, + MiddleName, + LastName, + Suffix, + FileAs, + + // email + DefaultEmail, + Emails, + + // home + HomeStreet, + HomeCity, + HomeState, + HomeZip, + HomeCountry, + HomePhone, + HomeFax, + HomeMobile, + HomeWebPage, + + // business + Company, + BusinessStreet, + BusinessCity, + BusinessState, + BusinessZip, + BusinessCountry, + BusinessWebPage, + JobTitle, + Department, + Office, + BusinessPhone, + BusinessFax, + BusinessMobile, + BusinessPager, + Profession, + Assistant, + Manager, + + //personal + Spouse, + Gender, + Birthday, + Anniversary, + Nickname, + Children, + + // other + Notes, + Groups + }; + + // dataset = "todolist" + enum TaskFields { + TaskUid = UID_ID, + TaskCategory = CATEGORY_ID, + + HasDate, + Completed, + TaskDescription, + Priority, + Date + }; + + // dataset = "categories" for todos + enum CategoryFields { + CatUid = UID_ID, + CatName, + CatAppGroup + }; + + +// dataset = "datebook" + enum DatebookFields { + DatebookUid = UID_ID, + DatebookCategory = CATEGORY_ID, + + DatebookDescription, + Location, + TimeZone, + Note, + StartDateTime, + EndDateTime, + DatebookType, + HasAlarm, + SoundType, + AlarmTime, + + RepeatPatternType, + RepeatPatternFrequency, + RepeatPatternPosition, + RepeatPatternDays, + RepeatPatternHasEndDate, + RepeatPatternEndDate, + }; +}; + + +#endif -- cgit v0.9.0.2