phoneapp/phoneuiqtviewadapter/inc/phoneindicatorcontroller.h
changeset 37 ba76fc04e6c2
child 45 6b911d05207e
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*!
       
     2 * Copyright (c) 2010 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:  Handles phone indicators.
       
    15 */
       
    16 
       
    17 #ifndef PHONEINDICATORCONTROLLER_H_
       
    18 #define PHONEINDICATORCONTROLLER_H_
       
    19 
       
    20 
       
    21 #include <QObject>
       
    22 #include <xqsettingsmanager.h>
       
    23 #include <hbindicator.h>
       
    24 
       
    25 // FORWARD DECLARATION
       
    26 class LogsModel;
       
    27 class LogsFilter;
       
    28 class PhoneIndicatorController : public QObject
       
    29     {
       
    30     Q_OBJECT
       
    31 public:
       
    32     PhoneIndicatorController(QObject *parent = 0);
       
    33     virtual ~PhoneIndicatorController();
       
    34     
       
    35     void setActiveCallData( const TDesC &text, const TDesC &icon );
       
    36     void clearActiveCallData();
       
    37     void enableActiveCallIndicator();
       
    38     void disableActiveCallIndicator();
       
    39     
       
    40 private slots:
       
    41     void updateMissedCallIndicator(const XQSettingsKey &key, const QVariant &value);
       
    42     void setMissedallIndicatorData();
       
    43     
       
    44 private:
       
    45     HbIndicator m_indicator;
       
    46     LogsModel  *m_logsModel;
       
    47     LogsFilter *m_missedCallsFilter;
       
    48     XQSettingsManager * m_setManager;
       
    49     
       
    50     QString m_cli;
       
    51     QString m_callImage;
       
    52     };
       
    53 
       
    54 #endif /* PHONEINDICATORCONTROLLER_H_ */