1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericservices/systemagent/Inc/SaCls.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,382 @@
1.4 +// Copyright (c) 1997-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 "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 +//
1.18 +
1.19 +#ifndef __SACLS_H__
1.20 +#define __SACLS_H__
1.21 +
1.22 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
1.23 +#include <saclsdefines.h>
1.24 +#include <saclscommon.h>
1.25 +#endif
1.26 +
1.27 +#include <e32std.h>
1.28 +
1.29 +/**
1.30 +System agent 2 - maintained entries
1.31 +@publishedAll
1.32 +@released
1.33 +*/
1.34 +const TInt KUidProfileValue =0x100052D2;
1.35 +const TUid KUidProfile ={KUidProfileValue};
1.36 +
1.37 +/**
1.38 +@capability WriteDeviceData capability is required for changing KUidPhonePwr property value.
1.39 +@publishedAll
1.40 +@released
1.41 +*/
1.42 +const TInt KUidPhonePwrValue=0x100052C5;
1.43 +const TUid KUidPhonePwr={KUidPhonePwrValue};
1.44 +
1.45 +/**
1.46 +@publishedAll
1.47 +@released
1.48 +*/
1.49 +enum TSAPhoneStatus
1.50 + {
1.51 + ESAPhoneOff,
1.52 + ESAPhoneOn
1.53 + };
1.54 +
1.55 +/**
1.56 +@capability WriteDeviceData capability is required for changing KUidSIMStatus property value.
1.57 +@publishedAll
1.58 +@released
1.59 +*/
1.60 +const TInt KUidSIMStatusValue =0x100052C6;
1.61 +const TUid KUidSIMStatus ={KUidSIMStatusValue};
1.62 +
1.63 +/**
1.64 +@publishedAll
1.65 +@released
1.66 +*/
1.67 +enum TSASIMStatus
1.68 + {
1.69 + ESASimOk,
1.70 + ESASimNotPresent,
1.71 + ESASimRejected
1.72 + };
1.73 +
1.74 +/**
1.75 +@capability WriteDeviceData capability is required for changing KUidNetworkStatus property value.
1.76 +@publishedAll
1.77 +@released
1.78 +*/
1.79 +const TInt KUidNetworkStatusValue=0x100052C7;
1.80 +const TUid KUidNetworkStatus ={KUidNetworkStatusValue};
1.81 +
1.82 +/**
1.83 +@publishedAll
1.84 +@released
1.85 +*/
1.86 +enum TSANetworkStatus
1.87 + {
1.88 + ESANetworkAvailable,
1.89 + ESANetworkUnAvailable
1.90 + };
1.91 +
1.92 +/**
1.93 +@capability WriteDeviceData capability is required for changing KUidNetworkStrength property value.
1.94 +@publishedAll
1.95 +@released
1.96 +*/
1.97 +const TInt KUidNetworkStrengthValue =0x100052C8;
1.98 +const TUid KUidNetworkStrength ={KUidNetworkStrengthValue};
1.99 +
1.100 +/**
1.101 +@publishedAll
1.102 +@released
1.103 +*/
1.104 +enum TSANetworkStrength
1.105 + {
1.106 + ESANetworkStrengthNone,
1.107 + ESANetworkStrengthLow,
1.108 + ESANetworkStrengthMedium,
1.109 + ESANetworkStrengthHigh,
1.110 + ESANetworkStrengthUnknown
1.111 + };
1.112 +
1.113 +/**
1.114 +@capability WriteDeviceData capability is required for changing KUidChargerStatus property value.
1.115 +@publishedAll
1.116 +@released
1.117 +*/
1.118 +const TInt KUidChargerStatusValue =0x100052C9;
1.119 +const TUid KUidChargerStatus ={KUidChargerStatusValue};
1.120 +
1.121 +/**
1.122 +@publishedAll
1.123 +@released
1.124 +*/
1.125 +enum TSAChargerStatus
1.126 + {
1.127 + ESAChargerConnected,
1.128 + ESAChargerDisconnected,
1.129 + ESAChargerNotCharging
1.130 + };
1.131 +
1.132 +/**
1.133 +@capability WriteDeviceData capability is required for changing KUidBatteryStrength property value.
1.134 +@publishedAll
1.135 +@released
1.136 +*/
1.137 +const TInt KUidBatteryStrengthValue =0x100052CA;
1.138 +const TUid KUidBatteryStrength ={KUidBatteryStrengthValue};
1.139 +
1.140 +/**
1.141 +@publishedAll
1.142 +@released
1.143 +*/
1.144 +enum TSABatteryStrength
1.145 + {
1.146 + ESABatteryAlmostEmpty,
1.147 + ESABatteryLow,
1.148 + ESABatteryFull
1.149 + };
1.150 +
1.151 +/**
1.152 +@capability WriteDeviceData capability is required for changing KUidCurrentCall property value.
1.153 +@publishedAll
1.154 +@released
1.155 +*/
1.156 +const TInt KUidCurrentCallValue =0x100052CB;
1.157 +const TUid KUidCurrentCall ={KUidCurrentCallValue};
1.158 +
1.159 +/**
1.160 +@publishedAll
1.161 +@released
1.162 +*/
1.163 +enum TSACurrentCall
1.164 + {
1.165 + ESACallNone,
1.166 + ESACallVoice,
1.167 + ESACallFax,
1.168 + ESACallData,
1.169 + ESACallAlerting,
1.170 + ESACallRinging,
1.171 + ESACallAlternating,
1.172 + ESACallDialling,
1.173 + ESACallAnswering,
1.174 + ESACallDisconnecting
1.175 + };
1.176 +
1.177 +/**
1.178 +@publishedAll
1.179 +@released
1.180 +*/
1.181 +const TInt KUidDataPortValue =0x100052CC;
1.182 +const TUid KUidDataPort ={KUidDataPortValue};
1.183 +
1.184 +/**
1.185 +@publishedAll
1.186 +@released
1.187 +*/
1.188 +enum TSAPort
1.189 + {
1.190 + ESADataPortIdle,
1.191 + ESADataPortBusy
1.192 + };
1.193 +
1.194 +/**
1.195 +@publishedAll
1.196 +@released
1.197 +*/
1.198 +const TInt KUidInboxStatusValue =0x100052CD;
1.199 +const TUid KUidInboxStatus ={KUidInboxStatusValue};
1.200 +
1.201 +/**
1.202 +@publishedAll
1.203 +@released
1.204 +*/
1.205 +enum TSAInboxStatus
1.206 + {
1.207 + ESAInboxEmpty,
1.208 + ESADocumentsInInbox
1.209 + };
1.210 +
1.211 +/**
1.212 +@publishedAll
1.213 +@released
1.214 +*/
1.215 +const TInt KUidOutboxStatusValue=0x100052CE;
1.216 +const TUid KUidOutboxStatus ={KUidOutboxStatusValue};
1.217 +
1.218 +/**
1.219 +@publishedAll
1.220 +@released
1.221 +*/
1.222 +enum TSAOutboxStatus
1.223 + {
1.224 + ESAOutboxEmpty,
1.225 + ESADocumentsInOutbox
1.226 + };
1.227 +
1.228 +/**
1.229 +@publishedAll
1.230 +@released
1.231 +*/
1.232 +const TInt KUidClockValue =0x100052CF;
1.233 +const TUid KUidClock ={KUidClockValue};
1.234 +
1.235 +/**
1.236 +@publishedAll
1.237 +@released
1.238 +*/
1.239 +enum TSAClock
1.240 + {
1.241 + ESAAm,
1.242 + ESAPm
1.243 + };
1.244 +
1.245 +/**
1.246 +No longer used
1.247 +@publishedAll
1.248 +@released
1.249 +*/
1.250 +const TInt KUidAlarmValue =0x100052D0;
1.251 +const TUid KUidAlarm ={KUidAlarmValue};
1.252 +
1.253 +/**
1.254 +@publishedAll
1.255 +@released
1.256 +*/
1.257 +enum TSAAlarm
1.258 + {
1.259 + ESAAlarmOff,
1.260 + ESAAlarmOn,
1.261 + };
1.262 +
1.263 +/**
1.264 +@publishedAll
1.265 +@released
1.266 +*/
1.267 +const TInt KUidIrdaStatusValue =0x100052D1;
1.268 +const TUid KUidIrdaStatus ={KUidIrdaStatusValue};
1.269 +
1.270 +/**
1.271 +@publishedAll
1.272 +@released
1.273 +*/
1.274 +enum TSAIrdaStatus
1.275 + {
1.276 + ESAIrLoaded, //IRDA Irlap layer loaded
1.277 + ESAIrDiscoveredPeer,//Discovery begin
1.278 + ESAIrLostPeer, //Discovery end
1.279 + ESAIrConnected, //IRDA Irlap layer connected
1.280 + ESAIrBlocked, //IRDA Irlap layer blocked
1.281 + ESAIrDisConnected, //IRDA Irlap layer disconnected
1.282 + ESAIrUnloaded //IRDA Irlap layer unloaded
1.283 + };
1.284 +
1.285 +//-----------------------------------------------------------------------------
1.286 +
1.287 +/**
1.288 +This is a duplicate of Swi::KUidSoftwareInstallKey from swi/swispubsubdefs.h
1.289 +This is the publish and subscribe property used by Secure Software Install to
1.290 +publish its current state. The publish and subscribe key is defined by
1.291 +SysAgent2 server, but we do not want to have a dependency to the security
1.292 +subsystem, so we redefine a constant with the same key value here so it may be used
1.293 +by this and other Core OS layer components. We also define the property's
1.294 +values in sacls.h too, see TSASwisOperation & TSASwisOperationStatus.
1.295 +
1.296 +@publishedAll
1.297 +@released
1.298 +*/
1.299 +const TInt KSAUidSoftwareInstallKeyValue = 0x102047B7;
1.300 +
1.301 +/**
1.302 +This is a duplicate of Swi::TSwisOperation from swi/swispubsubdefs.h
1.303 +@see KSAUidSoftwareInstallKeyValue
1.304 +@publishedAll
1.305 +@released
1.306 +*/
1.307 +enum TSASwisOperation
1.308 + {
1.309 + ESASwisNone = 0x00, //< No operation
1.310 + ESASwisInstall = 0x01, //< Swis install operation is in progress
1.311 + ESASwisUninstall = 0x02, //< Swis uninstall operation is in progress
1.312 + ESASwisRestore = 0x04 //< Swis restore operation is in progress
1.313 + };
1.314 +
1.315 +
1.316 +/**
1.317 +This is a duplicate of Swi::KSwisOperationStatusMask from swi/swispubsubdefs.h
1.318 +@see KSAUidSoftwareInstallKeyValue
1.319 +@publishedAll
1.320 +@released
1.321 +*/
1.322 +const TUint KSASwisOperationStatusMask = 0xFF00;
1.323 +
1.324 +/**
1.325 +This is a duplicate of Swi::TSwisOperationStatus from swi/swispubsubdefs.h
1.326 +@see KSAUidSoftwareInstallKeyValue
1.327 +@publishedAll
1.328 +@released
1.329 +*/
1.330 +enum TSASwisOperationStatus
1.331 + {
1.332 + ESASwisStatusNone = 0x0000, //< The current operation is in progress
1.333 + ESASwisStatusSuccess = 0x0100, //< The current/last operation succeeded
1.334 + ESASwisStatusAborted = 0x0200 //< The current/last operation failed
1.335 + };
1.336 +
1.337 +
1.338 +//-----------------------------------------------------------------------------
1.339 +
1.340 +
1.341 +/** This is the global definition used by Software Install server (SWIS)
1.342 +This is the publish and subscribe property used by SWI to publish the most
1.343 +recently installed or updated application. If the application has
1.344 +subsequently been uninstalled the value may refer to an application
1.345 +that no longer exists. Has value KUidNull if no applications have been
1.346 +installed
1.347 +
1.348 +@publishedAll
1.349 +@released
1.350 +@capability ECapabilityTrustedUI capability is required to modify the value of this property
1.351 +*/
1.352 +const TUint KUidSwiLatestInstallation = 0x10272C8E;
1.353 +
1.354 +/** This is the global definition of KUidUnifiedCertstoreFlag. This publish
1.355 +and subscribe property is used to notify users of changes in the unified certstore
1.356 +
1.357 +@publishedAll
1.358 +@released
1.359 +*/
1.360 +const TUint KUidUnifiedCertstoreFlag = 0x10272C83;
1.361 +
1.362 +/**
1.363 +This is a duplicate of KUidBackupRestoreKey from the secure backup engine's sbdefs.h
1.364 +This is the Publish and Subscribe property used by Secure Backup Engine to publish its current
1.365 +state. The publish and subscribe key is defined by SysAgent2 server.
1.366 +@publishedAll
1.367 +@released
1.368 +*/
1.369 +const TUint KUidBackupRestoreKey = 0x10202792;
1.370 +
1.371 +/**
1.372 +This is the publish and subscribe property used by Secure Software Install to
1.373 +Publish package UIDs which are currently being processed. The publish and subscribe key is defined by
1.374 +SysAgent2 server, but we do not want to have a dependency to the security subsystem, so we define a
1.375 +constant in sacls.h , By doing this it will be available for Core OS layer components.
1.376 +
1.377 +@publishedAll
1.378 +@released
1.379 +*/
1.380 +const TUint KSWIUidsCurrentlyBeingProcessed= 0x2002D4F4;
1.381 +
1.382 +// Deprecated - redundant method no longer used by system software
1.383 +IMPORT_C TInt StartSysAgt2();
1.384 +
1.385 +#endif //__SACLS_H__