appinstaller/AppinstUi/sifuiinstallindicatorplugin/inc/sifuiinstallindicator.h
changeset 25 98b66e4fb0be
child 33 8110bf1194d1
equal deleted inserted replaced
24:84a16765cd86 25:98b66e4fb0be
       
     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:  Software install progress indicator
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SIFUIINSTALLINDICATOR_H
       
    19 #define SIFUIINSTALLINDICATOR_H
       
    20 
       
    21 #include <hbindicatorinterface.h>
       
    22 #include <qmobilityglobal.h>            // QTM namespace macros
       
    23 
       
    24 QTM_BEGIN_NAMESPACE
       
    25 class QValueSpacePublisher;
       
    26 QTM_END_NAMESPACE
       
    27 
       
    28 
       
    29 /**
       
    30  * Software install progress indicator for the status indicator area
       
    31  * and/or in universal indicator popup.
       
    32  */
       
    33 class SifUiInstallIndicator : public HbIndicatorInterface
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:     // constructor and destructor
       
    38     SifUiInstallIndicator(const QString &indicatorType);
       
    39     virtual ~SifUiInstallIndicator();
       
    40 
       
    41 public:     // from HbIndicatorInterface
       
    42     virtual bool handleInteraction(InteractionType type);
       
    43     virtual QVariant indicatorData(int role) const;
       
    44 
       
    45 protected:  // from HbIndicatorInterface
       
    46     bool handleClientRequest(RequestType type, const QVariant &parameter);
       
    47 
       
    48 private:    // new functions
       
    49     void processParameters(const QVariant &parameter);
       
    50     void publishActivityStatus(bool status);
       
    51 
       
    52 private:    // data
       
    53     QString mAppName;
       
    54     QTM_PREPEND_NAMESPACE(QValueSpacePublisher) *mPublisher;
       
    55 };
       
    56 
       
    57 #endif  // SIFUIINSTALLINDICATOR_H
       
    58