/********************************************************************************* * TotalCross Software Development Kit * * Copyright (C) 2003 Fabian Kroeher * * Copyright (C) 2003-2012 SuperWaba Ltda. * * All Rights Reserved * * * * This library and virtual machine is distributed in the hope that it will * * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * * * This file is covered by the GNU LESSER GENERAL PUBLIC LICENSE VERSION 3.0 * * A copy of this license is located in file license.txt at the root of this * * SDK or can be downloaded here: * * http://www.gnu.org/licenses/lgpl-3.0.txt * * * *********************************************************************************/ package totalcross.pim.ce.builtin; /** * represents a collection of IContacs * @author Fabian Kroeher (fabian@kroeher.net) * */ public class IContacts extends IObjects { /** * create a new instance of IContacts and fills it with newly created instances * of IAppointment which are generated by reading out the native String which comes * from CeIoBuiltIn.dll by calling the superclass constructor of IObjects * @param nativeString the native String (as StringExt) from CeIoBuiltIn.dll */ public IContacts(StringExt nativeString) { super(nativeString); } /* (non-Javadoc) * @see pimal.pocketpc.builtin.IObjects#newObject(pimal.pocketpc.builtin.StringExt) */ public IObject newObject(StringExt nativeString) { return new IContact(nativeString); } /** * returns the IContact at the given index * @param position the index of the IContact to be returned * @return the IContact at the given index */ public IContact iContactAt(int position) { return (IContact)objects.items[position]; } }