qtinternetradio/irqsystemeventhandler/inc/irqsystemeventhandler_p.h
changeset 3 ee64f059b8e1
child 5 0930554dc389
equal deleted inserted replaced
2:2e1adbfc62af 3:ee64f059b8e1
       
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef IRQSYSTEMEVENTHANDLER_P_H
       
    19 #define IRQSYSTEMEVENTHANDLER_P_H
       
    20  
       
    21 #include "irdiskspaceobserverinterface.h"
       
    22 #include "iralarmobserverinterface.h" 
       
    23 
       
    24 class IRQSystemEventHandler; 
       
    25 class CIRAlarmObserver;
       
    26 class CIRDiskSpaceObserver;
       
    27 
       
    28 class IRQSystemEventHandlerPrivate : public MIRAlarmObserverInterface, public MIRDiskSpaceObserverInterface
       
    29 {
       
    30 public:
       
    31     
       
    32     IRQSystemEventHandlerPrivate(IRQSystemEventHandler *aSystemEventHandler);    
       
    33     ~IRQSystemEventHandlerPrivate();
       
    34     
       
    35     bool   init();
       
    36     bool   isBelowCriticalLevel(const qint64 aCriticalLevel = 0);
       
    37     qint64 diskCriticalLevel() const;
       
    38    
       
    39     void cancel();    
       
    40     void start();     
       
    41     
       
    42 private:    
       
    43     //to initialize all the symbian components here
       
    44     void initializeL();
       
    45     //from MIRAlarmObserverInterface
       
    46     void alarmStarted();
       
    47     void alarmStopped();   
       
    48     //from MIRDisSpaceObserver
       
    49     void notifyLowDiskSpace(qint64 aCriticalLevel);
       
    50     
       
    51 #ifdef USER_DEFINED_DISKSPACE
       
    52     void getDiskSpaceCriticalLevel(qint64 & aLevel);  
       
    53 #endif
       
    54     
       
    55 private:
       
    56     
       
    57     IRQSystemEventHandler * const q_ptr; 
       
    58     bool                          mAlarmOn;
       
    59     qint64                        mDefaultLevel;   
       
    60     
       
    61     CIRAlarmObserver*             mAlarmObserver;
       
    62     CIRDiskSpaceObserver*         mDiskSpaceObserver;     
       
    63 };
       
    64 
       
    65 #endif  //IRQSYSTEMEVENTHANDLER_P_H