void Entity::hide(){ if(objectmanagerId != 0){ ObjectManager *objectManager = Global::getInstance()->objectManager; objectManager->removeObject(objectmanagerId); objectmanagerId = 0; } }
void DeviceInterface::disconnectMediaPlayer() { ObjectManager *manager = ObjectManager::self(); manager->removeObject(m_mediaPlayer); m_connectedUuids.removeOne(MediaPlayerUuid); m_mediaPlayer = 0; }
Entity::~Entity(){ //remove ourselves from the object manager ObjectManager *objectManager = Global::getInstance()->objectManager; objectManager->removeObject(objectmanagerId); }