upnpsharing/upnpcontentserver/src/upnpcontentserverhandler.cpp
changeset 32 3785f754ee62
parent 0 7f85d04be362
child 38 5360b7ddc251
equal deleted inserted replaced
27:03808033c9a2 32:3785f754ee62
    81 // --------------------------------------------------------------------------
    81 // --------------------------------------------------------------------------
    82 //
    82 //
    83 void CUpnpContentServerHandler::ConstructL()
    83 void CUpnpContentServerHandler::ConstructL()
    84     {
    84     {
    85     __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ );
    85     __LOG8_1( "%s begin.", __PRETTY_FUNCTION__ );
    86     static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
    86  /*   static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
    87     static _LIT_SECURITY_POLICY_S0(KThisProcessPolicy,
    87     static _LIT_SECURITY_POLICY_S0(KThisProcessPolicy,
    88                                    KUpnpContentServerCat.iUid );
    88                                    KUpnpContentServerCat.iUid );
    89 
    89 
    90     // define progress property to be a byte array, allocating mem
    90     // define progress property to be a byte array, allocating mem
    91     TInt err = iProgressProperty.Define( KUpnpContentServerCat,
    91     TInt err = iProgressProperty.Define( KUpnpContentServerCat,
   106     iIdle = CUPnPPeriodic::NewL( CActive::EPriorityIdle );
   106     iIdle = CUPnPPeriodic::NewL( CActive::EPriorityIdle );
   107     TCallBack cb( RefreshClfL, this );
   107     TCallBack cb( RefreshClfL, this );
   108     const TInt KRefreshDelay( 500000 );
   108     const TInt KRefreshDelay( 500000 );
   109     iIdle->Start( KRefreshDelay, KRefreshDelay, cb );
   109     iIdle->Start( KRefreshDelay, KRefreshDelay, cb );
   110     iReader = CUpnpSelectionReader::NewL( NULL ); // metadata set later
   110     iReader = CUpnpSelectionReader::NewL( NULL ); // metadata set later
   111     SetProgressL( KNoProgress );
   111     SetProgressL( KNoProgress );*/
   112     __LOG8_1( "%s end.", __PRETTY_FUNCTION__ );
   112     __LOG8_1( "%s end.", __PRETTY_FUNCTION__ );
   113     }
   113     }
   114 
   114 
   115 // --------------------------------------------------------------------------
   115 // --------------------------------------------------------------------------
   116 // CUpnpContentServerHandler::RefreshClfL
   116 // CUpnpContentServerHandler::RefreshClfL
   275     if ( sharingReq )
   275     if ( sharingReq )
   276         {
   276         {
   277         // There is sharing ongoing, return the buffered selections
   277         // There is sharing ongoing, return the buffered selections
   278         for( TInt i(0); i < sharingReq->iSelections.Count(); i++ )
   278         for( TInt i(0); i < sharingReq->iSelections.Count(); i++ )
   279             {
   279             {
   280             aMarkedItems.Append( sharingReq->iSelections[ i ] );
   280             aMarkedItems.AppendL( sharingReq->iSelections[ i ] );
   281             }
   281             }
   282         }
   282         }
   283     else
   283     else
   284         {
   284         {
   285         if ( !iReader )
   285         if ( !iReader )