os/ossrv/genericservices/systemagent/Inc/SaCls.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __SACLS_H__
sl@0
    17
#define __SACLS_H__
sl@0
    18
sl@0
    19
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
sl@0
    20
#include <saclsdefines.h>
sl@0
    21
#include <saclscommon.h>
sl@0
    22
#endif
sl@0
    23
sl@0
    24
#include <e32std.h>
sl@0
    25
sl@0
    26
/**
sl@0
    27
System agent 2 - maintained entries
sl@0
    28
@publishedAll
sl@0
    29
@released
sl@0
    30
*/
sl@0
    31
const TInt KUidProfileValue		=0x100052D2;
sl@0
    32
const TUid KUidProfile			={KUidProfileValue};
sl@0
    33
sl@0
    34
/**
sl@0
    35
@capability WriteDeviceData capability is required for changing KUidPhonePwr property value.
sl@0
    36
@publishedAll
sl@0
    37
@released
sl@0
    38
*/
sl@0
    39
const TInt KUidPhonePwrValue=0x100052C5;
sl@0
    40
const TUid KUidPhonePwr={KUidPhonePwrValue};
sl@0
    41
sl@0
    42
/**
sl@0
    43
@publishedAll
sl@0
    44
@released
sl@0
    45
*/
sl@0
    46
enum TSAPhoneStatus
sl@0
    47
	{
sl@0
    48
	ESAPhoneOff,
sl@0
    49
	ESAPhoneOn
sl@0
    50
	};
sl@0
    51
sl@0
    52
/**
sl@0
    53
@capability WriteDeviceData capability is required for changing KUidSIMStatus property value.
sl@0
    54
@publishedAll
sl@0
    55
@released
sl@0
    56
*/
sl@0
    57
const TInt KUidSIMStatusValue	=0x100052C6;
sl@0
    58
const TUid KUidSIMStatus		={KUidSIMStatusValue};
sl@0
    59
sl@0
    60
/**
sl@0
    61
@publishedAll
sl@0
    62
@released
sl@0
    63
*/
sl@0
    64
enum TSASIMStatus
sl@0
    65
	{
sl@0
    66
	ESASimOk,
sl@0
    67
	ESASimNotPresent,
sl@0
    68
	ESASimRejected
sl@0
    69
	};
sl@0
    70
sl@0
    71
/**
sl@0
    72
@capability WriteDeviceData capability is required for changing KUidNetworkStatus property value.
sl@0
    73
@publishedAll
sl@0
    74
@released
sl@0
    75
*/
sl@0
    76
const TInt KUidNetworkStatusValue=0x100052C7;
sl@0
    77
const TUid KUidNetworkStatus	={KUidNetworkStatusValue};
sl@0
    78
sl@0
    79
/**
sl@0
    80
@publishedAll
sl@0
    81
@released
sl@0
    82
*/
sl@0
    83
enum TSANetworkStatus
sl@0
    84
	{
sl@0
    85
	ESANetworkAvailable,
sl@0
    86
	ESANetworkUnAvailable
sl@0
    87
	};
sl@0
    88
sl@0
    89
/**
sl@0
    90
@capability WriteDeviceData capability is required for changing KUidNetworkStrength property value.
sl@0
    91
@publishedAll
sl@0
    92
@released
sl@0
    93
*/
sl@0
    94
const TInt KUidNetworkStrengthValue  =0x100052C8;
sl@0
    95
const TUid KUidNetworkStrength  ={KUidNetworkStrengthValue};
sl@0
    96
sl@0
    97
/**
sl@0
    98
@publishedAll
sl@0
    99
@released
sl@0
   100
*/
sl@0
   101
enum TSANetworkStrength
sl@0
   102
	{
sl@0
   103
	ESANetworkStrengthNone,
sl@0
   104
	ESANetworkStrengthLow,
sl@0
   105
	ESANetworkStrengthMedium,
sl@0
   106
	ESANetworkStrengthHigh,
sl@0
   107
	ESANetworkStrengthUnknown
sl@0
   108
	};
sl@0
   109
sl@0
   110
/**
sl@0
   111
@capability WriteDeviceData capability is required for changing KUidChargerStatus property value.
sl@0
   112
@publishedAll
sl@0
   113
@released
sl@0
   114
*/
sl@0
   115
const TInt KUidChargerStatusValue	=0x100052C9;
sl@0
   116
const TUid KUidChargerStatus	={KUidChargerStatusValue};
sl@0
   117
sl@0
   118
/**
sl@0
   119
@publishedAll
sl@0
   120
@released
sl@0
   121
*/
sl@0
   122
enum TSAChargerStatus
sl@0
   123
	{
sl@0
   124
	ESAChargerConnected,
sl@0
   125
	ESAChargerDisconnected,
sl@0
   126
	ESAChargerNotCharging
sl@0
   127
	};
sl@0
   128
sl@0
   129
/**
sl@0
   130
@capability WriteDeviceData capability is required for changing KUidBatteryStrength property value.
sl@0
   131
@publishedAll
sl@0
   132
@released
sl@0
   133
*/
sl@0
   134
const TInt KUidBatteryStrengthValue  =0x100052CA;
sl@0
   135
const TUid KUidBatteryStrength  ={KUidBatteryStrengthValue};
sl@0
   136
sl@0
   137
/**
sl@0
   138
@publishedAll
sl@0
   139
@released
sl@0
   140
*/
sl@0
   141
enum TSABatteryStrength
sl@0
   142
	{
sl@0
   143
	ESABatteryAlmostEmpty,
sl@0
   144
	ESABatteryLow,
sl@0
   145
	ESABatteryFull
sl@0
   146
	};
sl@0
   147
sl@0
   148
/**
sl@0
   149
@capability WriteDeviceData capability is required for changing KUidCurrentCall property value.
sl@0
   150
@publishedAll
sl@0
   151
@released
sl@0
   152
*/
sl@0
   153
const TInt KUidCurrentCallValue	=0x100052CB;
sl@0
   154
const TUid KUidCurrentCall		={KUidCurrentCallValue};
sl@0
   155
sl@0
   156
/**
sl@0
   157
@publishedAll
sl@0
   158
@released
sl@0
   159
*/
sl@0
   160
enum TSACurrentCall
sl@0
   161
	{
sl@0
   162
	ESACallNone,
sl@0
   163
	ESACallVoice,
sl@0
   164
	ESACallFax,
sl@0
   165
	ESACallData,
sl@0
   166
	ESACallAlerting,
sl@0
   167
	ESACallRinging,
sl@0
   168
	ESACallAlternating,
sl@0
   169
	ESACallDialling,
sl@0
   170
	ESACallAnswering,
sl@0
   171
	ESACallDisconnecting
sl@0
   172
	};
sl@0
   173
sl@0
   174
/**
sl@0
   175
@publishedAll
sl@0
   176
@released
sl@0
   177
*/
sl@0
   178
const TInt KUidDataPortValue	=0x100052CC;
sl@0
   179
const TUid KUidDataPort			={KUidDataPortValue};
sl@0
   180
sl@0
   181
/**
sl@0
   182
@publishedAll
sl@0
   183
@released
sl@0
   184
*/
sl@0
   185
enum TSAPort
sl@0
   186
	{
sl@0
   187
	ESADataPortIdle,
sl@0
   188
	ESADataPortBusy	
sl@0
   189
	};
sl@0
   190
sl@0
   191
/**
sl@0
   192
@publishedAll
sl@0
   193
@released
sl@0
   194
*/
sl@0
   195
const TInt KUidInboxStatusValue	=0x100052CD;
sl@0
   196
const TUid KUidInboxStatus		={KUidInboxStatusValue};
sl@0
   197
sl@0
   198
/**
sl@0
   199
@publishedAll
sl@0
   200
@released
sl@0
   201
*/
sl@0
   202
enum TSAInboxStatus
sl@0
   203
	{
sl@0
   204
	ESAInboxEmpty,
sl@0
   205
	ESADocumentsInInbox
sl@0
   206
	};
sl@0
   207
sl@0
   208
/**
sl@0
   209
@publishedAll
sl@0
   210
@released
sl@0
   211
*/
sl@0
   212
const TInt KUidOutboxStatusValue=0x100052CE;
sl@0
   213
const TUid KUidOutboxStatus		={KUidOutboxStatusValue};
sl@0
   214
sl@0
   215
/**
sl@0
   216
@publishedAll
sl@0
   217
@released
sl@0
   218
*/
sl@0
   219
enum TSAOutboxStatus
sl@0
   220
	{
sl@0
   221
	ESAOutboxEmpty,
sl@0
   222
	ESADocumentsInOutbox
sl@0
   223
	};
sl@0
   224
sl@0
   225
/**
sl@0
   226
@publishedAll
sl@0
   227
@released
sl@0
   228
*/
sl@0
   229
const TInt KUidClockValue		=0x100052CF;
sl@0
   230
const TUid KUidClock			={KUidClockValue};
sl@0
   231
sl@0
   232
/**
sl@0
   233
@publishedAll
sl@0
   234
@released
sl@0
   235
*/
sl@0
   236
enum TSAClock
sl@0
   237
	{
sl@0
   238
	ESAAm,
sl@0
   239
	ESAPm
sl@0
   240
	};
sl@0
   241
sl@0
   242
/**
sl@0
   243
No longer used
sl@0
   244
@publishedAll
sl@0
   245
@released
sl@0
   246
*/
sl@0
   247
const TInt KUidAlarmValue		=0x100052D0;
sl@0
   248
const TUid KUidAlarm			={KUidAlarmValue};
sl@0
   249
sl@0
   250
/**
sl@0
   251
@publishedAll
sl@0
   252
@released
sl@0
   253
*/
sl@0
   254
enum TSAAlarm
sl@0
   255
	{
sl@0
   256
	ESAAlarmOff,
sl@0
   257
	ESAAlarmOn,
sl@0
   258
	};
sl@0
   259
sl@0
   260
/**
sl@0
   261
@publishedAll
sl@0
   262
@released
sl@0
   263
*/
sl@0
   264
const TInt KUidIrdaStatusValue	=0x100052D1;
sl@0
   265
const TUid KUidIrdaStatus		={KUidIrdaStatusValue};
sl@0
   266
sl@0
   267
/**
sl@0
   268
@publishedAll
sl@0
   269
@released
sl@0
   270
*/
sl@0
   271
enum TSAIrdaStatus
sl@0
   272
	{
sl@0
   273
	ESAIrLoaded,		//IRDA Irlap layer loaded
sl@0
   274
	ESAIrDiscoveredPeer,//Discovery begin
sl@0
   275
	ESAIrLostPeer,		//Discovery end
sl@0
   276
	ESAIrConnected,		//IRDA Irlap layer connected
sl@0
   277
	ESAIrBlocked,		//IRDA Irlap layer blocked
sl@0
   278
	ESAIrDisConnected,	//IRDA Irlap layer disconnected
sl@0
   279
	ESAIrUnloaded		//IRDA Irlap layer unloaded
sl@0
   280
	};
sl@0
   281
	
sl@0
   282
//-----------------------------------------------------------------------------
sl@0
   283
	
sl@0
   284
/**
sl@0
   285
This is a duplicate of Swi::KUidSoftwareInstallKey from swi/swispubsubdefs.h
sl@0
   286
This is the publish and subscribe property used by Secure Software Install to 
sl@0
   287
publish its current state. The publish and subscribe key is defined by 
sl@0
   288
SysAgent2 server, but we do not want to have a dependency to the security 
sl@0
   289
subsystem, so we redefine a constant with the same key value here so it may be used
sl@0
   290
by this and other Core OS layer components. We also define the property's
sl@0
   291
values in sacls.h too, see TSASwisOperation & TSASwisOperationStatus.
sl@0
   292
sl@0
   293
@publishedAll
sl@0
   294
@released
sl@0
   295
*/
sl@0
   296
const TInt KSAUidSoftwareInstallKeyValue = 0x102047B7;
sl@0
   297
sl@0
   298
/**
sl@0
   299
This is a duplicate of Swi::TSwisOperation from swi/swispubsubdefs.h
sl@0
   300
@see KSAUidSoftwareInstallKeyValue
sl@0
   301
@publishedAll
sl@0
   302
@released
sl@0
   303
*/
sl@0
   304
enum TSASwisOperation
sl@0
   305
	{	
sl@0
   306
	ESASwisNone			= 0x00, //< No operation
sl@0
   307
	ESASwisInstall		= 0x01, //< Swis install operation is in progress
sl@0
   308
	ESASwisUninstall	= 0x02, //< Swis uninstall operation is in progress
sl@0
   309
	ESASwisRestore		= 0x04  //< Swis restore operation is in progress
sl@0
   310
	};
sl@0
   311
sl@0
   312
sl@0
   313
/**
sl@0
   314
This is a duplicate of Swi::KSwisOperationStatusMask from swi/swispubsubdefs.h
sl@0
   315
@see KSAUidSoftwareInstallKeyValue
sl@0
   316
@publishedAll
sl@0
   317
@released
sl@0
   318
*/
sl@0
   319
const TUint KSASwisOperationStatusMask = 0xFF00;  
sl@0
   320
	
sl@0
   321
/**
sl@0
   322
This is a duplicate of Swi::TSwisOperationStatus from swi/swispubsubdefs.h
sl@0
   323
@see KSAUidSoftwareInstallKeyValue
sl@0
   324
@publishedAll
sl@0
   325
@released
sl@0
   326
*/
sl@0
   327
enum TSASwisOperationStatus
sl@0
   328
	{
sl@0
   329
	ESASwisStatusNone		= 0x0000, //< The current operation is in progress
sl@0
   330
	ESASwisStatusSuccess	= 0x0100, //< The current/last operation succeeded
sl@0
   331
	ESASwisStatusAborted	= 0x0200  //< The current/last operation failed		
sl@0
   332
	};	
sl@0
   333
sl@0
   334
sl@0
   335
//-----------------------------------------------------------------------------
sl@0
   336
		
sl@0
   337
sl@0
   338
/** This is the global definition used by Software Install server (SWIS)
sl@0
   339
This is the publish and subscribe property used by SWI to publish the most
sl@0
   340
recently installed or updated application. If the application has 
sl@0
   341
subsequently been uninstalled the value may refer to an application
sl@0
   342
that no longer exists. Has value KUidNull if no applications have been 
sl@0
   343
installed
sl@0
   344
 
sl@0
   345
@publishedAll
sl@0
   346
@released
sl@0
   347
@capability ECapabilityTrustedUI capability is required to modify the value of this property
sl@0
   348
*/
sl@0
   349
const TUint KUidSwiLatestInstallation = 0x10272C8E;
sl@0
   350
sl@0
   351
/** This is the global definition of KUidUnifiedCertstoreFlag. This publish
sl@0
   352
and subscribe property is used to notify users of changes in the unified certstore
sl@0
   353
sl@0
   354
@publishedAll
sl@0
   355
@released
sl@0
   356
*/
sl@0
   357
const TUint KUidUnifiedCertstoreFlag = 0x10272C83;
sl@0
   358
sl@0
   359
/**
sl@0
   360
This is a duplicate of KUidBackupRestoreKey from the secure backup engine's sbdefs.h
sl@0
   361
This is the Publish and Subscribe property used by Secure Backup Engine to publish its current 
sl@0
   362
state. The publish and subscribe key is defined by SysAgent2 server.
sl@0
   363
@publishedAll
sl@0
   364
@released
sl@0
   365
*/
sl@0
   366
const TUint KUidBackupRestoreKey = 0x10202792;
sl@0
   367
sl@0
   368
/**
sl@0
   369
This is the publish and subscribe property used by Secure Software Install to 
sl@0
   370
Publish package UIDs which are currently being processed. The publish and subscribe key is defined by 
sl@0
   371
SysAgent2 server, but we do not want to have a dependency to the security subsystem, so we define a 
sl@0
   372
constant in sacls.h , By doing this it will be available for Core OS layer components. 
sl@0
   373
sl@0
   374
@publishedAll
sl@0
   375
@released
sl@0
   376
*/
sl@0
   377
const TUint KSWIUidsCurrentlyBeingProcessed= 0x2002D4F4;
sl@0
   378
sl@0
   379
// Deprecated - redundant method no longer used by system software
sl@0
   380
IMPORT_C TInt StartSysAgt2();
sl@0
   381
sl@0
   382
#endif //__SACLS_H__