AEECLSID_MannerMode | developer.brewmp.com AEECLSID_MannerMode | developer.brewmp.com

Developer

AEECLSID_MannerMode

AEECLSID_MANNERMODE

Brew Release
Brew MP 1.0.2
Description
AEECLSID_MannerMode can be used to get the value of the manner mode item, set the value of the manner mode item, or be notified when the manner mode item changes.
AEECLSID_MannerMode implements the IItemStore interface. Creating an instance of AEECLSID_MannerMode returns a pointer to the IItemStore object.
Possible values of manner mode are NULL terminated string encodings of the manner mode value.
"0" - indicates AEE_MANNER_MODE_NORMAL (normal audio) "1" - indicates AEE_MANNER_MODE_VIBRATE (vibrate only mode) "2" - indicates AEE_MANNER_MODE_SILENT (Silent mode -- no audio/vibrate)
Example:
A simplified example of using AEECLSID_MannerMode to query for the value:
nRet = ISHELL_CreateInstance(pIShell, AEECLSID_MannerMode, (void **) &piItemStore);
if (SUCCESS == nRet) { nRet = IItemStore_Get(piItemStore, ItemBuf, nItemBufLen, &nItemLen); }
if (SUCCESS == nRet) { mannerModeVal = ATOI(ItemBuf); }
A simplified example of using AEECLSID_MannerMode to set the value:
uint32 itemToSet = AEE_MANNER_MODE_SILENT/NORMAL/VIBRATE char *buf;
bufSize = SNPRINTF(NULL, 0, "%u", itemToSet); buf = MALLOC(bufSize);
if (buf) { SNPRINTF(buf, bufSize, "%u", itemToSet); nErr = IItemStore_Set(pif, (const char *)buf) if (SUCCESS == nErr) { ... } }

Default Interface Name