📄 dumfeature.hxx
字号:
#ifndef RESIP_DumFeature_HXX#define RESIP_DumFeature_HXX #include <memory>#include "resip/dum/TargetCommand.hxx"namespace resip{class DialogUsageManager;class Message;class DumFeature{ public: DumFeature(DialogUsageManager& dum, TargetCommand::Target& target); virtual ~DumFeature(); enum ProcessingResultMask { EventDoneBit = 1 << 0, EventTakenBit = 1 << 1, FeatureDoneBit = 1 << 2, ChainDoneBit = 1 << 3 }; //legal combinations enum ProcessingResult { EventTaken = EventTakenBit, FeatureDone = FeatureDoneBit, FeatureDoneAndEventDone = FeatureDoneBit | EventDoneBit, FeatureDoneAndEventTaken = FeatureDoneBit | EventTakenBit, ChainDoneAndEventDone = ChainDoneBit | EventDoneBit, ChainDoneAndEventTaken = ChainDoneBit | EventTakenBit }; // !bwc! We absolutely, positively, MUST NOT throw here. This is because // in DialogUsageManager::process(), we do not know if a DumFeature has // taken ownership of msg until we get a return. If we throw, the // ownership of msg is unknown. This is unacceptable. virtual ProcessingResult process(Message* msg) = 0; virtual void postCommand(std::auto_ptr<Message> message); protected: DialogUsageManager& mDum; TargetCommand::Target& mTarget;}; }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -