1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is "SMS Library for the Java platform".
15 *
16 * The Initial Developer of the Original Code is Markus Eriksson.
17 * Portions created by the Initial Developer are Copyright (C) 2002
18 * the Initial Developer. All Rights Reserved.
19 *
20 * Contributor(s):
21 *
22 * ***** END LICENSE BLOCK ***** */
23 package org.marre.sms.nokia;
24
25 /***
26 * Used in NokiaMultipartMessages
27 *
28 * @author Markus Eriksson
29 * @version $Id: NokiaPart.java,v 1.2 2002/07/11 20:47:45 c95men Exp $
30 */
31 class NokiaPart
32 {
33 static final byte ITEM_TEXT_ISO_8859_1 = 0x00;
34 static final byte ITEM_TEXT_UNICODE = 0x01;
35 static final byte ITEM_OTA_BITMAP = 0x02;
36 static final byte ITEM_RINGTONE = 0x03;
37 static final byte ITEM_PROFILE_NAME = 0x04;
38 static final byte ITEM_SCREEN_SAVER = 0x06;
39
40 private byte myItemType;
41 private byte[] myData;
42
43 /***
44 *
45 * @param theItemType
46 * @param data
47 */
48 NokiaPart(byte theItemType, byte[] data)
49 {
50 myItemType = theItemType;
51 myData = data;
52 }
53
54 /***
55 *
56 * @return
57 */
58 byte getItemType()
59 {
60 return myItemType;
61 }
62
63 /***
64 *
65 * @return
66 */
67 byte[] getData()
68 {
69 return myData;
70 }
71 }