00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef NOTICETARGET_H
00017 #define NOTICETARGET_H
00018
00019 #ifndef USE_PCH
00020 #include <string>
00021 #include "debug.h"
00022 #endif
00023
00024 #include "PrivateTarget.h"
00025
00026 class ClientMessageIn;
00027
00028
00029
00030
00031
00032 class NoticeTarget : public PrivateTarget {
00033 private:
00034 std::string M_notice;
00035
00036 public:
00037
00038 NoticeTarget(ClientSession& client_session, std::string const& target_name, Network& network) :
00039 PrivateTarget(client_session, target_name, network)
00040 { Dout(dc::objects, "Constructing NoticeTarget(" <<
00041 client_session << ", \"" << target_name << "\", " << network << ")"); }
00042 #ifdef CWDEBUG
00043
00044 ~NoticeTarget() { Dout(dc::objects, "Destructing NoticeTarget " << *this); }
00045
00046 NoticeTarget(NoticeTarget const& notice_target) : PrivateTarget(notice_target)
00047 { Dout(dc::objects, "Copy-constructing NoticeTarget from " << notice_target); }
00048 #endif
00049
00050
00051 virtual void new_client_message_received(ClientMessageIn const& msg);
00052
00053 protected:
00054
00055 virtual char const* channel_modes(void) { return "mnt"; }
00056 };
00057
00058 #endif // NOTICETARGET_H