Binary Ninja API C++: FileContext
Classes | |
| class | FileContext |
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) |
| ViewFrame * | getCurrentViewFrame () 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< BinaryViewRef > | getAllDataViews () |
| 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 () |
| SyncGroup * | newSyncGroup () |
| SyncGroup * | syncGroupById (int id) |
| void | deleteSyncGroup (SyncGroup *syncGroup) |
| SyncGroup * | syncGroupForFrame (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 () |
| BNNavigationHandler * | GetCallbacks () |
Static Public Member Functions | |
| static void | closeAllOpenFiles () |
| static FileContext * | newFile () |
| static FileContext * | newMappedFile (PlatformRef platform) |
| static FileContext * | openFilename (const QString &path) |
| static const std::set< FileContext * > & | getOpenFileContexts () |
◆ FileContext()
| FileContext::FileContext | ( | FileMetadataRef | file, |
| BinaryViewRef | rawData, | ||
| const QString & | filename = QString(), | ||
| bool | isValidSaveName = false, | ||
| bool | createViews = true ) |
◆ ~FileContext()
|
virtual |
◆ registerReference()
| void FileContext::registerReference | ( | QObject * | widget | ) |
◆ unregisterReference()
| void FileContext::unregisterReference | ( | QObject * | widget | ) |
◆ close()
| void FileContext::close | ( | ) |
◆ closeAllOpenFiles()
|
static |
◆ getRawData()
◆ getMetadata()
◆ getFilename()
|
inline |
◆ setFilename()
|
inline |
◆ getCurrentViewFrame()
|
inline |
◆ getTabName()
| QString FileContext::getTabName | ( | QWidget * | widget | ) |
◆ getShortFileName()
| QString FileContext::getShortFileName | ( | QWidget * | widget | ) |
◆ isValidSaveFilename()
|
inline |
◆ markAsSaved()
| void FileContext::markAsSaved | ( | const QString & | filename | ) |
◆ isModified()
| bool FileContext::isModified | ( | ) |
◆ createDataView()
| BinaryViewRef FileContext::createDataView | ( | const QString & | type | ) |
◆ getDataView()
| BinaryViewRef FileContext::getDataView | ( | const QString & | type, |
| bool | createView = false ) |
◆ getAllDataViews()
◆ refreshDataViewCache()
| void FileContext::refreshDataViewCache | ( | ) |
◆ setCurrentViewFrame()
| void FileContext::setCurrentViewFrame | ( | ViewFrame * | view | ) |
◆ GetCurrentView()
|
overridevirtual |
◆ GetCurrentOffset()
|
overridevirtual |
◆ Navigate()
|
overridevirtual |
◆ getBestType()
| QString FileContext::getBestType | ( | ) |
◆ getAvailableTypes()
| std::vector< QString > FileContext::getAvailableTypes | ( | ) |
◆ isTypeAvailable()
| bool FileContext::isTypeAvailable | ( | const QString & | type | ) |
◆ resolveType()
◆ resolveTypeAndData()
| bool FileContext::resolveTypeAndData | ( | const QString & | type, |
| ViewType *& | viewType, | ||
| BinaryViewRef & | data ) |
◆ updateAnalysis()
| void FileContext::updateAnalysis | ( | ) |
◆ newSyncGroup()
◆ syncGroupById()
| SyncGroup * FileContext::syncGroupById | ( | int | id | ) |
◆ deleteSyncGroup()
| void FileContext::deleteSyncGroup | ( | SyncGroup * | syncGroup | ) |
◆ syncGroupForFrame()
◆ removeFrame()
| void FileContext::removeFrame | ( | ViewFrame * | frame | ) |
◆ allSyncGroups()
|
inline |
◆ forceLocationSyncForFrame()
| void FileContext::forceLocationSyncForFrame | ( | ViewFrame * | frame | ) |
◆ syncLocation()
◆ suspendSync()
|
inline |
◆ resumeSync()
|
inline |
◆ newFile()
|
static |
◆ newMappedFile()
◆ openFilename()
|
static |
◆ getOpenFileContexts()
|
static |