phoneplugins/phoneindicatorplugin/inc/phoneindicatorinterface.h
branchRCL_3
changeset 61 41a7f70b3818
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
       
     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:  
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef PHONEINDICATORINTERFACE_H
       
    19 #define PHONEINDICATORINTERFACE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 #include <QScopedPointer>
       
    24 #include <QVariant>
       
    25 #include <hbindicatorinterface.h>
       
    26 #include "phoneindicators.h"
       
    27 
       
    28 #include <xqappmgr.h>
       
    29 
       
    30 class PhoneIndicatorInterface : public HbIndicatorInterface
       
    31 {
       
    32 public:
       
    33     PhoneIndicatorInterface(const QString &indicatorType,
       
    34                                  int typeIndex,
       
    35                                  Interaction interaction);
       
    36 
       
    37     ~PhoneIndicatorInterface(){}
       
    38 
       
    39     bool handleInteraction(InteractionType type);
       
    40     QVariant indicatorData(int role) const;
       
    41 
       
    42 protected:
       
    43 
       
    44     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    45 
       
    46 private:
       
    47 
       
    48     int m_typeIndex;
       
    49     Interaction m_interaction;
       
    50     QString m_primaryText;
       
    51     QString m_secondaryText;
       
    52     QString m_icon;
       
    53     QString m_icon2;
       
    54     QVariant m_parameter;
       
    55 };
       
    56 
       
    57 #endif // PHONEINDICATORINTERFACE_H