--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp Fri Mar 19 09:28:42 2010 +0200
@@ -0,0 +1,164 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+#include <QDebug>
+#include <QString>
+#include <smcmockclassincludes.h>
+#include "cpphonenotes.h"
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::CpPhoneNotes
+// -----------------------------------------------------------------------------
+//
+CpPhoneNotes::CpPhoneNotes( ): QObject(NULL)
+ {
+
+ }
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::instance
+// -----------------------------------------------------------------------------
+//
+CpPhoneNotes * CpPhoneNotes::instance( )
+ {
+ static CpPhoneNotes theInstance;
+ return &theInstance;
+ }
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::~CpPhoneNotes
+// -----------------------------------------------------------------------------
+//
+CpPhoneNotes::~CpPhoneNotes( )
+ {
+
+ }
+
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showGlobalProgressNote
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showGlobalProgressNote( int & noteId, const QString & text )
+ {
+ SMC_MOCK_METHOD2( void, int &, noteId, const QString &, text )
+ }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showGlobalNote
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showGlobalNote(
+ int & noteId,
+ const QString & text,
+ HbMessageBox::MessageBoxType noteType )
+ {
+ SMC_MOCK_METHOD3( void, int &, noteId,
+ const QString &, text,
+ HbMessageBox::MessageBoxType, noteType )
+ }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showGlobalErrorNote
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showGlobalErrorNote( int & noteId, int errorCode )
+ {
+ SMC_MOCK_METHOD2( void, int &, noteId, int, errorCode )
+ }
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showBasicServiceList
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showBasicServiceList(
+ const QString &title,
+ const QList<unsigned char> &basicServiceGroupIds)
+{
+ SMC_MOCK_METHOD2( void, const QString &, title,
+ const QList<unsigned char> &, basicServiceGroupIds )
+}
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showBasicServiceCallDivertList
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showBasicServiceCallDivertList(
+ const QString & title,
+ const QList<PSCallDivertingStatus *> & divertStatuses,
+ int & selectionIndex,
+ CallDivertType divertType,
+ CallDivertType & divertDetailType )
+ {
+ SMC_MOCK_METHOD5( void, const QString &, title,
+ const QList<PSCallDivertingStatus *> &, divertStatuses,
+ int &, selectionIndex,
+ CallDivertType, divertType,
+ CallDivertType &, divertDetailType )
+ }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showCallDivertDetails
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showCallDivertDetails(
+ const PSCallDivertingStatus & divertStatus )
+ {
+ SMC_MOCK_METHOD1( void, const PSCallDivertingStatus &, divertStatus )
+ }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::cancelNote
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::cancelNote( int noteId )
+ {
+ SMC_MOCK_METHOD1( void, int, noteId )
+ }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::activeNoteAboutToClose
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::activeNoteAboutToClose()
+{
+ SMC_MOCK_METHOD0( void )
+}
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::handleProgressNoteCanceled
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::handleProgressNoteCanceled()
+{
+ SMC_MOCK_METHOD0( void )
+}
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::noteShowing
+// -----------------------------------------------------------------------------
+//
+bool CpPhoneNotes::noteShowing()
+{
+ SMC_MOCK_METHOD0( bool )
+}