iaupdate/IAD/bgcindicatorplugin/inc/bgcindicator.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     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: Backgroundchecker 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      * Start the iaupdate client
       
    61      */
       
    62     void StartIaupdateL() const;
       
    63     
       
    64 private:
       
    65     /**
       
    66      * Nr of updates
       
    67      */
       
    68     int mNrOfUpdates;
       
    69     
       
    70 };
       
    71 
       
    72 #endif // BGCINDICATOR_H
       
    73