// ---------------------------------------------------------------------------
// CCmFmUpnpMngr::CheckURIL
// ---------------------------------------------------------------------------
//
void CCmFmUpnpMngr::CheckURIL( CUpnpAVDevice* aDevice,
                               CCmFillListItem& aItem )
{
    LOG(_L("[FILL MNGR]\t CCmFmUpnpMngr::CheckURIL()"));
    if( iAVController )
    {
        iSelectOptimalImageSize = EFalse;
        if( aItem.Status() == ECmToBeShrinked )
        {
            iSelectOptimalImageSize = ETrue;
        }

        if( !iBrowseSession )
        {
            // session not found -> create
            iBrowseSession =
                &iAVController->StartBrowsingSessionL( *aDevice );
            iBrowseSession->SetObserver( *this );
            iDevice = aDevice;
        }
        else if( ( aDevice != iDevice ) ||
                 ( aDevice->Uuid() != iDevice->Uuid() ) )
        {
            // device is different than previosly or pointer to it
            // has been changed -> create new session
            CancelOperation();
            iBrowseSession =
                &iAVController->StartBrowsingSessionL( *aDevice );
            iBrowseSession->SetObserver( *this );
            iDevice = aDevice;
        }

        iBrowseSession->BrowseL( aItem.ItemId(), KCmBrowseFilter,
                                 MUPnPAVBrowsingSession::EMetadata, KStartIndex,
                                 KRequestedCount, KCmSortCriteria );
        iBrowseStarted.HomeTime();
        TRACE(Print(_L("[FILL MNGR]\t BROWSE STARTED")));
#ifdef _DEBUG
        TBuf<KMaxName> temp;
        if( aDevice->Uuid().Length() < KMaxName )
        {
            temp.Copy( aDevice->Uuid() );
            TRACE(Print(_L("[FILL MNGR]\t TARGET DEVICE %S"), &temp ));
        }
        temp.Zero();
        if( aItem.ItemId().Length() < KMaxName )
        {
            temp.Copy( aItem.ItemId() );
            TRACE(Print(_L("[FILL MNGR]\t TARGET ITEM %S"), &temp ));
        }
        temp.Zero();
#endif
    }
    else
    {
        TRACE(Print(_L("[FILL MNGR]\t iAVController == NULL")));
        iObserver->URICheckResult( ENoUriAvailable );
    }
}
// ---------------------------------------------------------------------------
// CIAUpdateFwPurchaseOperation::~CIAUpdateFwPurchaseOperation
// 
// ---------------------------------------------------------------------------
//
CIAUpdateFwPurchaseOperation::~CIAUpdateFwPurchaseOperation()
    {
    IAUPDATE_TRACE("[IAUPDATE] CIAUpdateFwPurchaseOperation::~CIAUpdateFwPurchaseOperation begin");

    // This will also reset and delete all the necessary data if needed.
    CancelOperation();
    
    IAUPDATE_TRACE("[IAUPDATE] CIAUpdateFwPurchaseOperation::~CIAUpdateFwPurchaseOperation end");    
    }
// ---------------------------------------------------------------------------
// CCmFmUpnpMngr::~CCmFmUpnpMngr
// ---------------------------------------------------------------------------
//
CCmFmUpnpMngr::~CCmFmUpnpMngr()
{
    LOG(_L("[FILL MNGR]\t CCmFmUpnpMngr::~CCmFmUpnpMngr()"));

    CancelOperation();

    delete iURI;
    delete iParser;
    delete iItem;
}
Beispiel #4
0
//---------------------------------------------------------------------------
void __fastcall TSynchronizeProgressForm::Dispatch(void * AMessage)
{
  TMessage & Message = *reinterpret_cast<TMessage *>(AMessage);
  if (Message.Msg == WM_CLOSE)
  {
    CancelOperation();
  }
  else
  {
    TForm::Dispatch(AMessage);
  }
}
// ---------------------------------------------------------------------------
// CCmFmDownloadMngr::~CCmFmDownloadMngr
// ---------------------------------------------------------------------------
//
CCmFmDownloadMngr::~CCmFmDownloadMngr()
    {
    LOG(_L("[FILL MNGR]\t CCmFmDownloadMngr::~CCmFmDownloadMngr()"));
    CancelOperation();
    }
Beispiel #6
0
//---------------------------------------------------------------------------
void __fastcall TSynchronizeProgressForm::CancelButtonClick(TObject * /*Sender*/)
{
  CancelOperation();
}
// ---------------------------------------------------------------------------
// CCmFmDownloadProxy::~CCmFmDownloadProxy
// ---------------------------------------------------------------------------
//
CCmFmDownloadProxy::~CCmFmDownloadProxy()
    {
    LOG(_L("[FILL MNGR]\t CCmFmDownloadProxy::~CCmFmDownloadProxy()"));
    CancelOperation();
    }