calendarui/server/CalenSvr/inc/CalenSvrAlarmManager.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   This class manages queueing and other funtionalities for alarms.	 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALENSVRALARMANAGER_H
       
    21 #define CALENSVRALARMANAGER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <asclisession.h>
       
    25 #include <calprogresscallback.h>    // MCalProgressCallBack
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CEnvironmentChangeNotifier;
       
    29 class CCalenGlobalData;
       
    30 
       
    31 /**
       
    32  * 
       
    33  **/
       
    34 NONSHARABLE_CLASS( CCalenSvrAlarmManager ) : public CBase, 
       
    35                                              public MCalProgressCallBack
       
    36     {
       
    37 public:
       
    38     static CCalenSvrAlarmManager* NewL();
       
    39     virtual ~CCalenSvrAlarmManager();
       
    40     
       
    41 public: // from   MCalProgressCallBack
       
    42     void Completed(TInt aError);
       
    43     TBool NotifyProgress();
       
    44     void Progress(TInt aPercentageCompleted);
       
    45 
       
    46 private:
       
    47     CCalenSvrAlarmManager();
       
    48     void ConstructL();
       
    49 
       
    50 private: // Methods related to system time change
       
    51     static TInt LocaleChangeCallback(TAny* aThisPtr);
       
    52     TInt HandleLocaleChange();
       
    53     void CheckSkippedAlarmsL();
       
    54     void ReQueueAlarmsL();
       
    55     void GetSkippedAgendaAlarmsL(RArray<TAlarmId>& aSkippedAlarms) const;
       
    56     void SetSystemTimeChangedFlagL(TInt aFlag);
       
    57     TUint CurrentTimeZoneIdL() const;
       
    58 
       
    59 private:
       
    60     RASCliSession iAlarmServer;
       
    61     TAlarmId iAlarmId;
       
    62 
       
    63     // For system time change notifications
       
    64     CEnvironmentChangeNotifier* iLocaleChangeNotifier; // owned
       
    65 
       
    66     TUint iTimeZone;
       
    67 
       
    68     // ETrue, while calendar global data is opening an entry view
       
    69     TBool iOpeningEntryView;
       
    70     CCalenGlobalData* iGlobalData;
       
    71    };
       
    72 
       
    73 #endif // CALENSVRALARMANAGER_H
       
    74 
       
    75 
       
    76 // End of File