alarmui/AppServerStuff/Inc/AlarmService.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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: Works as a proxy together with RAknAlarmClient and CAknAlarmWrapper between EikAlert and CAlmAlarmControl.  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __AKNALARMSERVICE_H__
       
    21 #define __AKNALARMSERVICE_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknServerApp.h>
       
    25 #include "AlarmServiceDefs.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CAlmAlarmControl;
       
    29 
       
    30 
       
    31 // entry point
       
    32 IMPORT_C MAknAlarmServiceStartup* Entry();
       
    33 
       
    34 
       
    35 /**
       
    36 * An app service for passing commands from 
       
    37 * CEikAlmControlSupervisor to CAlmAlarmControl.
       
    38 **/
       
    39 NONSHARABLE_CLASS(CAknAlarmService): public CAknAppServiceBase,
       
    40                                      public MAknAlarmServiceStartup
       
    41     {
       
    42 public: // from MAknAlarmServiceStartup
       
    43     void StartupNewSessionL(TAny* aAny = 0);
       
    44 
       
    45 public:
       
    46     CAknAlarmService();
       
    47     ~CAknAlarmService();
       
    48 
       
    49 public:
       
    50     void CmdAcknowledgeAlarm();
       
    51     TBool CmdTaskAwayFromAlarmL();
       
    52     TBool CmdTaskAwayFromAlarmL(TInt aMinutesToSnooze);
       
    53 
       
    54 public: // from CAknAppServiceBase
       
    55     void ServiceL(const RMessage2& aMessage);
       
    56 
       
    57 private:
       
    58     void UpdateAlarmInfo(const RMessage2& aMessage);
       
    59     void SetAlertState(TInt aAlarmServerStateFlags);
       
    60 
       
    61 private:
       
    62     RMessage2 iMessage;
       
    63     CAlmAlarmControl* iAlarmAlert;
       
    64 
       
    65     };
       
    66 
       
    67 #endif // __AKNALARMSERVICE_H__
       
    68 
       
    69 
       
    70 // End of File