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