phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp
changeset 21 92ab7f8d0eab
child 27 2f8f8080a020
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     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 "cpphonenotes.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CpPhoneNotes::CpPhoneNotes
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 CpPhoneNotes::CpPhoneNotes( ): QObject(NULL) 
       
    29     {
       
    30     
       
    31     }
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // CpPhoneNotes::instance
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 CpPhoneNotes * CpPhoneNotes::instance(  )
       
    38     {
       
    39     static CpPhoneNotes theInstance;
       
    40     return &theInstance; 
       
    41     }
       
    42 // -----------------------------------------------------------------------------
       
    43 // CpPhoneNotes::~CpPhoneNotes
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 CpPhoneNotes::~CpPhoneNotes(  )
       
    47     {
       
    48 
       
    49     }
       
    50 
       
    51 
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CpPhoneNotes::showGlobalProgressNote
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 void CpPhoneNotes::showGlobalProgressNote( int & noteId, const QString & text )
       
    58     {
       
    59     SMC_MOCK_METHOD2( void, int &, noteId, const QString &, text )
       
    60     }
       
    61 
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CpPhoneNotes::showGlobalNote
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 void CpPhoneNotes::showGlobalNote( 
       
    68         int & noteId,
       
    69         const QString & text,
       
    70         HbMessageBox::MessageBoxType noteType )
       
    71     {
       
    72     SMC_MOCK_METHOD3( void, int &, noteId, 
       
    73         const QString &, text, 
       
    74         HbMessageBox::MessageBoxType, noteType )
       
    75     }
       
    76 
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // CpPhoneNotes::showGlobalErrorNote
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 void CpPhoneNotes::showGlobalErrorNote( int & noteId, int errorCode )
       
    83     {
       
    84     SMC_MOCK_METHOD2( void, int &, noteId, int, errorCode )
       
    85     }
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // CpPhoneNotes::showBasicServiceList
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 void CpPhoneNotes::showBasicServiceList(
       
    92     const QString &title, 
       
    93     const QList<unsigned char> &basicServiceGroupIds)
       
    94 {
       
    95     SMC_MOCK_METHOD2( void, const QString &, title, 
       
    96         const QList<unsigned char> &, basicServiceGroupIds )
       
    97 }
       
    98 
       
    99 // -----------------------------------------------------------------------------
       
   100 // CpPhoneNotes::showBasicServiceCallDivertList
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 void CpPhoneNotes::showBasicServiceCallDivertList( 
       
   104         const QString & title,
       
   105         const QList<PSCallDivertingStatus *> & divertStatuses,
       
   106         int & selectionIndex,
       
   107         CallDivertType divertType,
       
   108         CallDivertType & divertDetailType )
       
   109     {
       
   110     SMC_MOCK_METHOD5( void, const QString &, title, 
       
   111         const QList<PSCallDivertingStatus *> &, divertStatuses, 
       
   112         int &, selectionIndex, 
       
   113         CallDivertType, divertType, 
       
   114         CallDivertType &, divertDetailType )
       
   115     }
       
   116 
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 // CpPhoneNotes::showCallDivertDetails
       
   120 // -----------------------------------------------------------------------------
       
   121 //
       
   122 void CpPhoneNotes::showCallDivertDetails( 
       
   123         const PSCallDivertingStatus & divertStatus )
       
   124     {
       
   125     SMC_MOCK_METHOD1( void, const PSCallDivertingStatus &, divertStatus )
       
   126     }
       
   127 
       
   128 
       
   129 // -----------------------------------------------------------------------------
       
   130 // CpPhoneNotes::cancelNote
       
   131 // -----------------------------------------------------------------------------
       
   132 //
       
   133 void CpPhoneNotes::cancelNote( int noteId )
       
   134     {
       
   135     SMC_MOCK_METHOD1( void, int, noteId )
       
   136     }
       
   137 
       
   138 
       
   139 // -----------------------------------------------------------------------------
       
   140 // CpPhoneNotes::activeNoteAboutToClose
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 void CpPhoneNotes::activeNoteAboutToClose()
       
   144 {
       
   145     SMC_MOCK_METHOD0( void )
       
   146 }
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // CpPhoneNotes::handleProgressNoteCanceled
       
   150 // -----------------------------------------------------------------------------
       
   151 //
       
   152 void CpPhoneNotes::handleProgressNoteCanceled()
       
   153 {
       
   154     SMC_MOCK_METHOD0( void )
       
   155 }
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // CpPhoneNotes::noteShowing
       
   159 // -----------------------------------------------------------------------------
       
   160 //
       
   161 bool CpPhoneNotes::noteShowing()
       
   162 {
       
   163     SMC_MOCK_METHOD0( bool )
       
   164 }