|
5 | 5 | class CScriptDispatchID
|
6 | 6 | {
|
7 | 7 | public:
|
| 8 | + // constructor |
| 9 | + CScriptDispatchID (DISPID dispid) : |
| 10 | + _dispid (dispid), |
| 11 | + _count (0) {}; |
| 12 | + |
8 | 13 | // default constructor
|
9 | 14 | CScriptDispatchID () :
|
10 | 15 | _dispid (DISPID_UNKNOWN),
|
@@ -125,80 +130,78 @@ class CPlugin :public CObject
|
125 | 130 |
|
126 | 131 | typedef CTypedPtrList <CPtrList, CPlugin*> CPluginList;
|
127 | 132 |
|
128 |
| - |
129 |
| - |
130 | 133 | // plugin callback routines - start with OnPlugin so that we can advise
|
131 | 134 | // users not to use that string for their own routines
|
132 | 135 |
|
133 | 136 | // install / remove
|
134 |
| -const string ON_PLUGIN_INSTALL ("OnPluginInstall"); |
135 |
| -const string ON_PLUGIN_CLOSE ("OnPluginClose"); |
136 |
| -const string ON_PLUGIN_LIST_CHANGED ("OnPluginListChanged"); |
| 137 | +extern const string ON_PLUGIN_INSTALL; |
| 138 | +extern const string ON_PLUGIN_CLOSE; |
| 139 | +extern const string ON_PLUGIN_LIST_CHANGED; |
137 | 140 |
|
138 | 141 | // connect / disconnect
|
139 |
| -const string ON_PLUGIN_CONNECT ("OnPluginConnect"); |
140 |
| -const string ON_PLUGIN_DISCONNECT ("OnPluginDisconnect"); |
| 142 | +extern const string ON_PLUGIN_CONNECT; |
| 143 | +extern const string ON_PLUGIN_DISCONNECT; |
141 | 144 |
|
142 | 145 | // saving
|
143 |
| -const string ON_PLUGIN_SAVE_STATE ("OnPluginSaveState"); |
144 |
| -const string ON_PLUGIN_WORLD_SAVE ("OnPluginWorldSave"); |
| 146 | +extern const string ON_PLUGIN_SAVE_STATE; |
| 147 | +extern const string ON_PLUGIN_WORLD_SAVE; |
145 | 148 |
|
146 | 149 | // enable / disable
|
147 |
| -const string ON_PLUGIN_ENABLE ("OnPluginEnable"); |
148 |
| -const string ON_PLUGIN_DISABLE ("OnPluginDisable"); |
| 150 | +extern const string ON_PLUGIN_ENABLE; |
| 151 | +extern const string ON_PLUGIN_DISABLE; |
149 | 152 |
|
150 |
| -// the focus |
151 |
| -const string ON_PLUGIN_GETFOCUS ("OnPluginGetFocus"); |
152 |
| -const string ON_PLUGIN_LOSEFOCUS ("OnPluginLoseFocus"); |
| 153 | +// the focus |
| 154 | +extern const string ON_PLUGIN_GETFOCUS; |
| 155 | +extern const string ON_PLUGIN_LOSEFOCUS; |
153 | 156 |
|
154 | 157 | // capture stuff
|
155 |
| -const string ON_PLUGIN_TRACE ("OnPluginTrace"); |
156 |
| -const string ON_PLUGIN_BROADCAST ("OnPluginBroadcast"); |
157 |
| -const string ON_PLUGIN_SCREENDRAW ("OnPluginScreendraw"); |
| 158 | +extern const string ON_PLUGIN_TRACE; |
| 159 | +extern const string ON_PLUGIN_BROADCAST; |
| 160 | +extern const string ON_PLUGIN_SCREENDRAW; |
158 | 161 |
|
159 | 162 | // sounds
|
160 |
| -const string ON_PLUGIN_PLAYSOUND ("OnPluginPlaySound"); |
| 163 | +extern const string ON_PLUGIN_PLAYSOUND; |
161 | 164 |
|
162 | 165 | // stuff received/sent
|
163 |
| -const string ON_PLUGIN_SEND ("OnPluginSend"); |
164 |
| -const string ON_PLUGIN_SENT ("OnPluginSent"); |
165 |
| -const string ON_PLUGIN_PARTIAL_LINE ("OnPluginPartialLine"); |
166 |
| -const string ON_PLUGIN_LINE_RECEIVED ("OnPluginLineReceived"); |
167 |
| -const string ON_PLUGIN_PACKET_RECEIVED ("OnPluginPacketReceived"); |
| 166 | +extern const string ON_PLUGIN_SEND; |
| 167 | +extern const string ON_PLUGIN_SENT; |
| 168 | +extern const string ON_PLUGIN_PARTIAL_LINE; |
| 169 | +extern const string ON_PLUGIN_LINE_RECEIVED; |
| 170 | +extern const string ON_PLUGIN_PACKET_RECEIVED; |
168 | 171 |
|
169 | 172 | // telnet negotiation
|
170 |
| -const string ON_PLUGIN_TELNET_OPTION ("OnPluginTelnetOption"); |
171 |
| -const string ON_PLUGIN_TELNET_REQUEST ("OnPluginTelnetRequest"); |
172 |
| -const string ON_PLUGIN_TELNET_SUBNEGOTIATION ("OnPluginTelnetSubnegotiation"); |
173 |
| -const string ON_PLUGIN_IAC_GA ("OnPlugin_IAC_GA"); |
| 173 | +extern const string ON_PLUGIN_TELNET_OPTION; |
| 174 | +extern const string ON_PLUGIN_TELNET_REQUEST; |
| 175 | +extern const string ON_PLUGIN_TELNET_SUBNEGOTIATION; |
| 176 | +extern const string ON_PLUGIN_IAC_GA; |
174 | 177 |
|
175 | 178 | // commands
|
176 |
| -const string ON_PLUGIN_COMMAND ("OnPluginCommand"); |
177 |
| -const string ON_PLUGIN_COMMAND_ENTERED ("OnPluginCommandEntered"); |
178 |
| -const string ON_PLUGIN_COMMAND_CHANGED ("OnPluginCommandChanged"); |
179 |
| -const string ON_PLUGIN_TABCOMPLETE ("OnPluginTabComplete"); |
| 179 | +extern const string ON_PLUGIN_COMMAND; |
| 180 | +extern const string ON_PLUGIN_COMMAND_ENTERED; |
| 181 | +extern const string ON_PLUGIN_COMMAND_CHANGED; |
| 182 | +extern const string ON_PLUGIN_TABCOMPLETE; |
180 | 183 |
|
181 | 184 | // resizing, ticking, moving, rhythm
|
182 |
| -const string ON_PLUGIN_WORLD_OUTPUT_RESIZED ("OnPluginWorldOutputResized"); |
183 |
| -const string ON_PLUGIN_TICK ("OnPluginTick"); |
184 |
| -const string ON_PLUGIN_MOUSE_MOVED ("OnPluginMouseMoved"); |
| 185 | +extern const string ON_PLUGIN_WORLD_OUTPUT_RESIZED; |
| 186 | +extern const string ON_PLUGIN_TICK; |
| 187 | +extern const string ON_PLUGIN_MOUSE_MOVED; |
185 | 188 |
|
186 | 189 | // MXP stuff
|
187 |
| -const string ON_PLUGIN_MXP_START ("OnPluginMXPstart"); |
188 |
| -const string ON_PLUGIN_MXP_STOP ("OnPluginMXPstop"); |
189 |
| -const string ON_PLUGIN_MXP_OPENTAG ("OnPluginMXPopenTag"); |
190 |
| -const string ON_PLUGIN_MXP_CLOSETAG ("OnPluginMXPcloseTag"); |
191 |
| -const string ON_PLUGIN_MXP_SETVARIABLE ("OnPluginMXPsetVariable"); |
192 |
| -const string ON_PLUGIN_MXP_SETENTITY ("OnPluginMXPsetEntity"); |
193 |
| -const string ON_PLUGIN_MXP_ERROR ("OnPluginMXPerror"); |
| 190 | +extern const string ON_PLUGIN_MXP_START; |
| 191 | +extern const string ON_PLUGIN_MXP_STOP; |
| 192 | +extern const string ON_PLUGIN_MXP_OPENTAG; |
| 193 | +extern const string ON_PLUGIN_MXP_CLOSETAG; |
| 194 | +extern const string ON_PLUGIN_MXP_SETVARIABLE; |
| 195 | +extern const string ON_PLUGIN_MXP_SETENTITY; |
| 196 | +extern const string ON_PLUGIN_MXP_ERROR; |
194 | 197 |
|
195 | 198 | // chat stuff
|
196 |
| -const string ON_PLUGIN_CHAT_ACCEPT ("OnPluginChatAccept"); |
197 |
| -const string ON_PLUGIN_CHAT_MESSAGE ("OnPluginChatMessage"); |
198 |
| -const string ON_PLUGIN_CHAT_MESSAGE_OUT ("OnPluginChatMessageOut"); |
199 |
| -const string ON_PLUGIN_CHAT_DISPLAY ("OnPluginChatDisplay"); |
200 |
| -const string ON_PLUGIN_CHAT_NEWUSER ("OnPluginChatNewUser"); |
201 |
| -const string ON_PLUGIN_CHAT_USERDISCONNECT ("OnPluginChatUserDisconnect"); |
| 199 | +extern const string ON_PLUGIN_CHAT_ACCEPT; |
| 200 | +extern const string ON_PLUGIN_CHAT_MESSAGE; |
| 201 | +extern const string ON_PLUGIN_CHAT_MESSAGE_OUT; |
| 202 | +extern const string ON_PLUGIN_CHAT_DISPLAY; |
| 203 | +extern const string ON_PLUGIN_CHAT_NEWUSER; |
| 204 | +extern const string ON_PLUGIN_CHAT_USERDISCONNECT; |
202 | 205 |
|
203 | 206 | // table of callbacks
|
204 | 207 | extern string PluginCallbacksNames [];
|
0 commit comments