/haiku/src/kits/support/ |
H A D | ArchivingManagers.cpp | 101 BArchiveManager::GetTokenForArchivable(BArchivable* archivable, int32& _token) in GetTokenForArchivable() argument 103 if (!archivable) { in GetTokenForArchivable() 108 TokenMap::iterator it = fTokenMap.find(archivable); in GetTokenForArchivable() 119 BArchiveManager::ArchiveObject(BArchivable* archivable, in ArchiveObject() argument 122 if (!archivable) { in ArchiveObject() 127 ArchiveInfo& info = fTokenMap[archivable]; in ArchiveObject() 136 err = archivable->Archive(info.archive, deep); in ArchiveObject() 140 fTokenMap.erase(archivable); in ArchiveObject() 151 BArchiveManager::IsArchived(BArchivable* archivable) in IsArchived() argument 153 if (!archivable) in IsArchived() [all …]
|
H A D | Archivable.cpp | 415 BArchiver::AddArchivable(const char* name, BArchivable* archivable, bool deep) in AddArchivable() argument 418 status_t err = GetTokenForArchivable(archivable, deep, token); in AddArchivable() 428 BArchiver::GetTokenForArchivable(BArchivable* archivable, in GetTokenForArchivable() argument 431 return fManager->ArchiveObject(archivable, deep, _token); in GetTokenForArchivable() 436 BArchiver::IsArchived(BArchivable* archivable) in IsArchived() argument 438 return fManager->IsArchived(archivable); in IsArchived() 462 BArchiver::RegisterArchivable(const BArchivable* archivable) in RegisterArchivable() argument 464 fManager->RegisterArchivable(archivable); in RegisterArchivable() 500 int32 index, ownership_policy owning, BArchivable*& archivable) in FindObject() argument 502 archivable = NULL; in FindObject() [all …]
|
H A D | ArchivingManagers.h | 104 status_t GetTokenForArchivable(BArchivable* archivable, 107 status_t ArchiveObject(BArchivable* archivable, 110 bool IsArchived(BArchivable* archivable); 117 const BArchivable* archivable); 143 void RegisterArchivable(BArchivable* archivable); 148 void RelinquishOwnership(BArchivable* archivable); 149 void AssumeOwnership(BArchivable* archivable);
|
/haiku/src/kits/debugger/util/ |
H A D | ArchivingUtils.h | 15 static ObjectType* CastOrDelete(BArchivable* archivable); 34 ArchivingUtils::CastOrDelete(BArchivable* archivable) in CastOrDelete() argument 36 if (archivable == NULL) in CastOrDelete() 39 ObjectType* object = dynamic_cast<ObjectType*>(archivable); in CastOrDelete() 41 delete archivable; in CastOrDelete() local
|
/haiku/headers/os/support/ |
H A D | Archivable.h | 58 BArchivable* archivable, bool deep = true); 60 inline status_t GetTokenForArchivable(BArchivable* archivable, 62 status_t GetTokenForArchivable(BArchivable* archivable, 65 bool IsArchived(BArchivable* archivable); 76 const BArchivable* archivable); 129 void AssumeOwnership(BArchivable* archivable); 130 void RelinquishOwnership(BArchivable* archivable); 145 void RegisterArchivable(BArchivable* archivable); 171 BArchiver::GetTokenForArchivable(BArchivable* archivable, int32& _token) in GetTokenForArchivable() argument 173 return GetTokenForArchivable(archivable, true, _token); in GetTokenForArchivable() [all …]
|
/haiku/docs/user/support/ |
H A D | Archivable.dox | 257 BArchivable* archivable, bool deep = true) 258 \brief Adds a reference to \c archivable to the archive used to 259 construct this BArchiver. May call \c archivable's Archive() method. 262 \param archivable The BArchivable* object that to reference. 263 \param deep Passed to \c archivable->Archive() if \c archivable must 266 Adds a reference to \c archivable to your archive. If \c archivable has 281 \fn status_t BArchiver::GetTokenForArchivable(BArchivable* archivable, 286 \param archivable The BArchivable object for which you wish to get a 288 \param deep Controls how \c archivable will be archived, if it has not yet 290 \param[out] _token The token representing \c archivable is stored here. [all …]
|
/haiku/src/tests/kits/interface/flatten_picture/ |
H A D | PictureTest.cpp | 357 BArchivable *archivable = BPicture::Instantiate(&archive); in SaveAndRestore() local 358 AutoDelete<BArchivable> _archivable(archivable); in SaveAndRestore() 359 TEST_AND_RETURN(archivable == NULL, "Picture could not be instantiated from BMessage", NULL); in SaveAndRestore() 361 BPicture *archivedPicture = dynamic_cast<BPicture*>(archivable); in SaveAndRestore()
|
/haiku/src/tests/servers/app/archived_view/ |
H A D | main.cpp | 157 BArchivable* archivable = instantiate_object(&archive); in show_window() local 158 view = dynamic_cast<BView*>(archivable); in show_window()
|
/haiku/src/apps/icon-o-matic/generic/property/view/ |
H A D | PropertyListView.cpp | 196 BArchivable* archivable = instantiate_object(&archive); in MessageReceived() local 197 if (!archivable) in MessageReceived() 200 Property* property = dynamic_cast<Property*>(archivable); in MessageReceived() 202 delete archivable; in MessageReceived()
|
/haiku/src/kits/interface/ |
H A D | Dragger.cpp | 167 BArchivable* archivable = instantiate_object(&popupMsg); in BDragger() local 169 if (archivable) { in BDragger() 170 fPopUp = dynamic_cast<BPopUpMenu*>(archivable); in BDragger()
|
H A D | Shelf.cpp | 1302 BArchivable *archivable = _InstantiateObject(data, &image); in _AddReplicant() local 1306 if (archivable != NULL) { in _AddReplicant() 1307 view = dynamic_cast<BView*>(archivable); in _AddReplicant()
|
/haiku/src/apps/mediaplayer/playlist/ |
H A D | Playlist.cpp | 124 BArchivable* archivable = instantiate_object(&itemArchive); in Unarchive() local 125 PlaylistItem* item = dynamic_cast<PlaylistItem*>(archivable); in Unarchive() 127 delete archivable; in Unarchive()
|