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