appinstaller/AppinstUi/sifuiinstallindicatorplugin/tsrc/testindiapp/testindiapp.h
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     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:  Test application for SW install indicator plugin
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTINDICAPPLICATION_H
       
    19 #define TESTINDICAPPLICATION_H
       
    20 
       
    21 #include <hbapplication.h>
       
    22 #include <qmobilityglobal.h>            // QTM namespace macros
       
    23 
       
    24 class HbMainWindow;
       
    25 class HbView;
       
    26 class HbIndicator;
       
    27 
       
    28 QTM_BEGIN_NAMESPACE
       
    29 class QValueSpaceSubscriber;
       
    30 QTM_END_NAMESPACE
       
    31 
       
    32 
       
    33 class TestInstallIndicator : public HbApplication
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:     // constructor and destructor
       
    38     TestInstallIndicator(int& argc, char* argv[]);
       
    39     ~TestInstallIndicator();
       
    40     bool isIndicatorActive();
       
    41 
       
    42 private slots:  // new functions
       
    43     void handleIndicatorActivity();
       
    44     void activatePressed();
       
    45     void deactivatePressed();
       
    46 
       
    47 private:    // data
       
    48     HbMainWindow *mMainWindow;
       
    49     HbView       *mMainView;
       
    50     HbIndicator  *mIndicator;
       
    51     QTM_PREPEND_NAMESPACE(QValueSpaceSubscriber) *mSubscriber;
       
    52 };
       
    53 
       
    54 #endif  // TESTINDICAPPLICATION_H
       
    55