Exemplo n.º 1
0
void Entity::hide(){
    if(objectmanagerId != 0){ 
        ObjectManager *objectManager = Global::getInstance()->objectManager;
        objectManager->removeObject(objectmanagerId);
        objectmanagerId = 0;
    }
}
Exemplo n.º 2
0
void DeviceInterface::disconnectMediaPlayer()
{
    ObjectManager *manager = ObjectManager::self();
    manager->removeObject(m_mediaPlayer);
    m_connectedUuids.removeOne(MediaPlayerUuid);

    m_mediaPlayer = 0;
}
Exemplo n.º 3
0
Entity::~Entity(){
    //remove ourselves from the object manager
    ObjectManager *objectManager = Global::getInstance()->objectManager;
    objectManager->removeObject(objectmanagerId);
}