os/kernelhwsrv/userlibandfileserver/domainmgr/src/domainsrv.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/userlibandfileserver/domainmgr/src/domainsrv.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// domain\src\domainsrv.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __DOMAIN_SRV_H__
    1.22 +#define __DOMAIN_SRV_H__
    1.23 +
    1.24 +#include <e32def.h>
    1.25 +
    1.26 +#include <domaindefs.h>
    1.27 +
    1.28 +_LIT(KDmDomainServerNameLit,"!DmDomainServer");
    1.29 +#define KDmDomainServerVersion	TVersion(1, 0, 0)
    1.30 +_LIT(KDmManagerServerNameLit,"!DmManagerServer");
    1.31 +#define KDmManagerServerVersion	TVersion(1, 0, 0)
    1.32 +
    1.33 +enum 
    1.34 +	{
    1.35 +	EDmDomainJoin,
    1.36 +	EDmStateAcknowledge,
    1.37 +	EDmStateRequestTransitionNotification,
    1.38 +	EDmStateCancelTransitionNotification
    1.39 +	};
    1.40 +
    1.41 +enum 
    1.42 +	{
    1.43 +	EDmRequestSystemTransition,
    1.44 +	EDmRequestDomainTransition,
    1.45 +	EDmCancelTransition,
    1.46 +	EDmHierarchyJoin,
    1.47 +	EDmHierarchyAdd,
    1.48 +	EDmGetTransitionFailureCount,
    1.49 +	EDmGetTransitionFailures,
    1.50 +	EDmObserverJoin,
    1.51 +	EDmObserverStart,
    1.52 +	EDmObserverStop,
    1.53 +	EDmObserverNotify,
    1.54 +	EDmObserverEventCount,
    1.55 +	EDmObserverGetEvent,
    1.56 +	EDmObserverCancel,
    1.57 +	EDmObserveredCount
    1.58 +	};
    1.59 +
    1.60 +inline TInt DmStatePropertyKey(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId)
    1.61 +	{ return (TInt) ((aHierarchyId << 8) | ((aDomainId << 8) & 0xff0000) | (aDomainId & 0xff) ); }
    1.62 +
    1.63 +inline TInt DmStatePropertyValue(TUint aId, TUint32 aState)
    1.64 +	{ return (TInt) ((aId << 24) | (aState & 0xffffff)); }
    1.65 +
    1.66 +inline TDmDomainState DmStateFromPropertyValue(TInt aValue)
    1.67 +	{ return (TDmDomainState) (aValue & 0xffffff); }
    1.68 +
    1.69 +#endif