status_t BPoseView::GetSupportedSuites(BMessage *_SCRIPTING_ONLY(data)) { #if _SUPPORTS_FEATURE_SCRIPTING data->AddString("suites", kPosesSuites); BPropertyInfo propertyInfo(const_cast<property_info *>(kPosesPropertyList)); data->AddFlat("messages", &propertyInfo); return _inherited::GetSupportedSuites(data); #else return B_UNSUPPORTED; #endif }
BHandler* BChannelSlider::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 form, const char* property) { BHandler* target = this; BPropertyInfo propertyInfo(sPropertyInfo); if (propertyInfo.FindMatch(message, index, specifier, form, property) != B_OK) { target = BChannelControl::ResolveSpecifier(message, index, specifier, form, property); } return target; }
status_t BListView::GetSupportedSuites(BMessage* data) { if (data == NULL) return B_BAD_VALUE; status_t err = data->AddString("suites", "suite/vnd.Be-list-view"); BPropertyInfo propertyInfo(sProperties); if (err == B_OK) err = data->AddFlat("messages", &propertyInfo); if (err == B_OK) return BView::GetSupportedSuites(data); return err; }
status_t BStringView::GetSupportedSuites(BMessage* data) { if (data == NULL) return B_BAD_VALUE; status_t status = data->AddString("suites", "suite/vnd.Be-string-view"); if (status != B_OK) return status; BPropertyInfo propertyInfo(sPropertyList); status = data->AddFlat("messages", &propertyInfo); if (status != B_OK) return status; return BView::GetSupportedSuites(data); }
BHandler* TTracker::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier, int32 form, const char* property) { BPropertyInfo propertyInfo(const_cast<property_info*> (kTrackerPropertyList)); int32 result = propertyInfo.FindMatch(message, index, specifier, form, property); if (result < 0) { //PRINT(("FindMatch result %d %s\n", result, strerror(result))); return _inherited::ResolveSpecifier(message, index, specifier, form, property); } return this; }
status_t AutoMounter::GetSupportedSuites(BMessage* data) { if (data == NULL) return B_BAD_VALUE; status_t status = data->AddString("suites", "suite/vnd.Haiku-mount_server"); if (status != B_OK) return status; BPropertyInfo propertyInfo(sPropertyInfo); status = data->AddFlat("messages", &propertyInfo); if (status != B_OK) return status; return BApplication::GetSupportedSuites(data); }
BHandler * BPoseView::ResolveSpecifier(BMessage *_SCRIPTING_ONLY(message), int32 _SCRIPTING_ONLY(index), BMessage *_SCRIPTING_ONLY(specifier), int32 _SCRIPTING_ONLY(form), const char *_SCRIPTING_ONLY(property)) { #if _SUPPORTS_FEATURE_SCRIPTING BPropertyInfo propertyInfo(const_cast<property_info *>(kPosesPropertyList)); int32 result = propertyInfo.FindMatch(message, index, specifier, form, property); if (result < 0) { // PRINT(("FindMatch result %d \n")); return _inherited::ResolveSpecifier(message, index, specifier, form, property); } return this; #else return NULL; #endif }