TextBrowser

Detailed Description

Classes

class  TextBrowserDownloadCache
 
class  TextBrowserDownloadQueue
 
class  TextBrowserDownloadThread
 
class  TextBrowser
 

Class Documentation

◆ TextBrowserDownloadCache

class TextBrowserDownloadCache

Public Member Functions

 TextBrowserDownloadCache ()
 
bool lookup (const QUrl &url, QByteArray &result)
 
void add (const QUrl &url, const QByteArray &data)
 
void beginRequest (const QUrl &url)
 
void endRequest (const QUrl &url)
 
bool isInProgress (const QUrl &url)
 

Constructor & Destructor Documentation

◆ TextBrowserDownloadCache()

TextBrowserDownloadCache::TextBrowserDownloadCache ( )

Member Function Documentation

◆ lookup()

bool TextBrowserDownloadCache::lookup ( const QUrl &  url,
QByteArray &  result 
)

◆ add()

void TextBrowserDownloadCache::add ( const QUrl &  url,
const QByteArray &  data 
)

◆ beginRequest()

void TextBrowserDownloadCache::beginRequest ( const QUrl &  url)

◆ endRequest()

void TextBrowserDownloadCache::endRequest ( const QUrl &  url)

◆ isInProgress()

bool TextBrowserDownloadCache::isInProgress ( const QUrl &  url)

◆ TextBrowserDownloadQueue

class TextBrowserDownloadQueue

Signals

void dataDownloaded (QUrl name, QByteArray contents)
 

Public Member Functions

 TextBrowserDownloadQueue (TextBrowser *owner)
 
void stop ()
 
void threadFinished ()
 
bool processNextEvent (BinaryNinja::DownloadInstance *downloadInstance)
 
void downloadData (const QUrl &name)
 

Constructor & Destructor Documentation

◆ TextBrowserDownloadQueue()

TextBrowserDownloadQueue::TextBrowserDownloadQueue ( TextBrowser owner)

Member Function Documentation

◆ stop()

void TextBrowserDownloadQueue::stop ( )

◆ threadFinished()

void TextBrowserDownloadQueue::threadFinished ( )

◆ processNextEvent()

bool TextBrowserDownloadQueue::processNextEvent ( BinaryNinja::DownloadInstance downloadInstance)

◆ downloadData()

void TextBrowserDownloadQueue::downloadData ( const QUrl &  name)

◆ dataDownloaded

void TextBrowserDownloadQueue::dataDownloaded ( QUrl  name,
QByteArray  contents 
)
signal

◆ TextBrowserDownloadThread

class TextBrowserDownloadThread

Public Member Functions

 TextBrowserDownloadThread (TextBrowserDownloadQueue *queue)
 

Protected Member Functions

virtual void run () override
 

Constructor & Destructor Documentation

◆ TextBrowserDownloadThread()

TextBrowserDownloadThread::TextBrowserDownloadThread ( TextBrowserDownloadQueue queue)

Member Function Documentation

◆ run()

virtual void TextBrowserDownloadThread::run ( )
overrideprotectedvirtual

◆ TextBrowser

class TextBrowser

Public Member Functions

 TextBrowser (QSharedPointer< TextBrowserDownloadCache > cache=QSharedPointer< TextBrowserDownloadCache >())
 
virtual ~TextBrowser ()
 
void reset ()
 
virtual QVariant loadResource (int type, const QUrl &name) override
 
void resizeImagesToWidth ()
 
QSharedPointer< TextBrowserDownloadCachecache ()
 
void downloadMarkdown (QUrl url, QString prefix=QString())
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *e) override
 

Constructor & Destructor Documentation

◆ TextBrowser()

TextBrowser::TextBrowser ( QSharedPointer< TextBrowserDownloadCache cache = QSharedPointer< TextBrowserDownloadCache >())

◆ ~TextBrowser()

virtual TextBrowser::~TextBrowser ( )
virtual

Member Function Documentation

◆ resizeEvent()

virtual void TextBrowser::resizeEvent ( QResizeEvent *  e)
overrideprotectedvirtual

◆ reset()

void TextBrowser::reset ( )

◆ loadResource()

virtual QVariant TextBrowser::loadResource ( int  type,
const QUrl &  name 
)
overridevirtual

◆ resizeImagesToWidth()

void TextBrowser::resizeImagesToWidth ( )

◆ cache()

QSharedPointer< TextBrowserDownloadCache > TextBrowser::cache ( )
inline

◆ downloadMarkdown()

void TextBrowser::downloadMarkdown ( QUrl  url,
QString  prefix = QString() 
)