commonappservices/alarmserver/Shared/Include/ASShdOpCodes.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 1999-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 "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 //
       
    15 
       
    16 #ifndef __ASSHDOPCODES_H__
       
    17 #define __ASSHDOPCODES_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32std.h>
       
    21 
       
    22 // Constants
       
    23 const TInt KAlarmServerMajorVN = 2;
       
    24 const TInt KAlarmServerMinorVN = 0;
       
    25 const TInt KAlarmServerBuildVN = 0;
       
    26 //
       
    27 const TInt KAlarmServerAsynchronousSlotCount	= 5;
       
    28 //
       
    29 const TUid KAlarmServerUid = { 0x101F5027 };
       
    30 
       
    31 // Literal constants
       
    32 
       
    33 
       
    34 _LIT(KAlarmServerName, "!AlarmServer");
       
    35 
       
    36 _LIT(KAlarmServerImageName, "AlarmServer");
       
    37 
       
    38 #define KCapabilityNone 0
       
    39 #define KCapabilityCustomCheckData 100
       
    40 #define KCapabilityWriteUserData 200
       
    41 #define KCapabilityWriteDeviceData 300
       
    42 
       
    43 // Enumerations
       
    44 /**
       
    45  * The op-codes used to communicate between the
       
    46  * alarm client and alarm server.
       
    47  */
       
    48 enum TASShdOpCode
       
    49 	{
       
    50 	//No Capability requirement
       
    51 	EASShdOpCodeFirst = KCapabilityNone,				
       
    52 	EASShdOpCodeGetAlarmCategory,					
       
    53 	EASShdOpCodeGetAlarmOwner,						
       
    54 	EASShdOpCodeGetAlarmStatus,						
       
    55 	EASShdOpCodeGetAlarmDayOrTimed,					
       
    56 	EASShdOpCodeGetAlarmCharacteristics,			
       
    57 	EASShdOpCodeAlarmDataSize,					
       
    58 	EASShdOpCodeGetAlarmCountForCategory,			
       
    59 	EASShdOpCodeGetAvailableCategoryList,			
       
    60 	EASShdOpCodeGetAlarmIdListForCategory,			
       
    61 	EASShdOpCodeAlarmCountByState,					
       
    62 	EASShdOpCodeGetAlarmIdListByState,				
       
    63 	EASShdOpCodeGetAlarmIdList,					
       
    64 	EASShdOpCodeGetNextDueAlarmId,					
       
    65 	EASShdOpCodeNumberOfAlarmsActiveInQueue,		
       
    66 	EASShdOpCodeGetAlarmSoundState,					
       
    67 	EASShdOpCodeGetAlarmSoundsSilentUntil,				
       
    68 	EASShdOpCodeAlarmSoundsTemporarilySilenced,			
       
    69 	EASShdOpCodeGetAlarmPlayIntervals,				
       
    70 	EASShdOpCodeNotifyChange,					
       
    71 	EASShdOpCodeNotifyChangeCancel,					
       
    72 	EASShdOpCodeFetchTransferBuffer,				
       
    73 	EASShdOpCodeAlarmCount,							
       
    74 	EASShdOpCodeDbgShutDownServer,					
       
    75 	EASShdOpCodeDbgFailAlloc,						
       
    76 	EASShdOpCodeDbgPreventUserNotify,				
       
    77 	EASShdOpCodeDbgSnoozeAlarm,					
       
    78 	EASShdOpCodeFlushServer,
       
    79 #ifdef SYMBIAN_ALARM_REPEAT_EXTENSIONS
       
    80 	EASShdOpCodeGetAlarmDays,
       
    81 	EASShdOpCodeGetContinuous,
       
    82 #endif
       
    83 	EASShdOpCodeDbgSetEnvironmentChangesHandling,
       
    84 
       
    85 	//No capability if client owns the alarm 
       
    86 	//otherwise ReadUserData 	
       
    87 	EASShdOpCodeGetAlarmDetails = KCapabilityCustomCheckData,	
       
    88 	EASShdOpCodeGetAlarmData,						
       
    89 	EASShdOpCodeAlarmAtIndex,						
       
    90 	
       
    91 	// No capability if client owns the alarm otherwise WriteDeviceData.
       
    92 	EASShdOpCodeAlarmNotificationCancelAndDeQueue,	
       
    93 	EASShdOpCodeAlarmDelete,						
       
    94 	EASShdOpCodeSetAlarmStatus,						
       
    95 	EASShdOpCodeSetAlarmDayOrTimed,					
       
    96 	EASShdOpCodeSetAlarmCharacteristics,
       
    97 	EASShdOpCodeSetClientData,						
       
    98 	EASShdOpCodeAlarmDataAttach,					
       
    99 	EASShdOpCodeAlarmDataDetach,
       
   100 #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT
       
   101 	EASShdOpCodeSetWakeup,
       
   102 #endif
       
   103 #ifdef SYMBIAN_ALARM_REPEAT_EXTENSIONS
       
   104 	EASShdOpCodeSetAlarmDays,
       
   105 	EASShdOpCodeSetContinuous,
       
   106 #endif
       
   107 	
       
   108 	// WriteUserData 
       
   109 	EASShdOpCodeAlarmAdd = KCapabilityWriteUserData,	
       
   110 	EASShdOpCodeAlarmAddWithNotification,			
       
   111 	EASShdOpCodeAllocateAndReturnAlarmId,			
       
   112 	EASShdOpCodeOrphanAlarm, 						
       
   113 
       
   114 	// WriteDeviceData 
       
   115 	EASShdOpCodeSetAlarmSoundState = KCapabilityWriteDeviceData,
       
   116 	EASShdOpCodeSetAlarmSoundsSilentUntil,			
       
   117 	EASShdOpCodeSetAlarmSoundsSilentFor,			
       
   118 	EASShdOpCodeCancelAlarmSilence,					
       
   119 	EASShdOpCodeSetAlarmPlayIntervals,				
       
   120 	EASShdOpCodeSetAlarmStatusByCategory,			
       
   121 	EASShdOpCodeAlarmDeleteAllByCategory,			
       
   122 	EASShdOpCodeAlarmDeleteByCategory,			
       
   123 	EASShdOpCodeAlarmDeleteByCalendarFile,
       
   124 	EASShdOpCodeSetAlarmStatusForCalendarFile,
       
   125 	// End Marker no Capability
       
   126 	EASShdOpCodeLast								
       
   127 	};
       
   128 
       
   129 #endif