phoneplugins/phoneindicatorplugin/inc/phoneindicatorinterface.h
changeset 27 2f8f8080a020
child 45 6b911d05207e
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
       
     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 <QVariant>
       
    24 #include <hbindicatorinterface.h>
       
    25 #include "phoneindicators.h"
       
    26 
       
    27 class PhoneIndicatorInterface : public HbIndicatorInterface
       
    28 {
       
    29 public:
       
    30     PhoneIndicatorInterface(const QString &indicatorType,
       
    31                                  int typeIndex,
       
    32                                  Interaction interaction);
       
    33 
       
    34     ~PhoneIndicatorInterface();
       
    35 
       
    36     bool handleInteraction(InteractionType type);
       
    37     QVariant indicatorData(int role) const;
       
    38 
       
    39 protected:
       
    40 
       
    41     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    42 
       
    43 private:
       
    44 
       
    45     int m_typeIndex;
       
    46     Interaction m_interaction;
       
    47     QString m_primaryText;
       
    48     QString m_secondaryText;
       
    49     QString m_icon;
       
    50     QString m_icon2;
       
    51     QVariant m_parameter;
       
    52 };
       
    53 
       
    54 #endif // PHONEINDICATORINTERFACE_H