qtinternetradio/irqsystemeventhandler/inc/irsystemeventobserverinterface.h
changeset 5 0930554dc389
equal deleted inserted replaced
3:ee64f059b8e1 5:0930554dc389
       
     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 IRSYSTEMEVENTOBSERVERINTERFACE_H
       
    19 #define IRSYSTEMEVENTOBSERVERINTERFACE_H
       
    20 
       
    21 #include <qglobal.h>
       
    22 
       
    23 class MIRAlarmObserverInterface
       
    24 {
       
    25 public:
       
    26     virtual void alarmStarted()= 0;    
       
    27     virtual void alarmStopped() = 0;
       
    28 };
       
    29 
       
    30  
       
    31 class MIRDiskSpaceObserverInterface
       
    32 {
       
    33 public:
       
    34 
       
    35     /**
       
    36      * notifyLowDiskSpace Called when the observed disk's free disk space is
       
    37      * less than the critical level.
       
    38      */
       
    39     virtual void notifyLowDiskSpace(qint64 aCriticalLevel) = 0;
       
    40 };
       
    41 
       
    42 class MIRPropertyObserverInterface
       
    43 {
       
    44 public:
       
    45     
       
    46     virtual void callIsActivated() = 0;
       
    47     virtual void callIsDeactivated() = 0;    
       
    48     //this function is a general error call back, no matter which propertyChanged, 
       
    49     //we will call this to notify the upper layer. 
       
    50     virtual void errorCallback(int aError) = 0;
       
    51 };
       
    52 
       
    53 class MIRHeadsetObserverInterface
       
    54 {
       
    55 public:
       
    56     
       
    57     virtual void headsetIsConnected() = 0;
       
    58     virtual void headsetIsDisconnected() = 0;
       
    59 };
       
    60 
       
    61 #endif // IRSYSTEMEVENTOBSERVERINTERFACE_H