001: /*
002: *
003: *
004: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
005: * Reserved. Use is subject to license terms.
006: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public License version
010: * 2 only, as published by the Free Software Foundation.
011: *
012: * This program is distributed in the hope that it will be useful, but
013: * WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * General Public License version 2 for more details (a copy is
016: * included at /legal/license.txt).
017: *
018: * You should have received a copy of the GNU General Public License
019: * version 2 along with this work; if not, write to the Free Software
020: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
021: * 02110-1301 USA
022: *
023: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
024: * Clara, CA 95054 or visit www.sun.com if you need additional
025: * information or have any questions.
026: */
027:
028: /*
029: * Copyright (C) 2002-2003 PalmSource, Inc. All Rights Reserved.
030: */
031:
032: package javax.microedition.pim;
033:
034: /**
035: * This class is defined by the JSR-75 specification
036: * <em>PDA Optional Packages for the J2ME™ Platform</em>
037: */
038: // JAVADOC COMMENT ELIDED
039: public interface Contact extends PIMItem {
040: // JAVADOC COMMENT ELIDED
041: public static final int ADDR = 100;
042: // JAVADOC COMMENT ELIDED
043: public static final int BIRTHDAY = 101;
044: // JAVADOC COMMENT ELIDED
045: public static final int CLASS = 102;
046: // JAVADOC COMMENT ELIDED
047: public static final int EMAIL = 103;
048: // JAVADOC COMMENT ELIDED
049: public static final int FORMATTED_ADDR = 104;
050: // JAVADOC COMMENT ELIDED
051: public static final int FORMATTED_NAME = 105;
052: // JAVADOC COMMENT ELIDED
053: public static final int NAME = 106;
054: // JAVADOC COMMENT ELIDED
055: public static final int NICKNAME = 107;
056: // JAVADOC COMMENT ELIDED
057: public static final int NOTE = 108;
058: // JAVADOC COMMENT ELIDED
059: public static final int ORG = 109;
060: // JAVADOC COMMENT ELIDED
061: public static final int PHOTO = 110;
062: // JAVADOC COMMENT ELIDED
063: public static final int PHOTO_URL = 111;
064: // JAVADOC COMMENT ELIDED
065: public static final int PUBLIC_KEY = 112;
066: // JAVADOC COMMENT ELIDED
067: public static final int PUBLIC_KEY_STRING = 113;
068: // JAVADOC COMMENT ELIDED
069: public static final int REVISION = 114;
070: // JAVADOC COMMENT ELIDED
071: public static final int TEL = 115;
072: // JAVADOC COMMENT ELIDED
073: public static final int TITLE = 116;
074: // JAVADOC COMMENT ELIDED
075: public static final int UID = 117;
076: // JAVADOC COMMENT ELIDED
077: public static final int URL = 118;
078: // JAVADOC COMMENT ELIDED
079: public static final int ATTR_ASST = 1;
080: // JAVADOC COMMENT ELIDED
081: public static final int ATTR_AUTO = 2;
082: // JAVADOC COMMENT ELIDED
083: public static final int ATTR_FAX = 4;
084: // JAVADOC COMMENT ELIDED
085: public static final int ATTR_HOME = 8;
086: // JAVADOC COMMENT ELIDED
087: public static final int ATTR_MOBILE = 16;
088: // JAVADOC COMMENT ELIDED
089: public static final int ATTR_OTHER = 32;
090: // JAVADOC COMMENT ELIDED
091: public static final int ATTR_PAGER = 64;
092: // JAVADOC COMMENT ELIDED
093: public static final int ATTR_PREFERRED = 128;
094: // JAVADOC COMMENT ELIDED
095: public static final int ATTR_SMS = 256;
096: // JAVADOC COMMENT ELIDED
097: public static final int ATTR_WORK = 512;
098: // JAVADOC COMMENT ELIDED
099: public static final int ADDR_POBOX = 0;
100: // JAVADOC COMMENT ELIDED
101: public static final int ADDR_EXTRA = 1;
102: // JAVADOC COMMENT ELIDED
103: public static final int ADDR_STREET = 2;
104: // JAVADOC COMMENT ELIDED
105: public static final int ADDR_LOCALITY = 3;
106: // JAVADOC COMMENT ELIDED
107: public static final int ADDR_REGION = 4;
108: // JAVADOC COMMENT ELIDED
109: public static final int ADDR_POSTALCODE = 5;
110: // JAVADOC COMMENT ELIDED
111: public static final int ADDR_COUNTRY = 6;
112: // JAVADOC COMMENT ELIDED
113: public static final int NAME_FAMILY = 0;
114: // JAVADOC COMMENT ELIDED
115: public static final int NAME_GIVEN = 1;
116: // JAVADOC COMMENT ELIDED
117: public static final int NAME_OTHER = 2;
118: // JAVADOC COMMENT ELIDED
119: public static final int NAME_PREFIX = 3;
120: // JAVADOC COMMENT ELIDED
121: public static final int NAME_SUFFIX = 4;
122: // JAVADOC COMMENT ELIDED
123: public static final int CLASS_CONFIDENTIAL = 200;
124: // JAVADOC COMMENT ELIDED
125: public static final int CLASS_PRIVATE = 201;
126: // JAVADOC COMMENT ELIDED
127: public static final int CLASS_PUBLIC = 202;
128:
129: // JAVADOC COMMENT ELIDED
130: public int getPreferredIndex(int field);
131: }
|