コード例 #1
0
FURLWinInet& FURLWinInet::operator=( const FURLWinInet& InURL )
{
	if (this != &InURL)
	{
		RequestURL = InURL.RequestURL;
		ClearCachedData();
	}
	return *this;
}
コード例 #2
0
static void FiniFile( orl_file_handle filehdl, file_list *list )
/**************************************************************/
{
    ORLFileFini( filehdl );
    ClearCachedData( list );
    if( ImpModName != NULL ) {
        _LnkFree( ImpModName );
        ImpModName = NULL;
    }
}
コード例 #3
0
    void SubprocessNetworkAccessManager::ClearCachedData(const QString& callback)
    {
        QString WriteString;
        QXmlStreamWriter xmlWriter(&WriteString);
        xmlWriter.writeTextElement("ClearCachedData","");

        Worker->SetScript(callback);
        Worker->SetFailMessage(QString("Timeout during ClearCachedData"));
        Worker->GetWaiter()->WaitForSignal(this,SIGNAL(ClearCachedData()), Worker,SLOT(RunSubScript()), Worker, SLOT(FailBecauseOfTimeout()));
        Worker->GetProcessComunicator()->Send(WriteString);
    }
コード例 #4
0
bool IsORL( file_list *list, unsigned long loc )
/**********************************************/
// return true if this is can be handled by ORL
{
    orl_file_format     type;
    bool                isOK;

    isOK = true;
    ORLFileSeek( list, loc, SEEK_SET );
    type = ORLFileIdentify( ORLHandle, list );
    if( type == ORL_ELF ) {
        ObjFormat |= FMT_ELF;
    } else if( type == ORL_COFF ) {
        ObjFormat |= FMT_COFF;
    } else {
        isOK = false;
    }
    ClearCachedData( list );
    return( isOK );
}
コード例 #5
0
bool IsORL( file_list *list, wio_off_t loc )
/*************************************************/
// return TRUE if this is can be handled by ORL
{
    orl_file_format     type;
    bool                isOK;

    isOK = TRUE;
    ORLFileSeek( list, loc, SEEK_SET );
    type = ORLFileIdentify( ORLHandle, list );
    if( type == ORL_ELF ) {
        ObjFormat |= FMT_ELF;
    } else if( type == ORL_COFF ) {
        ObjFormat |= FMT_COFF;
    } else {
        isOK = FALSE;
    }
    ClearCachedData( list );
    return( isOK );
}
コード例 #6
0
ファイル: GribUIDialog.cpp プロジェクト: IgorMikhal/OpenCPN
GribTimelineRecordSet::~GribTimelineRecordSet()
{
    for(int i=0; i<Idx_COUNT; i++)
        delete m_GribRecordPtrArray[i]; /* delete these for timeline */
    ClearCachedData();
}
コード例 #7
0
    void SubprocessNetworkAccessManager::Received(const QString& value)
    {
        QXmlStreamReader xmlReader(value);
        while(!xmlReader.atEnd() && !xmlReader.hasError())
        {
            QXmlStreamReader::TokenType token = xmlReader.readNext();


            if(xmlReader.name() == "AddCacheMaskAllow" && token == QXmlStreamReader::StartElement)
            {
                emit AddCacheMaskAllow();
            }else if(xmlReader.name() == "SetProxy" && token == QXmlStreamReader::StartElement)
            {
                emit SetProxy();
            }else if(xmlReader.name() == "AddHeader" && token == QXmlStreamReader::StartElement)
            {
                emit AddHeader();
            }else if(xmlReader.name() == "CleanHeader" && token == QXmlStreamReader::StartElement)
            {
                emit CleanHeader();
            }else if(xmlReader.name() == "AddCacheMaskDeny" && token == QXmlStreamReader::StartElement)
            {
                emit AddCacheMaskDeny();
            }else if(xmlReader.name() == "AddRequestMaskAllow" && token == QXmlStreamReader::StartElement)
            {
                emit AddRequestMaskAllow();
            }else if(xmlReader.name() == "AddRequestMaskDeny" && token == QXmlStreamReader::StartElement)
            {
                emit AddRequestMaskDeny();
            }else if(xmlReader.name() == "ClearCacheMask" && token == QXmlStreamReader::StartElement)
            {
                emit ClearCacheMask();
            }else if(xmlReader.name() == "ClearRequestMask" && token == QXmlStreamReader::StartElement)
            {
                emit ClearRequestMask();
            }else if(xmlReader.name() == "ClearLoadedUrl" && token == QXmlStreamReader::StartElement)
            {
                emit ClearLoadedUrl();
            }else if(xmlReader.name() == "ClearCachedData" && token == QXmlStreamReader::StartElement)
            {
                emit ClearCachedData();
            }else if(xmlReader.name() == "ClearAll" && token == QXmlStreamReader::StartElement)
            {
                emit ClearAll();
            }else if(xmlReader.name() == "ClearMasks" && token == QXmlStreamReader::StartElement)
            {
                emit ClearMasks();
            }else if(xmlReader.name() == "ClearData" && token == QXmlStreamReader::StartElement)
            {
                emit ClearData();
            }else if(xmlReader.name() == "FindCacheByMaskBase64" && token == QXmlStreamReader::StartElement)
            {
                xmlReader.readNext();
                Worker->SetAsyncResult(QScriptValue(xmlReader.text().toString()));
                emit FindCacheByMaskBase64();
            }else if(xmlReader.name() == "FindCacheByMaskString" && token == QXmlStreamReader::StartElement)
            {
                xmlReader.readNext();
                Worker->SetAsyncResult(QScriptValue(xmlReader.text().toString()));
                emit FindCacheByMaskString();
            }else if(xmlReader.name() == "FindStatusByMask" && token == QXmlStreamReader::StartElement)
            {
                xmlReader.readNext();
                Worker->SetAsyncResult(QScriptValue(xmlReader.text().toInt()));
                emit FindStatusByMask();
            }else if(xmlReader.name() == "IsUrlLoadedByMask" && token == QXmlStreamReader::StartElement)
            {
                xmlReader.readNext();
                Worker->SetAsyncResult(QScriptValue(xmlReader.text().toString().toInt()));
                emit IsUrlLoadedByMask();
            }


        }
        if (xmlReader.hasError())
        {
            return;
        }
    }
コード例 #8
0
FURLWinInet::FURLWinInet( const FURLWinInet& InURL ) :RequestURL(InURL.RequestURL)
{
	ClearCachedData();
}
コード例 #9
0
FURLWinInet::FURLWinInet()
{
	ClearCachedData();
}