sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: */ sl@0: sl@0: #ifndef UPSPROPERTY_H sl@0: #define UPSPROPERTY_H sl@0: sl@0: // interval between instances of either a PE or a DC. This value is added to the indexes below sl@0: static const TInt KInstanceInterval = 100; sl@0: sl@0: // policy evaluator indexes sl@0: static const TInt KPe_Start = 0; sl@0: static const TInt KPe_Status = 1; sl@0: static const TInt KPe_RunningInstance = 2; sl@0: static const TInt KPe_ClientSid = 3; sl@0: static const TInt KPe_ServerSid = 4; sl@0: static const TInt KPe_Leave = 5; sl@0: static const TInt KPe_Error = 6; sl@0: static const TInt KPe_ServiceId = 7; sl@0: static const TInt KPe_ForcePrompt = 8; sl@0: static const TInt KPe_EvaluatorInfo = 9; sl@0: static const TInt KPe_HoldEvaluatorOpen = 10; sl@0: sl@0: // dialog creator indexes sl@0: static const TInt KDc_Start = 50; sl@0: static const TInt KDc_Status = 1; sl@0: static const TInt KDc_RunningInstance = 2; sl@0: static const TInt KDc_ClientSid = 3; sl@0: static const TInt KDc_ServerSid = 4; sl@0: static const TInt KDc_Leave = 5; sl@0: static const TInt KDc_Error = 6; sl@0: static const TInt KDc_ServiceId = 7; sl@0: static const TInt KDc_UpsRequestedButtons = 20; sl@0: static const TInt KDc_WhichButtonToPress = 21; sl@0: static const TInt KDc_HoldPrepareDialogOpen = 22; sl@0: static const TInt KDc_HoldDisplayDialogOpen = 23; sl@0: static const TInt KDc_SelectFingerprint = 24; sl@0: sl@0: static const TInt32 KPropertyCreator=0x101F7784; sl@0: static const TUid KPropertyCreatorUid={KPropertyCreator}; sl@0: sl@0: class CUpsProperty : public CBase sl@0: { sl@0: public: sl@0: enum TType sl@0: { sl@0: EPolicyEvaluator, sl@0: EDialogCreator sl@0: }; sl@0: sl@0: static CUpsProperty* NewL(const TUid& aCategory); sl@0: virtual ~CUpsProperty() {}; sl@0: sl@0: void GetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TInt& aValue); sl@0: void GetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TDes& aValue); sl@0: void SetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TInt aValue); sl@0: void SetL(TInt aInstanceNumber, TInt aPropertyKey, TType aType, TDes& aValue); sl@0: sl@0: TInt GetPropertyKey(TInt aPropertyKey, TInt aStart, TInt aInterval, TInt aInstanceNumber); sl@0: sl@0: protected: sl@0: TUid iCategory; sl@0: sl@0: private: sl@0: CUpsProperty(const TUid& aCategory); sl@0: }; sl@0: sl@0: sl@0: #endif