Is it possible to make this plugin so you can flag

Is it possible to make this plugin so you can flag BuddyPress and bbPress elements? Talking profiles, activity, forum topics, forum replies, etc. It would be really cool