apengine/apsettingshandlerui/src/ApNetSelectorListBoxModel.cpp
changeset 66 ed07dcc72692
parent 0 5a93021fdf25
--- a/apengine/apsettingshandlerui/src/ApNetSelectorListBoxModel.cpp	Fri Sep 17 08:32:43 2010 +0300
+++ b/apengine/apsettingshandlerui/src/ApNetSelectorListBoxModel.cpp	Mon Oct 04 00:43:42 2010 +0300
@@ -35,7 +35,6 @@
 CApNetSelectorListboxModel::CApNetSelectorListboxModel( )
 :CApNetworkItemList()
     {
-    APSETUILOGGER_ENTERFN( EListbox,"NetSelListModel::CApNetSelectorListboxModel<->")
     }
 
 
@@ -45,11 +44,6 @@
 //
 CApNetSelectorListboxModel::~CApNetSelectorListboxModel()
     {
-    APSETUILOGGER_ENTERFN( EListbox,"NetSelListModel::~CApNetSelectorListboxModel")
-    
-    ResetAndDestroy(); // deletes all elements...
-    
-    APSETUILOGGER_LEAVEFN( EListbox,"NetSelListModel::~CApNetSelectorListboxModel")
     }
 
 
@@ -59,8 +53,7 @@
 //
 TInt CApNetSelectorListboxModel::MdcaCount() const
     {
-    APSETUILOGGER_ENTERFN( EListbox,"NetSelListModel::MdcaCount<->")
-    return Count();
+    return 0;
     }
 
 
@@ -70,15 +63,7 @@
 //
 TPtrC CApNetSelectorListboxModel::MdcaPoint( TInt aIndex ) const
     {
-    APSETUILOGGER_ENTERFN( EListbox,"NetSelListModel::MdcaPoint")
-    
-    // We need to cast away the const-ness from the buffer.
-    // It was definitely made for formatting!
-    FormatListboxText( aIndex,
-        ( MUTABLE_CAST(  TBuf<KMaxApSelectorListboxName>&, iBuf ) ) );
-
-    
-    APSETUILOGGER_LEAVEFN( EListbox,"NetSelListModel::MdcaPoint")
+    User::Leave( KErrNotSupported );
     return iBuf;
     }
 
@@ -89,25 +74,7 @@
 //
 TInt CApNetSelectorListboxModel::Item4Uid( TUint32 aUid, TInt& aErr ) const
     {
-    APSETUILOGGER_ENTERFN( EListbox,"NetSelListModel::Item4Uid")
-    
-    aErr = KErrNone;
-    TInt retval( KErrNotFound );
-    for ( TInt i=0; i<Count(); i++ )
-        {
-        if ( At( i )->Uid() == aUid )
-            {
-            retval = i;
-            break;
-            }
-        }
-    if ( retval == KErrNotFound )
-        {
-        aErr = KErrNotFound;
-        }
-    
-    APSETUILOGGER_LEAVEFN( EListbox,"NetSelListModel::Item4Uid")
-    return retval;
+    return KErrNotSupported;
     }
 
 
@@ -119,17 +86,6 @@
 void CApNetSelectorListboxModel::FormatListboxText( TInt aIndex,
                                                 TDes& aBuf ) const
     {
-    APSETUILOGGER_ENTERFN( EListbox,"NetSelListModel::FormatListboxText")
-    
-    aBuf.Format(
-                KListItemFormatGraphicOnOff,
-                1,
-                Min( At( aIndex )->Name().Length(),
-                KMaxListItemNameLength ),
-                &At( aIndex )->Name()
-                );
-    
-    APSETUILOGGER_LEAVEFN( EListbox,"NetSelListModel::FormatListboxText")
     }
 
 // End of File