Skip to content

Commit 5569896

Browse files
committed
Action to push/pull all types to a Type Archive
1 parent 39b27a9 commit 5569896

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ui/typebrowser.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ class BINARYNINJAUIAPI TypeBrowserView : public QFrame, public View, public Filt
474474
std::optional<BinaryNinja::TypeContainer> selectedTypeContainer(bool makeSureItHasPlatform = true, bool preferView = false) const;
475475
// Same as above, but if it returns nullopt, try again with m_data
476476
std::optional<BinaryNinja::TypeContainer> selectedTypeContainerOrMData(bool makeSureItHasPlatform = true, bool preferView = false) const;
477+
// Selected type container ids, or containers of selected types
478+
std::unordered_set<std::string> selectedTypeContainerIds() const;
477479

478480
// TA selected or TA relevant to selected types, only if JUST ta stuff is selected and only 1 TA
479481
std::optional<TypeArchiveRef> selectedTA() const;
@@ -512,10 +514,17 @@ class BINARYNINJAUIAPI TypeBrowserView : public QFrame, public View, public Filt
512514

513515
bool canSyncSelectedTypes();
514516
void syncSelectedTypes();
517+
bool pushTypesFromView(BinaryViewRef view, const std::unordered_set<BinaryNinja::QualifiedName>& names);
515518
bool canPushSelectedTypes();
516519
void pushSelectedTypes();
520+
bool canPushAllTypes();
521+
void pushAllTypes();
522+
bool pullTypesFromView(BinaryViewRef view, const std::unordered_set<BinaryNinja::QualifiedName>& viewTypeNames);
523+
bool pullTypesFromArchives(BinaryViewRef view, const std::unordered_map<std::string, std::unordered_set<std::string>>& archiveTypeIdSelection);
517524
bool canPullSelectedTypes();
518525
void pullSelectedTypes();
526+
bool canPullAllTypes();
527+
void pullAllTypes();
519528
bool canDisassociateSelectedTypes();
520529
void disassociateSelectedTypes();
521530

0 commit comments

Comments
 (0)