V. Sriram wrote:
> hi everyone,
> can anybody please tell me the use of helper APIs...
> thank you
> sriram
>
for example this will dial phone on tungsten t5 when there is some phone set
bool DialPhone(char *number, char *displayedName)
{
SysNotifyParamType param;
HelperNotifyEventType details;
HelperNotifyExecuteType execute;
Err err;
bool ok;
MemSet(¶m,sizeof(SysNotifyParamType),0);
param.notifyType = sysNotifyHelperEvent;
param.broadcaster = appFileCreator;
param.notifyDetailsP = &details;
param.handled = false;
MemSet(&details,sizeof(HelperNotifyEventType),0);
details.version = kHelperNotifyCurrentVersion;
details.actionCode = kHelperNotifyActionCodeExecute;
details.data.executeP = &execute;
MemSet(&execute,sizeof(HelperNotifyExecuteType),0);
execute.serviceClassID = kHelperServiceClassIDVoiceDial;
execute.dataP = number;
execute.displayedName = displayedName;
err=SysNotifyBroadcast(¶m);
ok=((err==0) && param.handled);
if(!ok)
FrmAlert(AE_PHONE_ERROR);
return ok;
}
i think you should be able to understand it from this, its quite well documented
in palmos reference docs
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/