bool VirtualDirectoryPoseView::FSNotification(const BMessage* message) { switch (message->GetInt32("opcode", 0)) { case B_ENTRY_CREATED: return _EntryCreated(message); case B_ENTRY_REMOVED: return _EntryRemoved(message); case B_ENTRY_MOVED: return _EntryMoved(message); case B_STAT_CHANGED: return _NodeStatChanged(message); default: return _inherited::FSNotification(message); } }
void PathHandler::MessageReceived(BMessage* message) { switch (message->what) { case B_NODE_MONITOR: { int32 opcode; if (message->FindInt32("opcode", &opcode) != B_OK) return; switch (opcode) { case B_ENTRY_CREATED: _EntryCreated(message); break; case B_ENTRY_REMOVED: _EntryRemoved(message); break; case B_ENTRY_MOVED: _EntryMoved(message); break; default: _NotifyTarget(message); break; } break; } default: BHandler::MessageReceived(message); break; } //#ifdef TRACE_PATH_MONITOR // Dump(); //#endif }