phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hblistwidgetitem.cpp
changeset 21 92ab7f8d0eab
child 27 2f8f8080a020
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hblistwidgetitem.cpp	Fri Mar 19 09:28:42 2010 +0200
@@ -0,0 +1,224 @@
+/* 
+* 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 <smcmockclassincludes.h>
+#include <hblistwidgetitem.h>
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::HbListWidgetItem
+// -----------------------------------------------------------------------------
+//
+HbListWidgetItem::HbListWidgetItem( 
+        int type )
+    {
+    
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::~HbListWidgetItem
+// -----------------------------------------------------------------------------
+//
+HbListWidgetItem::~HbListWidgetItem(  )
+    {
+    
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::data
+// -----------------------------------------------------------------------------
+//
+QVariant HbListWidgetItem::data( 
+        int role ) const
+    {
+ //   SMC_MOCK_METHOD1( QVariant, int, role )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setData
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setData( 
+        const QVariant & value,
+        int role )
+    {
+//    SMC_MOCK_METHOD2( void, const QVariant &, value, 
+//        int, role )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::text
+// -----------------------------------------------------------------------------
+//
+QString HbListWidgetItem::text(  ) const
+    {
+    SMC_MOCK_METHOD0( QString )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setText
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setText( 
+        const QString & text )
+    {
+    SMC_MOCK_METHOD1( void, const QString &, text )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::secondaryText
+// -----------------------------------------------------------------------------
+//
+QString HbListWidgetItem::secondaryText(  ) const
+    {
+    SMC_MOCK_METHOD0( QString )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setSecondaryText
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setSecondaryText( 
+        const QString & text )
+    {
+    SMC_MOCK_METHOD1( void, const QString &, text )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::decorationText
+// -----------------------------------------------------------------------------
+//
+QString HbListWidgetItem::decorationText(  ) const
+    {
+    SMC_MOCK_METHOD0( QString )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setDecorationText
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setDecorationText( 
+        const QString & text )
+    {
+    SMC_MOCK_METHOD1( void, const QString &, text )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::decorationIcon
+// -----------------------------------------------------------------------------
+//
+HbIcon HbListWidgetItem::decorationIcon(  ) const
+    {
+//    SMC_MOCK_METHOD0( HbIcon )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setDecorationIcon
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setDecorationIcon( 
+        const HbIcon & icon )
+    {
+//    SMC_MOCK_METHOD1( void, const HbIcon &, icon )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::secondaryDecorationText
+// -----------------------------------------------------------------------------
+//
+QString HbListWidgetItem::secondaryDecorationText(  ) const
+    {
+    SMC_MOCK_METHOD0( QString )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setSecondaryDecorationText
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setSecondaryDecorationText( 
+        const QString & text )
+    {
+    SMC_MOCK_METHOD1( void, const QString &, text )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::secondaryDecorationIcon
+// -----------------------------------------------------------------------------
+//
+HbIcon HbListWidgetItem::secondaryDecorationIcon(  ) const
+    {
+//    SMC_MOCK_METHOD0( HbIcon )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setSecondaryDecorationIcon
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setSecondaryDecorationIcon( 
+        const HbIcon & icon )
+    {
+//    SMC_MOCK_METHOD1( void, const HbIcon &, icon )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::setEnabled
+// -----------------------------------------------------------------------------
+//
+void HbListWidgetItem::setEnabled( 
+        bool enabled )
+    {
+    SMC_MOCK_METHOD1( void, bool, enabled )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::isEnabled
+// -----------------------------------------------------------------------------
+//
+bool HbListWidgetItem::isEnabled(  ) const
+    {
+    SMC_MOCK_METHOD0( bool )
+    }
+
+
+// -----------------------------------------------------------------------------
+// HbListWidgetItem::type
+// -----------------------------------------------------------------------------
+//
+int HbListWidgetItem::type(  ) const
+    {
+    SMC_MOCK_METHOD0( int )
+    }
+
+