classicui_plat/alarm_api/inc/EIKALMCT.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 1997-1999 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined (__EIKALMCT_H__)
       
    20 #define __EIKALMCT_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <uikon/eiksvfty.h>
       
    24 
       
    25 //
       
    26 // CEikAlarmControl class
       
    27 //
       
    28 
       
    29 class MAlarmObserver;
       
    30 class CEikAlmControlSupervisor;
       
    31 class CEikServAppUiBase;
       
    32 class TASShdAlarm;
       
    33 
       
    34 class CEikAlarmControl : public CBase, public MEikServAlarm
       
    35     {
       
    36 public: // specific
       
    37     IMPORT_C CEikAlarmControl(CEikAlmControlSupervisor* aSupervisor, CEikServAppUiBase* aAppUi);
       
    38     IMPORT_C ~CEikAlarmControl();
       
    39     IMPORT_C void ConstructL();
       
    40 public: // from MEikServAlarm
       
    41     void Release();
       
    42     void ShowAlarm();
       
    43     void HideAlarm();
       
    44     TInt CurrentServerState() const;
       
    45     void UpdateSoundPauseTimeInterval(TInt aMinutes);
       
    46     void UpdateForAlarmServerState(TInt aNewAlarmServerState);
       
    47     void UpdateAlarmInfo(const TASShdAlarm& aAlarm,const TFullName& aOwner);
       
    48     void StartPlayAlarmL(const TDesC& aAlarmName);
       
    49     void StopPlayAlarm();
       
    50 private: // specific
       
    51     void LayoutButtons(const TRect& aRect);
       
    52     // void CheckSilenceButtonDimmed();
       
    53 
       
    54 private:
       
    55     //CEikControlGroup* iButtons;
       
    56     TInt iCurrentAlarmServerState;
       
    57     CEikAlmControlSupervisor* iSupervisor;
       
    58     CEikServAppUiBase* iAppUi;
       
    59 
       
    60     RLibrary iLibrary;
       
    61     MAlarmObserver* iAlarm;
       
    62 	TInt iSpare;
       
    63     };
       
    64 
       
    65 #endif