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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // T-class for internalALL usage
15 // These classes comprise part of the interface (the rest is defined in RScheduler)
19 #if !defined (__SCHINFOINTERNAL_H__)
20 #define __SCHINFOINTERNAL_H__
25 Defines a condition which a Publish and Subscribe Uid must satisfy.
27 A condition encapsulates three pieces of information:
29 the UID identifying the P&S variable against which a test is to be made.
31 the value against which that P&S variable is to be tested.
33 the type of test to be made.
35 @see RScheduler::CreatePersistentSchedule
36 @see RScheduler::EditSchedule
37 @see RScheduler::ScheduleTask
38 @see RScheduler::GetScheduleL
43 class TTaskSchedulerCondition
47 An enumeration defining the type of test to be made against
48 a Publish and Subscribe property.
52 /** Tests that a value is equal to a state variable value. */
54 /** Tests that a value is unequal to a state variable value. */
56 /** Tests that a value is greater than a state variable value. */
58 /** Tests that a value is less than a state variable value. */
61 inline TTaskSchedulerCondition();
62 inline TTaskSchedulerCondition(TUid aCategory,
65 TConditionType aType);
71 /** Integer state of corresponding P&S variable to be tested against*/
73 /** type of test to be performed */
79 Constructs the object with default values.
81 The UID identifying the P&S category against which a test is to be made
82 is set to KNullUid. The sub key is set to zero.
84 The value against which that P&S variable is to be tested is set to zero.
86 The type of test to be made is set to EEquals.
88 inline TTaskSchedulerCondition::TTaskSchedulerCondition()
89 : iCategory(KNullUid),
97 Constructs the object with the specified values.
99 Note that the RProperty variable identified by the aCategory/aKey pair
100 must be of integer type for this to be a valid task scheduler condition.
102 @param aCategory The publish and subscribe category to be tested.
103 @param aKey The publish and suscribe sub-key to be tested.
104 @param aState The value against which the P&S variable identified by the
105 specified UID is to be tested.
106 @param aType The type of test to be made.
110 inline TTaskSchedulerCondition::TTaskSchedulerCondition(TUid aCategory,
113 TConditionType aType)
114 : iCategory(aCategory),