Public Member Functions | |
RemoteProject (BNRemoteProject *remoteProject) | |
Ref< Project > | GetCoreProject () |
bool | IsOpen () |
bool | Open (std::function< bool(size_t, size_t)> progress={}) |
void | Close () |
Ref< Remote > | GetRemote () |
std::string | GetUrl () |
int64_t | GetCreated () |
int64_t | GetLastModified () |
std::string | GetId () |
std::string | GetName () |
void | SetName (const std::string &name) |
std::string | GetDescription () |
void | SetDescription (const std::string &description) |
uint64_t | GetReceivedFileCount () |
uint64_t | GetReceivedFolderCount () |
bool | HasPulledFiles () |
bool | HasPulledGroupPermissions () |
bool | HasPulledUserPermissions () |
bool | IsAdmin () |
std::vector< Ref< RemoteFile > > | GetFiles () |
std::vector< Ref< RemoteFolder > > | GetFolders () |
Ref< RemoteFile > | GetFileById (const std::string &id) |
Ref< RemoteFile > | GetFileByName (const std::string &name) |
void | PullFiles (std::function< bool(size_t, size_t)> progress={}) |
void | PullFolders (std::function< bool(size_t, size_t)> progress={}) |
Ref< RemoteFile > | CreateFile (const std::string &filename, std::vector< uint8_t > &contents, const std::string &name, const std::string &description, Ref< RemoteFolder > folder, BNRemoteFileType type, std::function< bool(size_t, size_t)> progress={}, Ref< ProjectFile > coreFile=nullptr) |
Ref< RemoteFolder > | CreateFolder (const std::string &name, const std::string &description, Ref< RemoteFolder > parent, std::function< bool(size_t, size_t)> progress={}, Ref< ProjectFolder > coreFolder=nullptr) |
void | PushFile (Ref< RemoteFile > file, const std::vector< std::pair< std::string, std::string > > &extraFields={}) |
void | PushFolder (Ref< RemoteFolder > folder, const std::vector< std::pair< std::string, std::string > > &extraFields={}) |
void | DeleteFolder (const Ref< RemoteFolder > folder) |
void | DeleteFile (const Ref< RemoteFile > file) |
Ref< RemoteFolder > | GetFolderById (const std::string &id) |
std::vector< Ref< CollabPermission > > | GetGroupPermissions () |
std::vector< Ref< CollabPermission > > | GetUserPermissions () |
Ref< CollabPermission > | GetPermissionById (const std::string &id) |
void | PullGroupPermissions (std::function< bool(size_t, size_t)> progress={}) |
void | PullUserPermissions (std::function< bool(size_t, size_t)> progress={}) |
Ref< CollabPermission > | CreateGroupPermission (int groupId, BNCollaborationPermissionLevel level, std::function< bool(size_t, size_t)> progress={}) |
Ref< CollabPermission > | CreateUserPermission (const std::string &userId, BNCollaborationPermissionLevel level, std::function< bool(size_t, size_t)> progress={}) |
void | PushPermission (Ref< CollabPermission > permission, const std::vector< std::pair< std::string, std::string > > &extraFields={}) |
void | DeletePermission (Ref< CollabPermission > permission) |
bool | CanUserView (const std::string &username) |
bool | CanUserEdit (const std::string &username) |
bool | CanUserAdmin (const std::string &username) |
Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNRemoteProject, BNNewRemoteProjectReference, BNFreeRemoteProject > | |
CoreRefCountObject () | |
virtual | ~CoreRefCountObject () |
BNRemoteProject * | GetObject () const |
void | AddRef () |
void | Release () |
void | AddRefForRegistration () |
void | ReleaseForRegistration () |
void | AddRefForCallback () |
void | ReleaseForCallback () |
Additional Inherited Members | |
Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNRemoteProject, BNNewRemoteProjectReference, BNFreeRemoteProject > | |
static BNRemoteProject * | GetObject (CoreRefCountObject *obj) |
static BNRemoteProject * | GetObject (const CoreRefCountObject *obj) |
Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNRemoteProject, BNNewRemoteProjectReference, BNFreeRemoteProject > | |
std::atomic< int > | m_refs |
bool | m_registeredRef |
BNRemoteProject * | m_object |
RemoteProject::RemoteProject | ( | BNRemoteProject * | remoteProject | ) |
bool RemoteProject::IsOpen | ( | ) |
bool RemoteProject::Open | ( | std::function< bool(size_t, size_t)> | progress = {} | ) |
void RemoteProject::Close | ( | ) |
std::string RemoteProject::GetUrl | ( | ) |
int64_t RemoteProject::GetCreated | ( | ) |
int64_t RemoteProject::GetLastModified | ( | ) |
std::string RemoteProject::GetId | ( | ) |
std::string RemoteProject::GetName | ( | ) |
void RemoteProject::SetName | ( | const std::string & | name | ) |
std::string RemoteProject::GetDescription | ( | ) |
void RemoteProject::SetDescription | ( | const std::string & | description | ) |
uint64_t RemoteProject::GetReceivedFileCount | ( | ) |
uint64_t RemoteProject::GetReceivedFolderCount | ( | ) |
bool RemoteProject::HasPulledFiles | ( | ) |
bool RemoteProject::HasPulledGroupPermissions | ( | ) |
bool RemoteProject::HasPulledUserPermissions | ( | ) |
bool RemoteProject::IsAdmin | ( | ) |
std::vector< Ref< RemoteFile > > RemoteProject::GetFiles | ( | ) |
std::vector< Ref< RemoteFolder > > RemoteProject::GetFolders | ( | ) |
Ref< RemoteFile > RemoteProject::GetFileById | ( | const std::string & | id | ) |
Ref< RemoteFile > RemoteProject::GetFileByName | ( | const std::string & | name | ) |
void RemoteProject::PullFiles | ( | std::function< bool(size_t, size_t)> | progress = {} | ) |
void RemoteProject::PullFolders | ( | std::function< bool(size_t, size_t)> | progress = {} | ) |
Ref< RemoteFile > RemoteProject::CreateFile | ( | const std::string & | filename, |
std::vector< uint8_t > & | contents, | ||
const std::string & | name, | ||
const std::string & | description, | ||
Ref< RemoteFolder > | folder, | ||
BNRemoteFileType | type, | ||
std::function< bool(size_t, size_t)> | progress = {}, | ||
Ref< ProjectFile > | coreFile = nullptr ) |
Ref< RemoteFolder > RemoteProject::CreateFolder | ( | const std::string & | name, |
const std::string & | description, | ||
Ref< RemoteFolder > | parent, | ||
std::function< bool(size_t, size_t)> | progress = {}, | ||
Ref< ProjectFolder > | coreFolder = nullptr ) |
void RemoteProject::PushFile | ( | Ref< RemoteFile > | file, |
const std::vector< std::pair< std::string, std::string > > & | extraFields = {} ) |
void RemoteProject::PushFolder | ( | Ref< RemoteFolder > | folder, |
const std::vector< std::pair< std::string, std::string > > & | extraFields = {} ) |
void RemoteProject::DeleteFolder | ( | const Ref< RemoteFolder > | folder | ) |
void RemoteProject::DeleteFile | ( | const Ref< RemoteFile > | file | ) |
Ref< RemoteFolder > RemoteProject::GetFolderById | ( | const std::string & | id | ) |
std::vector< Ref< CollabPermission > > RemoteProject::GetGroupPermissions | ( | ) |
std::vector< Ref< CollabPermission > > RemoteProject::GetUserPermissions | ( | ) |
Ref< CollabPermission > RemoteProject::GetPermissionById | ( | const std::string & | id | ) |
void RemoteProject::PullGroupPermissions | ( | std::function< bool(size_t, size_t)> | progress = {} | ) |
void RemoteProject::PullUserPermissions | ( | std::function< bool(size_t, size_t)> | progress = {} | ) |
Ref< CollabPermission > RemoteProject::CreateGroupPermission | ( | int | groupId, |
BNCollaborationPermissionLevel | level, | ||
std::function< bool(size_t, size_t)> | progress = {} ) |
Ref< CollabPermission > RemoteProject::CreateUserPermission | ( | const std::string & | userId, |
BNCollaborationPermissionLevel | level, | ||
std::function< bool(size_t, size_t)> | progress = {} ) |
void RemoteProject::PushPermission | ( | Ref< CollabPermission > | permission, |
const std::vector< std::pair< std::string, std::string > > & | extraFields = {} ) |
void RemoteProject::DeletePermission | ( | Ref< CollabPermission > | permission | ) |
bool RemoteProject::CanUserView | ( | const std::string & | username | ) |
bool RemoteProject::CanUserEdit | ( | const std::string & | username | ) |
bool RemoteProject::CanUserAdmin | ( | const std::string & | username | ) |