Update contrib.
1 // Copyright (c) 2002-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 the License "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.
15 // WARNING: This file contains some APIs which are internal and are subject
16 // to change without notice. Such APIs should therefore not be used
17 // outside the Kernel and Hardware Services package.
20 #ifndef __DOMAIN_MEMBER_H__
21 #define __DOMAIN_MEMBER_H__
24 #include <e32property.h>
25 #include <domaindefs.h>
30 class RDmDomainSession : public RSessionBase
33 TInt Connect(TDmHierarchyId aHierarchyId, TDmDomainId, TUint* aKey);
34 void Acknowledge(TInt aValue, TInt aError);
35 void RequestTransitionNotification();
36 void CancelTransitionNotification();
44 The application's interface to the domain manager.
49 IMPORT_C TInt Connect(TDmDomainId aId);
50 IMPORT_C void Close();
52 IMPORT_C void RequestTransitionNotification(TRequestStatus& aStatus);
53 IMPORT_C void CancelTransitionNotification();
55 IMPORT_C TPowerState GetPowerState();
56 IMPORT_C void AcknowledgeLastState();
61 IMPORT_C TInt Connect(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId);
65 IMPORT_C void AcknowledgeLastState(TInt aError);
69 IMPORT_C TDmDomainState GetState();
72 RDmDomainSession iSession;
73 RProperty iStateProperty;
74 TInt iLastStatePropertyValue;
83 An abstract class for interfacing to a domain managed by the domain manager.
85 To make use of this class an application must derive from it and implement a RunL()
86 method to handle notifications.
88 class CDmDomain : public CActive
91 IMPORT_C CDmDomain(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId);
92 IMPORT_C ~CDmDomain();
94 IMPORT_C void RequestTransitionNotification();
98 IMPORT_C void AcknowledgeLastState(TInt aError);
102 IMPORT_C TDmDomainState GetState();
103 virtual void RunL() = 0;
106 IMPORT_C void DoCancel();
107 IMPORT_C void ConstructL();
111 TDmHierarchyId iHierarchyId;
112 TDmDomainId iDomainId;