cellular/psuinotes/tsrc/ut_psuinotes/ut_psuinotes.h
branchRCL_3
changeset 19 7d48bed6ce0c
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UT_PSUINOTES_H
       
    19 #define UT_PSUINOTES_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 #include <mockservice.h>
       
    23 #include <etelmm.h>
       
    24 #include <psetcalldivertingwrapper.h>
       
    25 
       
    26 class HbDialog;
       
    27 
       
    28 class UT_PsUiNotes : public QObject, MockService
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:    
       
    33     UT_PsUiNotes();
       
    34     ~UT_PsUiNotes();
       
    35     
       
    36 private: // From QObject
       
    37     void timerEvent( QTimerEvent* event );
       
    38     
       
    39 private: // Tools
       
    40     HbDialog *visibleDialog();
       
    41     void verifyGlobalNote( const QString& noteText );
       
    42     void appendAllEtelServices(QList<PSCallDivertingStatus*>& list);
       
    43     void appendService(
       
    44             QList<PSCallDivertingStatus*>& list, 
       
    45             RMobilePhone::TMobileService service);
       
    46     
       
    47 private slots:
       
    48 
       
    49     void init();
       
    50     void cleanup();
       
    51     
       
    52     void t_memleak();
       
    53     
       
    54     void t_showProgressNote();
       
    55     void t_showGlobalProgressNote();
       
    56     void t_showGlobalNote();
       
    57     void t_showGlobalErrorNote();
       
    58     void t_showCallDivertDetails();
       
    59     void t_showPasswordQueryDialog();
       
    60     void t_cancelNote();
       
    61     void t_showNotificationDialog();
       
    62 
       
    63 private:
       
    64     int m_noteid1;
       
    65     int m_noteid2;
       
    66     int m_noteid3;
       
    67     int timerid;
       
    68     QString wantedNoteText;
       
    69 
       
    70 };
       
    71 
       
    72 #endif // UT_PSUINOTES_H