SessionApplet * LauncherAppletDef::createSessionApplet() { LauncherApplet *applet = new LauncherApplet(this, generateItemId(), _plugin); if (!applet->init()) { delete applet; applet = 0; } return applet; }
SessionItem * SliderFactory::createItem() { return new Slider(generateItemId()); }
void RootContainer::onNewItem(Item *item, Container *parent) { item->m_id = generateItemId(item); m_objectMap.Put(item->m_id, item); }