apengine/apeng/src/ApListItem.cpp
changeset 66 ed07dcc72692
parent 0 5a93021fdf25
--- a/apengine/apeng/src/ApListItem.cpp	Fri Sep 17 08:32:43 2010 +0300
+++ b/apengine/apeng/src/ApListItem.cpp	Mon Oct 04 00:43:42 2010 +0300
@@ -34,14 +34,7 @@
 //
 EXPORT_C CApListItem* CApListItem::NewLC()
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    CApListItem* db = new( ELeave ) CApListItem;
-    CleanupStack::PushL( db );
-    db->ConstructL();
-
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
-    return db;
+    return NULL;
     }
 
 
@@ -57,14 +50,11 @@
                                         TApBearerType aBearerType
                                         )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    CApListItem* db = new( ELeave ) CApListItem;
-    CleanupStack::PushL( db );
-    db->ConstructL( aIspType, aUid, aName, aBearerType );
-
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
-    return db;
+    (void)aIspType;
+    (void)aUid;
+    (void)aName;
+    (void)aBearerType;
+    return NULL;
     }
 
 
@@ -78,15 +68,13 @@
                                         TBool aReadOnly
                                         )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    CApListItem* db = new( ELeave ) CApListItem;
-    CleanupStack::PushL( db );
-    db->ConstructL( aIspType, aUid, aName, aBearerType, aStartPage );
-    db->iExt->iReadOnly = aReadOnly;
-    
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
-    return db;
+    (void)aIspType;
+    (void)aUid;
+    (void)aName;
+    (void)aBearerType;
+    (void)aStartPage;
+    (void)aReadOnly;
+    return NULL;
     }
 
 // ---------------------------------------------------------
@@ -95,16 +83,8 @@
 //
 EXPORT_C CApListItem* CApListItem::NewLC( CApListItem* aItem )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    CApListItem* db = new( ELeave ) CApListItem;
-    CleanupStack::PushL( db );
-    db->ConstructL( aItem->iIspType, aItem->iUid, *aItem->iName,
-                    aItem->iBearerType, *aItem->iStartPage );
-    db->iExt->iReadOnly = aItem->IsReadOnly();
-    
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
-    return db;
+    (void)aItem;
+    return NULL;
     }
 
 
@@ -115,16 +95,6 @@
 //
 EXPORT_C CApListItem::~CApListItem()
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    delete iName;
-    delete iStartPage;
-    if ( iExt )
-        {
-        delete iExt;
-        }
-
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
     }
 
 
@@ -135,24 +105,7 @@
 //
 EXPORT_C void CApListItem::CopyFromL( const CApListItem& aCopyFrom )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    HBufC* temp = NULL;
-    HBufC* temp2 = NULL;
-    temp = aCopyFrom.iName->AllocL();
-    delete iName;
-    iName = temp;
-
-    temp2 = aCopyFrom.iStartPage->AllocL();
-    delete iStartPage;
-    iStartPage = temp2;
-
-    iUid = aCopyFrom.iUid;
-    iIspType =  aCopyFrom.iIspType;
-    iBearerType = aCopyFrom.iBearerType;
-    iExt->iReadOnly = aCopyFrom.iExt->iReadOnly;
-
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
+    (void)aCopyFrom;
     }
 
 
@@ -178,13 +131,6 @@
 //
 EXPORT_C void CApListItem::ConstructL()
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    iName = HBufC::NewL( 0 );
-    iStartPage = HBufC::NewL( 0 );
-    CreateExtraL();
-    
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
     }
 
 
@@ -198,12 +144,10 @@
                                       const TDesC& aName,
                                       TApBearerType aBearerType )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::NewLC" ) ) );
-
-    ConstructL();
-    SetItemL( aIspType, aUid, aName, aBearerType );
-    
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::NewLC" ) ) );
+    (void)aIspType;
+    (void)aUid;
+    (void)aName;
+    (void)aBearerType;
     }
 
 
@@ -219,12 +163,11 @@
                                       const TDesC& aStartPage
                                       )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::ConstructL" ) ) );
-
-    ConstructL();
-    SetItemL( aIspType, aUid, aName, aBearerType, aStartPage );
-
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::ConstructL" ) ) );
+    (void)aIspType;
+    (void)aUid;
+    (void)aName;
+    (void)aBearerType;
+    (void)aStartPage;
     }
 
 
@@ -237,11 +180,10 @@
                                     const TDesC& aName,
                                     TApBearerType aBearerType )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::SetItemL(4)" ) ) );
-
-    SetItemL( aIspType, aUid, aName, aBearerType, KEmpty );
-
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::SetItemL(4)" ) ) );
+    (void)aIspType;
+    (void)aUid;
+    (void)aName;
+    (void)aBearerType;
     }
 
 
@@ -256,23 +198,10 @@
                                     const TDesC& aStartpage
                                     )
     {
-    CLOG( ( EUtil, 0, _L( "-> CApListItem::SetItemL" ) ) );
-
-    HBufC* temp = NULL;
-    temp = aName.AllocL();
-    delete iName;
-    iName = temp;
-
-    HBufC* temp2 = NULL;
-    temp2 = aStartpage.AllocL();
-    delete iStartPage;
-    iStartPage = temp2;
-
-    iIspType = aIspType;
-    iUid = aUid;
-    iBearerType = aBearerType;
-    
-    CLOG( ( EUtil, 1, _L( "<- CApListItem::SetItemL" ) ) );
+    (void)aIspType;
+    (void)aUid;
+    (void)aName;
+    (void)aBearerType;
     }
 
 
@@ -282,9 +211,7 @@
 //
 EXPORT_C const TDesC& CApListItem::Name()
     {
-    CLOG( ( EUtil, 0, _L( "<-> CApListItem::Name" ) ) );
-
-    return *iName;
+    User::Leave( KErrNotSupported );
     }
 
 
@@ -294,9 +221,7 @@
 //
 EXPORT_C TUint32 CApListItem::Uid()
     {
-    CLOG( ( EUtil, 0, _L( "<-> CApListItem::Uid" ) ) );
-
-    return iUid;
+    return 0;
     }
 
 
@@ -306,9 +231,7 @@
 //
 EXPORT_C TCommsDbIspType CApListItem::Type()
     {
-    CLOG( ( EUtil, 0, _L( "<-> CApListItem::Type" ) ) );
-
-    return iIspType;
+    User::Leave( KErrNotSupported );
     }
 
 
@@ -319,9 +242,7 @@
 //
 EXPORT_C TApBearerType CApListItem::BearerType()
     {
-    CLOG( ( EUtil, 0, _L( "<-> CApListItem::BearerType" ) ) );
-
-    return iBearerType;
+    User::Leave( KErrNotSupported );
     }
 
 
@@ -331,9 +252,7 @@
 //
 EXPORT_C const TDesC& CApListItem::StartPage() const
     {
-    CLOG( ( EUtil, 0, _L( "<-> CApListItem::StartPage" ) ) );
-
-    return *iStartPage;
+    User::Leave( KErrNotSupported );
     }
 
 
@@ -343,9 +262,7 @@
 //
 EXPORT_C TBool CApListItem::IsReadOnly() const
     {
-    CLOG( ( EUtil, 0, _L( "<-> CApListItem::IsReadOnly" ) ) );
-
-    return iExt->iReadOnly;
+    return EFalse;
     }
 
 
@@ -355,7 +272,7 @@
 //
 TBool CApListItem::IsVpnAp() const
     {
-    return iExt->iIsVpn;
+    return EFalse;
     }
 
 
@@ -365,10 +282,6 @@
 //
 void CApListItem::CreateExtraL()
     {
-    iExt = new ( ELeave )TApListItemExtra;
-    iExt->iIapId = 0;
-    iExt->iIsVpn = EFalse;
-    iExt->iReadOnly = EFalse;
     }
 
 
@@ -378,7 +291,7 @@
 //
 void CApListItem::SetVpnFlag( TBool aIsVpn )
     {
-    iExt->iIsVpn = aIsVpn;
+    (void)aIsVpn;
     }
 
 //  End of File