001: /*
002: *
003: *
004: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
005: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
006: *
007: * This program is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU General Public License version
009: * 2 only, as published by the Free Software Foundation.
010: *
011: * This program is distributed in the hope that it will be useful, but
012: * WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * General Public License version 2 for more details (a copy is
015: * included at /legal/license.txt).
016: *
017: * You should have received a copy of the GNU General Public License
018: * version 2 along with this work; if not, write to the Free Software
019: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA
021: *
022: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
023: * Clara, CA 95054 or visit www.sun.com if you need additional
024: * information or have any questions.
025: */
026:
027: package com.sun.kvem.midp.pim;
028:
029: /**
030: * Index of supported PIM fields and their descriptors.
031: */
032: public class SupportedPIMFields {
033: /** List of supported fields for CONTACT type. */
034: public static final PIMFieldDescriptor[] CONTACT_LIST_FIELDS = {
035: new PIMFieldDescriptor(Contact.NAME, PIMItem.STRING_ARRAY,
036: false, null, "PIM.ContactList.Name", new String[] {
037: "PIM.ContactList.Name.0",
038: "PIM.ContactList.Name.1",
039: "PIM.ContactList.Name.2",
040: "PIM.ContactList.Name.3",
041: "PIM.ContactList.Name.4", }, 0L, -1),
042: new PIMFieldDescriptor(Contact.ADDR, PIMItem.STRING_ARRAY,
043: false, null, "PIM.ContactList.Addr", new String[] {
044: "PIM.ContactList.Addr.0",
045: "PIM.ContactList.Addr.1",
046: "PIM.ContactList.Addr.2",
047: "PIM.ContactList.Addr.3",
048: "PIM.ContactList.Addr.4",
049: "PIM.ContactList.Addr.5",
050: "PIM.ContactList.Addr.6" }, 0x2a8, -1),
051: new PIMFieldDescriptor(Contact.EMAIL, PIMItem.STRING,
052: false, null, "PIM.ContactList.Email", 0x2a8, -1),
053: new PIMFieldDescriptor(Contact.FORMATTED_NAME,
054: PIMItem.STRING, false, null,
055: "PIM.ContactList.FormattedName", 0L, -1),
056: new PIMFieldDescriptor(Contact.FORMATTED_ADDR,
057: PIMItem.STRING, false, null,
058: "PIM.ContactList.FormattedAddr", 0x2a8, -1),
059: new PIMFieldDescriptor(Contact.NICKNAME, PIMItem.STRING,
060: false, null, "PIM.ContactList.Nickname", 0L, -1),
061: new PIMFieldDescriptor(Contact.NOTE, PIMItem.STRING, false,
062: null, "PIM.ContactList.Note", 0L, -1),
063: new PIMFieldDescriptor(Contact.ORG, PIMItem.STRING, false,
064: null, "PIM.ContactList.Org", 0L, -1),
065: new PIMFieldDescriptor(Contact.TEL, PIMItem.STRING, false,
066: null, "PIM.ContactList.Tel", 0x3ff, -1),
067: new PIMFieldDescriptor(Contact.TITLE, PIMItem.STRING,
068: false, null, "PIM.ContactList.Title", 0L, -1),
069: new PIMFieldDescriptor(Contact.UID, PIMItem.STRING, false,
070: null, "PIM.ContactList.UID", 0L, -1),
071: new PIMFieldDescriptor(Contact.BIRTHDAY, PIMItem.DATE,
072: false, null, "PIM.ContactList.Birthday", 0L, -1),
073: new PIMFieldDescriptor(Contact.REVISION, PIMItem.DATE,
074: false, null, "PIM.ContactList.Revision", 0L, 1),
075: new PIMFieldDescriptor(Contact.PHOTO, PIMItem.BINARY,
076: false, null, "PIM.ContactList.Photo", 0L, -1),
077: new PIMFieldDescriptor(Contact.CLASS, PIMItem.INT, false,
078: null, "PIM.ContactList.Class", 0L, -1),
079: new PIMFieldDescriptor(Contact.PUBLIC_KEY, PIMItem.BINARY,
080: false, null, "PIM.ContactList.PublicKey", 0L, -1),
081: new PIMFieldDescriptor(Contact.PUBLIC_KEY_STRING,
082: PIMItem.STRING, false, null,
083: "PIM.ContactList.PublicKeyString", 0L, -1),
084: new PIMFieldDescriptor(Contact.URL, PIMItem.STRING, false,
085: null, "PIM.ContactList.URL", 0L, -1) };
086:
087: /** List of supported fields for EVENT type. */
088: public static final PIMFieldDescriptor[] EVENT_LIST_FIELDS = {
089: new PIMFieldDescriptor(Event.LOCATION, PIMItem.STRING,
090: false, null, "PIM.EventList.Location", 0L, -1),
091: new PIMFieldDescriptor(Event.NOTE, PIMItem.STRING, false,
092: null, "PIM.EventList.Note", 0L, -1),
093: new PIMFieldDescriptor(Event.SUMMARY, PIMItem.STRING,
094: false, null, "PIM.EventList.Summary", 0L, -1),
095: new PIMFieldDescriptor(Event.UID, PIMItem.STRING, false,
096: null, "PIM.EventList.UID", 0L, -1),
097: new PIMFieldDescriptor(Event.END, PIMItem.DATE, false,
098: null, "PIM.EventList.End", 0L, -1),
099: new PIMFieldDescriptor(Event.REVISION, PIMItem.DATE, false,
100: null, "PIM.EventList.Revision", 0L, 1),
101: new PIMFieldDescriptor(Event.START, PIMItem.DATE, false,
102: null, "PIM.EventList.Start", 0L, -1),
103: new PIMFieldDescriptor(Event.ALARM, PIMItem.INT, false,
104: null, "PIM.EventList.Alarm", 0L, -1),
105: new PIMFieldDescriptor(Event.CLASS, PIMItem.INT, false,
106: null, "PIM.EventList.Class", 0L, -1) };
107:
108: /** List of supported fields for ToDo type. */
109: public static final PIMFieldDescriptor[] TODO_LIST_FIELDS = {
110: new PIMFieldDescriptor(ToDo.NOTE, PIMItem.STRING, false,
111: null, "PIM.ToDoList.Note", 0L, -1),
112: new PIMFieldDescriptor(ToDo.SUMMARY, PIMItem.STRING, false,
113: null, "PIM.ToDoList.Summary", 0L, -1),
114: new PIMFieldDescriptor(ToDo.UID, PIMItem.STRING, false,
115: null, "PIM.ToDoList.UID", 0L, -1),
116: new PIMFieldDescriptor(ToDo.CLASS, PIMItem.INT, false,
117: null, "PIM.ToDoList.Class", 0L, -1),
118: new PIMFieldDescriptor(ToDo.PRIORITY, PIMItem.INT, false,
119: null, "PIM.ToDoList.Priority", 0L, -1),
120: new PIMFieldDescriptor(ToDo.COMPLETION_DATE, PIMItem.DATE,
121: false, null, "PIM.ToDoList.CompletionDate", 0L, -1),
122: new PIMFieldDescriptor(ToDo.DUE, PIMItem.DATE, false, null,
123: "PIM.ToDoList.Due", 0L, -1),
124: new PIMFieldDescriptor(ToDo.REVISION, PIMItem.DATE, false,
125: null, "PIM.ToDoList.Revision", 0L, 1),
126: new PIMFieldDescriptor(ToDo.COMPLETED, PIMItem.BOOLEAN,
127: false, null, "PIM.ToDoList.Completed", 0L, -1) };
128: }
|