phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp
changeset 37 ba76fc04e6c2
child 45 6b911d05207e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp	Fri Jun 04 10:19:18 2010 +0100
@@ -0,0 +1,194 @@
+/*
+* 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::showCallDivertDetails
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showCallDivertDetails( 
+        const PSCallDivertingStatus & divertStatus )
+    {
+    SMC_MOCK_METHOD1( void, const PSCallDivertingStatus &, divertStatus )
+    }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::showPasswordQueryDialog
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::showPasswordQueryDialog( 
+        const QString & title,
+        const QValidator & validator,
+        int maxPasswordLength )
+    {
+    SMC_MOCK_METHOD3( void, const QString &, title, 
+        const QValidator &, validator, 
+        int, maxPasswordLength )
+    }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::cancelNote
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::cancelNote( 
+        int noteId )
+    {
+    SMC_MOCK_METHOD1( void, int, noteId )
+    }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::noteShowing
+// -----------------------------------------------------------------------------
+//
+bool CpPhoneNotes::noteShowing(  )
+    {
+    SMC_MOCK_METHOD0( bool )
+    }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::finishedPasswordQueryDialog
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::finishedPasswordQueryDialog( 
+        HbAction * action )
+    {
+    //SMC_MOCK_METHOD1( void, HbAction *, action )
+    }
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::activeNoteAboutToClose
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::activeNoteAboutToClose()
+{
+    SMC_MOCK_METHOD0( void )
+}
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::handleProgressNoteCanceled
+// -----------------------------------------------------------------------------
+//
+void CpPhoneNotes::handleProgressNoteCanceled()
+{
+    SMC_MOCK_METHOD0( void )
+}
+
+
+// -----------------------------------------------------------------------------
+// CpPhoneNotes::passwordTextChanged
+// -----------------------------------------------------------------------------
+//
+
+
+void CpPhoneNotes::passwordTextChanged()
+{
+    SMC_MOCK_METHOD0( void )
+}
+
+