//public slots: void AudioVolumeManager::setVolume(int volume) { QString provider = findProvider(); if (!provider.isEmpty()) { QtopiaIpcEnvelope e(provider, "setVolume(int)"); e << volume; } }
void SFXProvider::regProvider( SFXProvider* provider ) { AssertFatal( provider, "Got null provider!" ); AssertFatal( findProvider( provider->getName() ) == NULL, "Can't register provider twice!" ); AssertFatal( provider->mNextProvider == NULL, "Can't register provider twice!" ); SFXProvider* oldHead = smProviders; smProviders = provider; provider->mNextProvider = oldHead; }
void AudioVolumeManager::setMuted(bool mute) { if ( m_domains.front() == "Phone") return; // fuking zero division QString provider = findProvider(); if (!provider.isEmpty()) { QtopiaIpcEnvelope e(provider, "setMuted(bool)"); e << mute; } }
void AudioVolumeManager::decreaseVolume(int decrement) { if ( m_domains.front() == "Phone") return; // fuking zero division QString provider = findProvider(); if (!provider.isEmpty()) { QtopiaIpcEnvelope e(provider, "decreaseVolume(int)"); e << decrement; } }
int generalTimeAddIntCurrentProvider(const char *name, int priority, TIMECURRENTFUN getTime) { gtProvider *ptp = findProvider(>Pvt.timeProviders, gtPvt.timeListLock, name, priority); if (ptp == NULL) return epicsTimeERROR; ptp->getInt.Time = getTime; return epicsTimeOK; }
int generalTimeAddIntEventProvider(const char *name, int priority, TIMEEVENTFUN getEvent) { gtProvider *ptp = findProvider(>Pvt.eventProviders, gtPvt.eventListLock, name, priority); if (ptp == NULL) return epicsTimeERROR; ptp->getInt.Event = getEvent; return epicsTimeOK; }
IOReturn IOPMPagingPlexus::setAggressiveness ( unsigned long type, unsigned long ) { OSDictionary * dict; OSIterator * iter; OSObject * next; IOService * candidate = 0; IOService * pagingProvider; if( type != kPMMinutesToSleep) return IOPMNoErr; IOLockLock(ourLock); if ( systemBooting ) { systemBooting = false; IOLockUnlock(ourLock); dict = IOBSDNameMatching(rootdevice); if ( dict ) { iter = getMatchingServices(dict); if ( iter ) { while ( (next = iter->getNextObject()) ) { if ( (candidate = OSDynamicCast(IOService,next)) ) { break; } } iter->release(); } } if ( candidate ) { pagingProvider = findProvider(candidate); if ( pagingProvider ) { processSiblings(pagingProvider); pagingProvider->addPowerChild(this); getPMRootDomain()->removePowerChild(((IOPowerConnection *)getParentEntry(gIOPowerPlane))); processChildren(); } } } else { IOLockUnlock(ourLock); } return IOPMNoErr; }