userlibandfileserver/domainmgr/inc/domainmanager_private.h
changeset 279 957c583b417b
equal deleted inserted replaced
275:2b433474f2ba 279:957c583b417b
       
     1 // Copyright (c) 2010 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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Contains private Domain Manager interface internal to the Kernel Hardware
       
    15 // Services package.
       
    16 // 
       
    17 // WARNING: This file contains some APIs which are internal and are subject
       
    18 //          to change without notice. Such APIs should therefore not be used
       
    19 //          outside the Kernel and Hardware Services package.
       
    20 //
       
    21 
       
    22 #ifndef __DOMAIN_MANAGER_PRIVATE_H__
       
    23 #define __DOMAIN_MANAGER_PRIVATE_H__
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <domaindefs.h>
       
    27 #include <domainmanager.h>
       
    28 
       
    29 
       
    30 /**
       
    31 Internal class, no clients may use this class.
       
    32 Not to be used outside the KernelHwSrv package.
       
    33 */
       
    34 class CDmDomainManager : public CActive
       
    35 	{
       
    36 public:
       
    37 	IMPORT_C CDmDomainManager(TDmHierarchyId aHierarchyId);
       
    38 	IMPORT_C ~CDmDomainManager();
       
    39 
       
    40 	IMPORT_C void RequestSystemTransition(TDmDomainState aState, TDmTraverseDirection aDirection);
       
    41 	IMPORT_C void RequestDomainTransition(TDmDomainId aDomainId, TDmDomainState aState, TDmTraverseDirection aDirection);
       
    42 	IMPORT_C static TInt AddDomainHierarchy(TDmHierarchyId aHierarchyId);
       
    43 	IMPORT_C TInt GetTransitionFailures(RArray<const TTransitionFailure>& aTransitionFailures);
       
    44 	IMPORT_C TInt GetTransitionFailureCount();
       
    45 	virtual void RunL() = 0;
       
    46 
       
    47 protected:
       
    48 	// from CActive
       
    49 	IMPORT_C void DoCancel();
       
    50 	IMPORT_C void ConstructL();
       
    51 
       
    52 private:
       
    53 	RDmDomainManager iManager;
       
    54 	TDmHierarchyId iHierarchyId;
       
    55 	TInt iReserved[4];	
       
    56 	};
       
    57 
       
    58 
       
    59 #endif