com.nokia.mid.pim
Class SocialPIM

java.lang.Object
  extended by com.nokia.mid.pim.SocialPIM

public final class SocialPIM
extends java.lang.Object

This class contains extensions to the JSR75 PIM.


Field Summary
static int MAX_LIST_COUNT_FOR_EACH_TYPE_PER_SUITE
          Max list count for each pim list type per suite
static int MAX_MIME_LENGTH
          Max MIME length
 
Constructor Summary
SocialPIM()
           
 
Method Summary
static void createSocialPIMList(int pimListType, java.lang.String mime)
           create a social pim list with mime as unified id of the list.
After creating, PIM.getInstance().openPIMList() can be used to open the list.
The items stored to this list are not visible to other MIDlets.
When the MIDlet is removed from the system, the items contained by the lists opened by it will be automatically removed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_LIST_COUNT_FOR_EACH_TYPE_PER_SUITE

public static final int MAX_LIST_COUNT_FOR_EACH_TYPE_PER_SUITE
Max list count for each pim list type per suite

See Also:
Constant Field Values

MAX_MIME_LENGTH

public static final int MAX_MIME_LENGTH
Max MIME length

See Also:
Constant Field Values
Constructor Detail

SocialPIM

public SocialPIM()
Method Detail

createSocialPIMList

public static void createSocialPIMList(int pimListType,
                                       java.lang.String mime)
                                throws SocialPIMException

create a social pim list with mime as unified id of the list.
After creating, PIM.getInstance().openPIMList() can be used to open the list.
The items stored to this list are not visible to other MIDlets.
When the MIDlet is removed from the system, the items contained by the lists opened by it will be automatically removed.

Example code:
SocialPIM.createSocialPIMList(PIM.CONTACT_LIST, mime);
SocialContactList scList = (SocialContactList)PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE, mime);

Parameters:
pimListType - type of the list to be created (only ContactList type supported)
mime - the MIME type of the list that is used to identify this particular list. The MIDlet developer should take care that the MIME type used to identify the list is unique, because that is used when linking back to the MIDlet from the rest of the system using JSR 211 invocations. The developer should also do appropriate JSR 211 registrations so that the system can invoke this MIDlet. Platform will not check the content of mime, but will check the length of mime. If the duplicated mime in one suite happens, just ignore the request, no error will be reported.
Throws:
javax.microedition.pim.PIMException - If too many pim lists for one suite has been created or if system pim list resource is run out.
java.lang.SecurityException - If the application is not given permission for read/write.
java.lang.IllegalArgumentException - If mime is null or if mime exceeds MAX_MIME_LENGTH or if pimListType is not a valid PIM list type.
SocialPIMException


Copyright © 2012 Nokia Corporation. All rights reserved.

Nokia is registered trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. Other product and company names mentioned herein may be trademarks or trade names of their respective owners. This document is confidential information of Nokia Corporation.

Disclaimer
The information in this document is provided "as is," with no warranties whatsoever, including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification, or sample. Furthermore, information provided in this document is preliminary, and may be changed substantially prior to final release.

Nokia Corporation disclaims all liability, including liability for infringement of any proprietary rights, relating to this document and implementation of any information presented in this document.

Nokia Corporation retains the right to make changes to this document at any time, without notice.

License
Subject to above disclaimer, a license is hereby granted to use this documentation solely under existing Limited License Agreement and non-disclosure agreement between the companies for the agreed application development for Series 40 Nokia phones. No other licenses e.g. to any intellectual property rights are granted herein. Any use of the screen shots of this documentation, including any icons thereof, is subject to Nokia's prior written approval.