upnpsharing/upnpcontentserver/src/upnpcontainercheckerao.cpp
changeset 32 3785f754ee62
parent 0 7f85d04be362
equal deleted inserted replaced
27:03808033c9a2 32:3785f754ee62
   291             {
   291             {
   292             for ( TInt i(0); i< iContainerList->ObjectCount(); i++ )
   292             for ( TInt i(0); i< iContainerList->ObjectCount(); i++ )
   293                 {
   293                 {
   294                 tmpContainer = static_cast< CUpnpContainer* >(
   294                 tmpContainer = static_cast< CUpnpContainer* >(
   295                     iContainerList->operator[]( i ));
   295                     iContainerList->operator[]( i ));
   296                 iSharedContainerIds.Append(
   296                 iSharedContainerIds.AppendL(
   297                     UPnPCommonUtils::DesC8ToInt( tmpContainer->Id() ) );
   297                     UPnPCommonUtils::DesC8ToInt( tmpContainer->Id() ) );
   298                 }
   298                 }
   299 
   299 
   300 
   300 
   301             iState = EUnshareExtraContainers;
   301             iState = EUnshareExtraContainers;
   585 // --------------------------------------------------------------------------
   585 // --------------------------------------------------------------------------
   586 //
   586 //
   587 void CUpnpContainerCheckerAo::ShareContainerL( TInt aPos )
   587 void CUpnpContainerCheckerAo::ShareContainerL( TInt aPos )
   588     {
   588     {
   589     __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ );
   589     __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ );
   590     iTmpContainer = CUpnpContainer::NewL();
   590  /*   iTmpContainer = CUpnpContainer::NewL();
   591     iTmpContainer->SetParentIdL( *UPnPCommonUtils::IntToDesC8LC(
   591     iTmpContainer->SetParentIdL( *UPnPCommonUtils::IntToDesC8LC(
   592         KRootContainerId ) );
   592         KRootContainerId ) );
   593     CleanupStack::PopAndDestroy(); //UPnPCommonUtils::IntToDesC8LC
   593     CleanupStack::PopAndDestroy(); //UPnPCommonUtils::IntToDesC8LC
   594     iTmpContainer->SetObjectClassL( KStorageFolderContainerClass );
   594     iTmpContainer->SetObjectClassL( KStorageFolderContainerClass );
   595 
   595 
   621             iStatus );
   621             iStatus );
   622         iCurrentOperation = EShareContainerResult;
   622         iCurrentOperation = EShareContainerResult;
   623         CleanupStack::PopAndDestroy(); // UPnPCommonUtils::IntToDesC8LC
   623         CleanupStack::PopAndDestroy(); // UPnPCommonUtils::IntToDesC8LC
   624         iCurrentOperation = EShareContainerResult;
   624         iCurrentOperation = EShareContainerResult;
   625         SetActive();
   625         SetActive();
   626         }
   626         }*/
   627     __LOG8_1( "%s end.", __PRETTY_FUNCTION__ );
   627     __LOG8_1( "%s end.", __PRETTY_FUNCTION__ );
   628     }
   628     }
   629 
   629 
   630 // --------------------------------------------------------------------------
   630 // --------------------------------------------------------------------------
   631 // CUpnpContainerCheckerAo::ShareContainerResult
   631 // CUpnpContainerCheckerAo::ShareContainerResult