0
|
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 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 |
// domain\src\domainsrv.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __DOMAIN_SRV_H__
|
|
19 |
#define __DOMAIN_SRV_H__
|
|
20 |
|
|
21 |
#include <e32def.h>
|
|
22 |
|
|
23 |
#include <domaindefs.h>
|
|
24 |
|
|
25 |
_LIT(KDmDomainServerNameLit,"!DmDomainServer");
|
|
26 |
#define KDmDomainServerVersion TVersion(1, 0, 0)
|
|
27 |
_LIT(KDmManagerServerNameLit,"!DmManagerServer");
|
|
28 |
#define KDmManagerServerVersion TVersion(1, 0, 0)
|
|
29 |
|
|
30 |
enum
|
|
31 |
{
|
|
32 |
EDmDomainJoin,
|
|
33 |
EDmStateAcknowledge,
|
|
34 |
EDmStateRequestTransitionNotification,
|
|
35 |
EDmStateCancelTransitionNotification
|
|
36 |
};
|
|
37 |
|
|
38 |
enum
|
|
39 |
{
|
|
40 |
EDmRequestSystemTransition,
|
|
41 |
EDmRequestDomainTransition,
|
|
42 |
EDmCancelTransition,
|
|
43 |
EDmHierarchyJoin,
|
|
44 |
EDmHierarchyAdd,
|
|
45 |
EDmGetTransitionFailureCount,
|
|
46 |
EDmGetTransitionFailures,
|
|
47 |
EDmObserverJoin,
|
|
48 |
EDmObserverStart,
|
|
49 |
EDmObserverStop,
|
|
50 |
EDmObserverNotify,
|
|
51 |
EDmObserverEventCount,
|
|
52 |
EDmObserverGetEvent,
|
|
53 |
EDmObserverCancel,
|
|
54 |
EDmObserveredCount
|
|
55 |
};
|
|
56 |
|
|
57 |
inline TInt DmStatePropertyKey(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId)
|
|
58 |
{ return (TInt) ((aHierarchyId << 8) | ((aDomainId << 8) & 0xff0000) | (aDomainId & 0xff) ); }
|
|
59 |
|
|
60 |
inline TInt DmStatePropertyValue(TUint aId, TUint32 aState)
|
|
61 |
{ return (TInt) ((aId << 24) | (aState & 0xffffff)); }
|
|
62 |
|
|
63 |
inline TDmDomainState DmStateFromPropertyValue(TInt aValue)
|
|
64 |
{ return (TDmDomainState) (aValue & 0xffffff); }
|
|
65 |
|
|
66 |
#endif
|