app/tsrc/unittest_mpglobalpopuphandler/inc/unittest_mpglobalpopuphandler.h
changeset 48 af3740e3753f
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
       
     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: Unit test for MpGlobalPopupHandler
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTMPGLOBALPOPUPHANDLER_H
       
    19 #define TESTMPGLOBALPOPUPHANDLER_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 
       
    23 class MpGlobalPopupHandler;
       
    24 
       
    25 class TestMpGlobalPopupHandler : public QObject
       
    26 {
       
    27     Q_OBJECT
       
    28 
       
    29 public:
       
    30 
       
    31     TestMpGlobalPopupHandler();
       
    32     ~TestMpGlobalPopupHandler();
       
    33 
       
    34 public slots:
       
    35     void initTestCase();
       
    36     void cleanupTestCase();
       
    37     void init();
       
    38     void cleanup();
       
    39     
       
    40 private slots:
       
    41     void testHandleLibraryAboutToUpdate(); 
       
    42     void testScanCountChanged();
       
    43     void testHandleScanFinished();
       
    44     void testLaunchUnableToCotinueDueUsb();
       
    45     void testLaunchUsbBlockingNote();
       
    46     void testLaunchMTPInfoDialog();
       
    47     void testOutstandingPopupClosing();
       
    48     void testLaunchScanFinishedDialog();
       
    49     void testLaunchDiskFullDialog();
       
    50     void testSetOutstandingPopup(); 
       
    51 
       
    52 private:
       
    53 
       
    54     MpGlobalPopupHandler          *mTest;
       
    55     QTranslator                   *mMpTranslator; 
       
    56 
       
    57 };
       
    58 
       
    59 #endif  // TESTMPGLOBALPOPUPHANDLER_H