examples/SysLibs/TaskSchedulerExample/taskexecutor.cpp File Reference

Go to the source code of this file.

Functions

 _LIT (KTaskConsoleName,"TaskExecutor")
 _LIT (KContent,"\nContents of task file:\n")
 _LIT (KTask,"\nRunning task: %S")
 _LIT (KTaskData,"\nThis is the task data for a")
 _LIT (KTaskId,"\nThe task Id is: %d\n")
 _LIT (KValidity,"Task is valid until %S\n")
 _LIT (KDateString,"%H%:1%T %*E%*D%X%*N%Y %1 %2 %3")
 _LIT (KPressAnyKey,"Press any key to continue \n")
 _LIT (KAbort,"\nCapabilities of the task scheduler and the executor do not match. Task aborted\n")
 _LIT (KSidMismatch,"SID of the task executor is not same as that of the scheduler. Task aborted\n")
void TaskExecuteL (RFile &aTaskFile)
TInt Execute ()
GLDEF_C TInt E32Main ()

Variables

const TUint32 KTaskSchedulerSid = 0xE80000B5
const TCapability KTaskCapability = ECapabilityWriteDeviceData

Detailed Description

Definition in file taskexecutor.cpp.


Function Documentation

void TaskExecuteL ( RFile &  aTaskFile  ) 

Extracts task data, and puts up a message on the console. Validates the security of the task requester by a) Checking the secure ID; and b) Capabilities of the task requester.

Definition at line 65 of file taskexecutor.cpp.

GLDEF_C TInt E32Main (  ) 

Returns standard error code on exit

Secure variant only Process entry point. Called by client using RProcess API

Returns:
Standard Epoc error code on process exit
Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API

Entry point for the example

A normal Symbian OS executable provides an E32Main() function which is called by the operating system to start the program.

The below section is added to make the code compatible with v9.1 This is because only exe files are compatible with v9.1

Standard entrypoint function for UI applications.

Returns:
Return code from EikStart::RunApplication.

Definition at line 163 of file taskexecutor.cpp.


Generated by  doxygen 1.6.2