os/ossrv/genericservices/taskscheduler/INC/CSCHCODE.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Scheduler opcodes
    15 // 
    16 //
    17 
    18 #if !defined (__CSCHCODE_H__)
    19 #define __CSCHCODE_H__
    20 
    21 #include <schinfo.h>
    22 enum TSchMess
    23 	{//opcodes
    24 	ERegisterClient,
    25 	ECreateTimeSchedule,
    26 	ECreateConditionSchedule,
    27 	EScheduleTask,
    28 	ERemoveTask,
    29 	EDisableSchedule,
    30 	EEnableSchedule,
    31 	EDeleteSchedule,
    32 	EEditTimeSchedule,
    33 	EEditConditionSchedule,
    34 	EGetScheduleInfo,
    35 	EGetTimeScheduleData,
    36 	EGetConditionScheduleData,
    37 	EGetTaskData,
    38 	ECountSchedules,
    39 	ECountTasks,
    40 	EGetTaskRefs,
    41 	EGetTask,
    42 	EGetTaskDataSize,
    43 	EGetScheduleRefs,
    44 	EDeleteTask,
    45 	EGetSchedulerItemRefAndNextDueTime,
    46 	EGetScheduleType,
    47 
    48 	//debug
    49 	ESchDbgMarkHeap = 100,
    50 	ESchDbgCheckHeap,
    51 	ESchDbgMarkEnd,
    52 	ESchDbgFailNext,
    53 	ESchDbgResetHeap,
    54 	ESchFaultServer, 
    55 	ESchDbgSetTime
    56 	};
    57 
    58 class TScheduleSettings2
    59 	{
    60 public:
    61 	TBool iPersists;
    62 	TInt iEntryCount;
    63 	TName iName;
    64 	};
    65 
    66 /**
    67 @internalComponent
    68 */
    69 class TScheduleInfo // Move to 
    70 	{
    71 public:
    72 	TScheduleState2 iState;
    73 	TInt iEntryCount;
    74 	TInt iTaskCount;
    75 	};
    76 
    77 /**
    78 @internalAll
    79 @deprecated replaced with TScheduleSettings2
    80 */
    81 class TScheduleSettings 
    82 	{
    83 public:
    84 	TBool iPersists;
    85 	TInt iEntryCount;
    86 	};
    87 
    88 
    89 	
    90 // Forward Declarations	
    91 class TTsTime;
    92 class TTaskInfo;
    93 class TSchedulerItemRef;
    94 	
    95 	// Typedefs for TPckg's used for IPC
    96 typedef TPckg<TInt>					TPInt;
    97 typedef TPckg<TTaskInfo>			TPTaskInfo;
    98 typedef TPckg<TScheduleInfo>		TPScheduleInfo;
    99 typedef TPckg<TScheduleSettings2>	TPScheduleSettings;
   100 typedef TPckgBuf<TTsTime>				TPBTime;
   101 typedef TPckgBuf<TTaskInfo>			TPBTaskInfo;
   102 typedef TPckgBuf<TScheduleInfo>		TPBScheduleInfo;
   103 typedef TPckgBuf<TSchedulerItemRef>	TPBSchedulerItemRef;
   104 
   105 const TUint KESchSvrMajorVersionNumber=1;
   106 const TUint KESchSvrMinorVersionNumber=0;
   107 const TUint KESchSvrBuildVersionNumber=50;
   108 
   109 _LIT(KSchSvrName, "!TaskScheduler");
   110 
   111 
   112 #endif