dependencies/domaindefs.h
author MattD <mattd@symbian.org>
Thu, 01 Apr 2010 14:50:19 +0100
changeset 48 0d4ac38889fc
parent 29 f9c0abe18432
permissions -rw-r--r--
Merged in kashif's, fdim's and my removal of abld.bat and .cproject files onto the fixed up version of Christian's head.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     1
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     2
// All rights reserved.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     3
// This component and the accompanying materials are made available
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     4
// under the terms of the License "Eclipse Public License v1.0"
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     5
// which accompanies this distribution, and is available
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     7
//
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     8
// Initial Contributors:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    10
//
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    11
// Contributors:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    12
//
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    13
// Description:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    14
//
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    15
// WARNING: This file contains some APIs which are internal and are subject
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    16
//          to change without notice. Such APIs should therefore not be used
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    17
//          outside the Kernel and Hardware Services package.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    18
//
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    19
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    20
#ifndef __DOMAIN_DEFS_H__
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    21
#define __DOMAIN_DEFS_H__
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    22
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    23
#include <e32cmn.h>
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    24
#include <e32power.h>
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    25
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    26
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    27
@internalTechnology
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    28
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    29
// Property category UID value reserved for Domain Management services.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    30
// This is the same as the process SID (see domainsrv.mmp)
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    31
static const TInt32 KUidDmPropertyCategoryValue = 0x1020E406;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    32
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    33
@internalTechnology
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    34
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    35
// Property category UID reserved for Domain Management services
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    36
static const TUid KUidDmPropertyCategory = { KUidDmPropertyCategoryValue };
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    37
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    38
@internalTechnology
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    39
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    40
static const TUint KDmPropertyKeyInit				= 0x00000001;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    41
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    42
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    43
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    44
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    45
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    46
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    47
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    48
Defines the ways in which a domain hierarchy can be traversed.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    49
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    50
@see CDmDomainManager::RequestSystemTransition()
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    51
@see CDmDomainManager::RequestDomainTransition()
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    52
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    53
enum TDmTraverseDirection
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    54
	{
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    55
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    56
	Transition parents first (i.e. before their children).
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    57
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    58
	ETraverseParentsFirst,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    59
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    60
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    61
	Transition children first (i.e. before their parents).
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    62
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    63
	ETraverseChildrenFirst,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    64
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    65
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    66
	Use the default direction specified in policy
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    67
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    68
	ETraverseDefault,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    69
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    70
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    71
	Maximum value for traverse mode
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    72
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    73
	ETraverseMax = ETraverseDefault
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    74
	};
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    75
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    76
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    77
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    78
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    79
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    80
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    81
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    82
Defines the type of transitions that will be notified to the observer.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    83
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    84
One of these values is specified when the observer is started through a 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    85
call to CHierarchyObserver::StartObserver().
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    86
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    87
enum TDmNotifyType
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    88
	{
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    89
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    90
	Notifies the observer about all transition requests.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    91
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    92
	EDmNotifyTransRequest =0x02,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    93
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    94
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    95
	Notifies the observer about successful transitions only.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    96
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    97
	EDmNotifyPass =0x04, 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    98
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
    99
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   100
	Notifies the observer about failing transitions only.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   101
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   102
	EDmNotifyFail=0x08, 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   103
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   104
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   105
	Notifies the observer about all completed transitions.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   106
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   107
	EDmNotifyTransOnly=EDmNotifyPass|EDmNotifyFail,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   108
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   109
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   110
	Notifies the observer about successful transitions and transition requests.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   111
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   112
	EDmNotifyReqNPass=EDmNotifyTransRequest|EDmNotifyPass,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   113
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   114
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   115
	Notifies the observer about failed transitions and transition requests.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   116
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   117
	EDmNotifyReqNFail=EDmNotifyTransRequest|EDmNotifyFail,
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   118
	
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   119
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   120
	Notifies the observer about every event.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   121
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   122
	EDmNotifyAll=EDmNotifyTransRequest|EDmNotifyFail|EDmNotifyPass, 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   123
	};
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   124
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   125
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   126
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   127
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   128
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   129
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   130
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   131
Domain hierarchy identifier type.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   132
 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   133
Domain hierarchies are designated by "well known" domain hierarchy identifiers.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   134
The domain policy statically defines the list of domain hierarchies and their 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   135
identifiers.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   136
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   137
@see RDmDomainManager::Connect()
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   138
@see RDmDomainManager::AddDomainHierarchy()
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   139
@see RDmDomain::Connect()
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   140
@see CHierarchyObserver
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   141
@see CDmDomainManager
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   142
@see CDmDomain
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   143
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   144
typedef TUint8 TDmHierarchyId;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   145
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   146
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   147
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   148
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   149
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   150
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   151
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   152
A type used to describe the state of a domain.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   153
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   154
typedef TUint TDmDomainState;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   155
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   156
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   157
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   158
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   159
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   160
@internalTechnology
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   161
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   162
The power domain hierarchy Id.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   163
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   164
static const TDmHierarchyId	KDmHierarchyIdPower		= 1;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   165
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   166
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   167
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   168
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   169
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   170
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   171
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   172
The start-up domain hierarchy Id.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   173
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   174
static const TDmHierarchyId	KDmHierarchyIdStartup	= 2;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   175
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   176
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   177
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   178
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   179
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   180
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   181
The start-up domain hierarchy Id. (For use by domain manager and/or SSMA)
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   182
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   183
static const TDmHierarchyId KDmHierarchyIdSystemState = KDmHierarchyIdStartup;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   184
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   185
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   186
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   187
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   188
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   189
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   190
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   191
Domain identifier type.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   192
 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   193
Domains are designated by "well known" domain identifiers.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   194
The domain manager statically defines the list of domains and their identifiers.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   195
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   196
typedef TUint16 TDmDomainId;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   197
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   198
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   199
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   200
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   201
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   202
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   203
A structure use to describe a transition failure.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   204
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   205
class TTransitionFailure
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   206
	{
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   207
public:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   208
	inline TTransitionFailure() {};
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   209
	TTransitionFailure(	TDmDomainId aDomainId, TInt aError);
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   210
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   211
public:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   212
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   213
	Id of the domain of interest
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   214
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   215
	TDmDomainId iDomainId;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   216
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   217
	error code in transition
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   218
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   219
	TInt iError;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   220
	};
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   221
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   222
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   223
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   224
@internalTechnology
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   225
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   226
A structure use to describe a successful transition.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   227
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   228
class TTransInfo
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   229
	{
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   230
public:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   231
	inline TTransInfo() {};
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   232
	TTransInfo(	TDmDomainId aDomainId, TDmDomainState aState, TInt aError);
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   233
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   234
public:
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   235
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   236
	Id of the domain of interest
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   237
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   238
	TDmDomainId iDomainId;				 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   239
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   240
	Final state of the domain after the transition 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   241
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   242
	TDmDomainState iState;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   243
	/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   244
	Any error in transition
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   245
	*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   246
	TInt iError;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   247
	};
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   248
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   249
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   250
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   251
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   252
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   253
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   254
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   255
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   256
The null domain identifier.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   257
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   258
There are no domains with this identifier.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   259
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   260
static const TDmDomainId	KDmIdNone	= 0x00;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   261
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   262
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   263
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   264
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   265
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   266
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   267
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   268
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   269
The common ancestor of all domains.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   270
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   271
static const TDmDomainId	KDmIdRoot	= 0x01;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   272
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   273
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   274
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   275
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   276
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   277
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   278
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   279
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   280
The usual domain for all non-UI applications.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   281
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   282
static const TDmDomainId	KDmIdApps	= 0x02;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   283
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   284
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   285
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   286
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   287
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   288
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   289
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   290
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   291
The usual domain for all UI applications.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   292
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   293
static const TDmDomainId	KDmIdUiApps	= 0x03;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   294
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   295
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   296
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   297
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   298
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   299
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   300
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   301
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   302
Domain manager specific error code - the domain designated by
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   303
the specified domain identifier does not exist.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   304
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   305
static const TInt KDmErrBadDomainId		= -256;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   306
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   307
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   308
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   309
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   310
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   311
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   312
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   313
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   314
Domain manager specific error code - this RDmDomain object has already been
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   315
connected to a domain.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   316
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   317
static const TInt KDmErrAlreadyJoin		= -257;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   318
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   319
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   320
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   321
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   322
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   323
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   324
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   325
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   326
Domain manager specific error code - this RDmDomain object is not connected
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   327
to any domain.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   328
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   329
static const TInt KDmErrNotJoin			= -258;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   330
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   331
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   332
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   333
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   334
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   335
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   336
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   337
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   338
Domain manager specific error code - indicates a client-server protocol internal error.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   339
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   340
static const TInt KDmErrBadRequest		= -259;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   341
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   342
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   343
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   344
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   345
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   346
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   347
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   348
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   349
Domain manager specific error code - indicates an internal Domain Manager error.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   350
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   351
static const TInt KDmErrBadDomainSpec	= -260;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   352
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   353
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   354
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   355
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   356
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   357
@publishedPartner
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   358
@released
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   359
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   360
Domain manager specific error code - indicates a bad sequence of requests.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   361
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   362
Typically, this occurs when a new request been made while an ongoing domain
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   363
transition request has not yet completed.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   364
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   365
static const TInt KDmErrBadSequence		= -261;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   366
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   367
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   368
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   369
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   370
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   371
@internalTechnology
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   372
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   373
Domain manager specific error code - indicates that a transition is outstanding.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   374
 
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   375
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   376
static const TInt KDmErrOutstanding		= -262;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   377
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   378
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   379
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   380
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   381
/**
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   382
@internalAll
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   383
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   384
Domain manager specific error code - indicates that the domain hierarchy does not exist.
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   385
*/
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   386
static const TInt KErrBadHierarchyId	= -263;
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   387
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   388
#endif
f9c0abe18432 user: kashif.sayed
kashif.sayed
parents:
diff changeset
   389