FileContext Class Reference

Public Member Functions

 FileContext (FileMetadataRef file, BinaryViewRef rawData, const QString &filename=QString(), bool isValidSaveName=false, bool createViews=true)
 
virtual ~FileContext ()
 
void registerReference (QObject *widget)
 
void unregisterReference (QObject *widget)
 
void close ()
 
BinaryViewRef getRawData () const
 
FileMetadataRef getMetadata () const
 
QString getFilename () const
 
void setFilename (QString newName)
 
ViewFramegetCurrentViewFrame () const
 
QString getTabName (QWidget *widget)
 
QString getShortFileName (QWidget *widget)
 
bool isValidSaveFilename () const
 
void markAsSaved (const QString &filename)
 
bool isModified ()
 
BinaryViewRef createDataView (const QString &type)
 
BinaryViewRef getDataView (const QString &type, bool createView=false)
 
std::vector< BinaryViewRefgetAllDataViews ()
 
void refreshDataViewCache ()
 
void setCurrentViewFrame (ViewFrame *view)
 
virtual std::string GetCurrentView () override
 
virtual uint64_t GetCurrentOffset () override
 
virtual bool Navigate (const std::string &view, uint64_t offset) override
 
QString getBestType ()
 
std::vector< QString > getAvailableTypes ()
 
bool isTypeAvailable (const QString &type)
 
bool resolveType (const QString &type, ViewType *&viewType, BinaryViewTypeRef &data)
 
bool resolveTypeAndData (const QString &type, ViewType *&viewType, BinaryViewRef &data)
 
void updateAnalysis ()
 
SyncGroupnewSyncGroup ()
 
SyncGroupsyncGroupById (int id)
 
void deleteSyncGroup (SyncGroup *syncGroup)
 
SyncGroupsyncGroupForFrame (ViewFrame *frame)
 
void removeFrame (ViewFrame *frame)
 
const std::vector< SyncGroup * > & allSyncGroups () const
 
void forceLocationSyncForFrame (ViewFrame *frame)
 
bool syncLocation (ViewFrame *frame, View *view, const ViewLocation &location)
 
void suspendSync ()
 
void resumeSync ()
 
- Public Member Functions inherited from FileContextBase
 FileContextBase ()
 
- Public Member Functions inherited from BinaryNinja::NavigationHandler
 NavigationHandler ()
 
virtual ~NavigationHandler ()
 
BNNavigationHandlerGetCallbacks ()
 
virtual std::string GetCurrentView ()=0
 
virtual uint64_t GetCurrentOffset ()=0
 
virtual bool Navigate (const std::string &view, uint64_t offset)=0
 

Static Public Member Functions

static void closeAllOpenFiles ()
 
static FileContextnewFile ()
 
static FileContextopenFilename (const QString &path)
 
static const std::set< FileContext * > & getOpenFileContexts ()
 

Constructor & Destructor Documentation

◆ FileContext()

FileContext::FileContext ( FileMetadataRef  file,
BinaryViewRef  rawData,
const QString &  filename = QString(),
bool  isValidSaveName = false,
bool  createViews = true 
)

◆ ~FileContext()

virtual FileContext::~FileContext ( )
virtual

Member Function Documentation

◆ allSyncGroups()

const std::vector< SyncGroup * > & FileContext::allSyncGroups ( ) const
inline

◆ close()

void FileContext::close ( )

◆ closeAllOpenFiles()

static void FileContext::closeAllOpenFiles ( )
static

◆ createDataView()

BinaryViewRef FileContext::createDataView ( const QString &  type)

◆ deleteSyncGroup()

void FileContext::deleteSyncGroup ( SyncGroup syncGroup)

◆ forceLocationSyncForFrame()

void FileContext::forceLocationSyncForFrame ( ViewFrame frame)

◆ getAllDataViews()

std::vector< BinaryViewRef > FileContext::getAllDataViews ( )

◆ getAvailableTypes()

std::vector< QString > FileContext::getAvailableTypes ( )

◆ getBestType()

QString FileContext::getBestType ( )

◆ GetCurrentOffset()

virtual uint64_t FileContext::GetCurrentOffset ( )
overridevirtual

◆ GetCurrentView()

virtual std::string FileContext::GetCurrentView ( )
overridevirtual

◆ getCurrentViewFrame()

ViewFrame * FileContext::getCurrentViewFrame ( ) const
inline

◆ getDataView()

BinaryViewRef FileContext::getDataView ( const QString &  type,
bool  createView = false 
)

◆ getFilename()

QString FileContext::getFilename ( ) const
inline

◆ getMetadata()

FileMetadataRef FileContext::getMetadata ( ) const
inline

◆ getOpenFileContexts()

static const std::set< FileContext * > & FileContext::getOpenFileContexts ( )
static

◆ getRawData()

BinaryViewRef FileContext::getRawData ( ) const
inline

◆ getShortFileName()

QString FileContext::getShortFileName ( QWidget *  widget)

◆ getTabName()

QString FileContext::getTabName ( QWidget *  widget)

◆ isModified()

bool FileContext::isModified ( )

◆ isTypeAvailable()

bool FileContext::isTypeAvailable ( const QString &  type)

◆ isValidSaveFilename()

bool FileContext::isValidSaveFilename ( ) const
inline

◆ markAsSaved()

void FileContext::markAsSaved ( const QString &  filename)

◆ Navigate()

virtual bool FileContext::Navigate ( const std::string &  view,
uint64_t  offset 
)
overridevirtual

◆ newFile()

static FileContext * FileContext::newFile ( )
static

◆ newSyncGroup()

SyncGroup * FileContext::newSyncGroup ( )

◆ openFilename()

static FileContext * FileContext::openFilename ( const QString &  path)
static

◆ refreshDataViewCache()

void FileContext::refreshDataViewCache ( )

◆ registerReference()

void FileContext::registerReference ( QObject *  widget)

◆ removeFrame()

void FileContext::removeFrame ( ViewFrame frame)

◆ resolveType()

bool FileContext::resolveType ( const QString &  type,
ViewType *&  viewType,
BinaryViewTypeRef data 
)

◆ resolveTypeAndData()

bool FileContext::resolveTypeAndData ( const QString &  type,
ViewType *&  viewType,
BinaryViewRef data 
)

◆ resumeSync()

void FileContext::resumeSync ( )
inline

◆ setCurrentViewFrame()

void FileContext::setCurrentViewFrame ( ViewFrame view)

◆ setFilename()

void FileContext::setFilename ( QString  newName)
inline

◆ suspendSync()

void FileContext::suspendSync ( )
inline

◆ syncGroupById()

SyncGroup * FileContext::syncGroupById ( int  id)

◆ syncGroupForFrame()

SyncGroup * FileContext::syncGroupForFrame ( ViewFrame frame)

◆ syncLocation()

bool FileContext::syncLocation ( ViewFrame frame,
View view,
const ViewLocation location 
)

◆ unregisterReference()

void FileContext::unregisterReference ( QObject *  widget)

◆ updateAnalysis()

void FileContext::updateAnalysis ( )

The documentation for this class was generated from the following file: