iaupdate/IAD/bgcindicatorplugin/inc/bgcindicator.h
changeset 25 98b66e4fb0be
child 44 329d304c1aa1
equal deleted inserted replaced
24:84a16765cd86 25:98b66e4fb0be
       
     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: Message Indicator class
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef BGCINDICATOR_H
       
    19 #define BGCINDICATOR_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include <hbindicatorinterface.h>
       
    24 
       
    25 /**
       
    26  * Message indicator class. 
       
    27  * Handles client request and showing the indications. 
       
    28  */
       
    29 class BgcIndicator : public HbIndicatorInterface
       
    30 {
       
    31 public:
       
    32     /**
       
    33      * Constructor
       
    34      */
       
    35     BgcIndicator(const QString &indicatorType);
       
    36     
       
    37     /**
       
    38      * Destructor
       
    39      */
       
    40     ~BgcIndicator();
       
    41     
       
    42     /**
       
    43      * @see HbIndicatorInterface
       
    44      */
       
    45     bool handleInteraction(InteractionType type);
       
    46     
       
    47     /**
       
    48      * @see HbIndicatorInterface
       
    49      */
       
    50     QVariant indicatorData(int role) const;
       
    51     
       
    52 protected:
       
    53     /**
       
    54      * @see HbIndicatorInterface
       
    55      */
       
    56     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    57     
       
    58 private: 
       
    59     /**
       
    60      * Prepares the display name from stream.
       
    61      * @param dataStream data stream. 
       
    62      */
       
    63     //void prepareDisplayName(QDataStream& dataStream);
       
    64     
       
    65     //HLa
       
    66     void StartIaupdateL() const;
       
    67     
       
    68 private:
       
    69     /**
       
    70      * Nr of updates
       
    71      */
       
    72     int mNrOfUpdates;
       
    73     
       
    74 };
       
    75 
       
    76 #endif // BGCINDICATOR_H
       
    77