alarmui/inc/alarmsourcecontextdef.h
changeset 0 f979ecb2b13e
child 18 d68a4b5d5885
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Alarm related source context definitions.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef ALARMSOURCECONTEXTDEF_H
       
    22 #define ALARMSOURCECONTEXTDEF_H
       
    23 
       
    24 #include <cfdefinitions.h>
       
    25 
       
    26 //-----------------------------------------------------------------------------
       
    27 // Source:  'AlarmUI'
       
    28 //-----------------------------------------------------------------------------
       
    29 //
       
    30 _LIT( KAlarmUISource, "AlarmUI" );
       
    31 
       
    32 
       
    33 //-----------------------------------------------------------------------------
       
    34 // Source:  'AlarmUI'
       
    35 // Type:    'State'
       
    36 //
       
    37 // Describes AlarmUI activation and deactivation.
       
    38 // State transitions:
       
    39 //     [Inactive] -> [Calendar|Clock|Unknown] -> [Stopped|Snoozed] -> [Inactive]
       
    40 //
       
    41 //-----------------------------------------------------------------------------
       
    42 //
       
    43 _LIT( KAlarmUISourceState, "State" );
       
    44 
       
    45 // Context values
       
    46 _LIT_CONTEXT_VALUES( KAlarmUISourceStateValues ) =
       
    47     {
       
    48     // alarm ui is not visible, no active alarms
       
    49     _S( "Inactive" ),
       
    50 
       
    51     // calendar alarm expired
       
    52     _S( "Calendar" ),
       
    53 
       
    54     // clock alarm expired
       
    55     _S( "Clock" ),
       
    56 
       
    57     // unknown alarm expired
       
    58     _S( "Unknown" )
       
    59     };
       
    60 
       
    61 // Enumerations for accessing values array
       
    62 enum TAlarmSourceStateValues
       
    63     {
       
    64     EStateAlarmInactive,
       
    65     EStateCalendarAlarm,
       
    66     EStateClockAlarm,
       
    67     EStateOtherAlarm
       
    68     };
       
    69 
       
    70 //-----------------------------------------------------------------------------
       
    71 // Capabilities
       
    72 _LIT_SECURITY_POLICY_PASS( KAlarmUISourceStateSec );
       
    73 
       
    74 
       
    75 //-----------------------------------------------------------------------------
       
    76 // Source:  'AlarmUI'
       
    77 // Type:    'Command'
       
    78 //
       
    79 // Describes commands available for AlarmUI.
       
    80 //-----------------------------------------------------------------------------
       
    81 //
       
    82 _LIT( KAlarmUISourceCommand, "Command" );
       
    83 
       
    84 // Context values
       
    85 _LIT_CONTEXT_VALUES( KAlarmUISourceCommandValues ) =
       
    86     {
       
    87     // command to stop an active alarm
       
    88     _S( "Stop" ),
       
    89 
       
    90     // command to snooze an active alarm
       
    91     _S( "Snooze" )
       
    92     };
       
    93 
       
    94 // Enumerations for accessing values array
       
    95 enum TAlarmSourceCommandValues
       
    96     {
       
    97     ECommandAlarmStop,
       
    98     ECommandAlarmSnooze
       
    99     };
       
   100 
       
   101 //-----------------------------------------------------------------------------
       
   102 // Capabilities
       
   103 _LIT_SECURITY_POLICY_PASS( KAlarmUISourceCommandSec );
       
   104 
       
   105 
       
   106 //-----------------------------------------------------------------------------
       
   107 // Source:  'AlarmUI'
       
   108 // Type:    'Result'
       
   109 //
       
   110 // Describes executed action (result) in AlarmUI.
       
   111 //-----------------------------------------------------------------------------
       
   112 //
       
   113 _LIT( KAlarmUISourceResult, "Result" );
       
   114 
       
   115 // Context values
       
   116 _LIT_CONTEXT_VALUES( KAlarmUISourceResultValues ) =
       
   117     {
       
   118     // alarm was stopped
       
   119     _S( "Stopped" ),
       
   120 
       
   121     // alarm was snoozed
       
   122     _S( "Snoozed" ),
       
   123 
       
   124     // alarm was silenced
       
   125     _S( "Silenced" ),
       
   126     
       
   127     // alarm was Stopped.The sender(Calendar) can exit if required.
       
   128     _S( "StoppedAndExit" )
       
   129     };
       
   130 
       
   131 // Enumerations for accessing values array
       
   132 enum TAlarmSourceResultValues
       
   133     {
       
   134     EResultAlarmStopped,
       
   135     EResultAlarmSnoozed,
       
   136     EResultAlarmSilenced,
       
   137     EResultAlarmStoppedAndExit
       
   138     };
       
   139 
       
   140 //-----------------------------------------------------------------------------
       
   141 // Capabilities
       
   142 _LIT_SECURITY_POLICY_PASS( KAlarmUISourceResultSec );
       
   143 
       
   144 
       
   145 //-----------------------------------------------------------------------------
       
   146 // Source:  'AlarmUI'
       
   147 // Type:    'Action'
       
   148 //
       
   149 // Action id for snoozing the active alarm.
       
   150 //-----------------------------------------------------------------------------
       
   151 //
       
   152 _LIT_CONTEXT_VALUES( KAlarmUIActions ) =
       
   153     {
       
   154     // snooze the active alarm
       
   155     _S( "AlarmUI.Snooze" ),
       
   156 
       
   157     // stop the active alarm
       
   158     _S( "AlarmUI.Stop" ),
       
   159 
       
   160     // print a debug string
       
   161     _S( "AlarmUI.Debug" )
       
   162 
       
   163     };
       
   164 
       
   165 // Enumerations for accessing values array
       
   166 enum TAlarmUIActionValues
       
   167     {
       
   168     EActionSnooze,
       
   169     EActionStop,
       
   170     EDebug
       
   171     };
       
   172 
       
   173 //-----------------------------------------------------------------------------
       
   174 // Capabilities
       
   175 _LIT_SECURITY_POLICY_PASS( KAlarmUIActionSec );
       
   176 
       
   177 
       
   178 #endif // ALARMSOURCECONTEXTDEF_H
       
   179 
       
   180 
       
   181 // End of File