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

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