phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_psuinotes.cpp
changeset 56 5bcb308bd24d
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
       
     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 #include <QDebug>
       
    18 #include <QString>
       
    19 #include <smcmockclassincludes.h>
       
    20 #include <psuinotes.h>
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // PsUiNotes::PsUiNotes
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 PsUiNotes::PsUiNotes(  )
       
    29     //:
       
    30     //QObject( /**/ )
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // PsUiNotes::instance
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 PsUiNotes * PsUiNotes::instance(  )
       
    41     {
       
    42     static PsUiNotes theInstance;
       
    43     return &theInstance; 
       
    44     }
       
    45 // -----------------------------------------------------------------------------
       
    46 // PsUiNotes::~PsUiNotes
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 PsUiNotes::~PsUiNotes(  )
       
    50     {
       
    51 
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // PsUiNotes::showGlobalProgressNote
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void PsUiNotes::showGlobalProgressNote( 
       
    59         int & noteId,
       
    60         const QString & text )
       
    61     {
       
    62     SMC_MOCK_METHOD2( void, int &, noteId, 
       
    63         const QString &, text )
       
    64     }
       
    65 
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // PsUiNotes::showGlobalNote
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 void PsUiNotes::showGlobalNote( 
       
    72         int & noteId,
       
    73         const QString & text,
       
    74         HbMessageBox::MessageBoxType noteType )
       
    75     {
       
    76     SMC_MOCK_METHOD3( void, int &, noteId, 
       
    77         const QString &, text, 
       
    78         HbMessageBox::MessageBoxType, noteType )
       
    79     }
       
    80 
       
    81 
       
    82 // -----------------------------------------------------------------------------
       
    83 // PsUiNotes::showGlobalErrorNote
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 void PsUiNotes::showGlobalErrorNote( 
       
    87         int & noteId,
       
    88         int errorCode )
       
    89     {
       
    90     SMC_MOCK_METHOD2( void, int &, noteId, 
       
    91         int, errorCode )
       
    92     }
       
    93 
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // PsUiNotes::showCallDivertDetails
       
    97 // -----------------------------------------------------------------------------
       
    98 //
       
    99 void PsUiNotes::showCallDivertDetails( 
       
   100         const QList<PSCallDivertingStatus *> & divertingStatusList )
       
   101     {
       
   102     SMC_MOCK_METHOD1( void, const QList<PSCallDivertingStatus *> &, divertingStatusList )
       
   103     }
       
   104 
       
   105 
       
   106 // -----------------------------------------------------------------------------
       
   107 // PsUiNotes::showPasswordQueryDialog
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 void PsUiNotes::showPasswordQueryDialog( 
       
   111         const QString & title,
       
   112         const QValidator & validator,
       
   113         int maxPasswordLength )
       
   114     {
       
   115     SMC_MOCK_METHOD3( void, const QString &, title, 
       
   116         const QValidator &, validator, 
       
   117         int, maxPasswordLength )
       
   118     }
       
   119 
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 // PsUiNotes::cancelNote
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 void PsUiNotes::cancelNote( 
       
   126         int noteId )
       
   127     {
       
   128     SMC_MOCK_METHOD1( void, int, noteId )
       
   129     }
       
   130 
       
   131 
       
   132 // -----------------------------------------------------------------------------
       
   133 // PsUiNotes::noteShowing
       
   134 // -----------------------------------------------------------------------------
       
   135 //
       
   136 bool PsUiNotes::noteShowing(  )
       
   137     {
       
   138     SMC_MOCK_METHOD0( bool )
       
   139     }
       
   140 
       
   141 
       
   142 // -----------------------------------------------------------------------------
       
   143 // PsUiNotes::finishedPasswordQueryDialog
       
   144 // -----------------------------------------------------------------------------
       
   145 //
       
   146 void PsUiNotes::finishedPasswordQueryDialog( 
       
   147         HbAction * action )
       
   148     {
       
   149 //    SMC_MOCK_METHOD1( void, HbAction *, action )
       
   150     }
       
   151 
       
   152 
       
   153 // -----------------------------------------------------------------------------
       
   154 // PsUiNotes::showNotificationDialog
       
   155 // -----------------------------------------------------------------------------
       
   156 //
       
   157 void PsUiNotes::showNotificationDialog( 
       
   158         const QString & text )
       
   159     {
       
   160     SMC_MOCK_METHOD1( void, const QString &, text )
       
   161     }
       
   162 
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // PsUiNotes::showGlobalNotificationDialog
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 void PsUiNotes::showGlobalNotificationDialog( 
       
   169         const QString & text )
       
   170     {
       
   171     SMC_MOCK_METHOD1( void, const QString &, text )
       
   172     }
       
   173 
       
   174 
       
   175 // -----------------------------------------------------------------------------
       
   176 // PsUiNotes::activeNoteAboutToClose
       
   177 // -----------------------------------------------------------------------------
       
   178 //
       
   179 void PsUiNotes::activeNoteAboutToClose()
       
   180 {
       
   181     SMC_MOCK_METHOD0( void )
       
   182 }
       
   183 
       
   184 
       
   185 // -----------------------------------------------------------------------------
       
   186 // PsUiNotes::handleProgressNoteCanceled
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 void PsUiNotes::handleProgressNoteCanceled()
       
   190 {
       
   191     SMC_MOCK_METHOD0( void )
       
   192 }
       
   193 
       
   194 
       
   195 // -----------------------------------------------------------------------------
       
   196 // PsUiNotes::passwordTextChanged
       
   197 // -----------------------------------------------------------------------------
       
   198 //
       
   199 
       
   200 
       
   201 void PsUiNotes::passwordTextChanged()
       
   202 {
       
   203     SMC_MOCK_METHOD0( void )
       
   204 }