diff options
Diffstat (limited to 'linden/indra/newview/llimpanel.h')
-rw-r--r-- | linden/indra/newview/llimpanel.h | 61 |
1 files changed, 60 insertions, 1 deletions
diff --git a/linden/indra/newview/llimpanel.h b/linden/indra/newview/llimpanel.h index b5a0165..cb77c24 100644 --- a/linden/indra/newview/llimpanel.h +++ b/linden/indra/newview/llimpanel.h | |||
@@ -42,6 +42,12 @@ | |||
42 | #include "llvoiceclient.h" | 42 | #include "llvoiceclient.h" |
43 | #include "llstyle.h" | 43 | #include "llstyle.h" |
44 | 44 | ||
45 | #if USE_OTR // [$PLOTR$] | ||
46 | # include "otr_wrapper.h" | ||
47 | class OtrFloaterSmpDialog; | ||
48 | class OtrFloaterSmpProgress; | ||
49 | #endif // USE_OTR // [/$PLOTR$] | ||
50 | |||
45 | class LLLineEditor; | 51 | class LLLineEditor; |
46 | class LLViewerTextEditor; | 52 | class LLViewerTextEditor; |
47 | class LLInventoryItem; | 53 | class LLInventoryItem; |
@@ -175,6 +181,22 @@ private: | |||
175 | BOOL mReceivedCall; | 181 | BOOL mReceivedCall; |
176 | }; | 182 | }; |
177 | 183 | ||
184 | #if USE_OTR // [$PLOTR$] | ||
185 | extern void otr_authenticate_key(LLUUID session_id, const char *trust); | ||
186 | extern void otr_log_message_getstring_name(LLUUID session_id, const char *message_name); | ||
187 | extern void otr_log_message_getstring(LLUUID session_id, const char *message_name); | ||
188 | extern void otr_log_message(LLUUID session_id, const char *message); | ||
189 | extern void otr_show_status(LLUUID session_id); | ||
190 | extern void otr_deliver_message(const std::string& utf8_text, | ||
191 | const LLUUID& im_session_id, | ||
192 | const LLUUID& other_participant_id, | ||
193 | EInstantMessage dialog); | ||
194 | extern void deliver_message(const std::string& utf8_text, | ||
195 | const LLUUID& im_session_id, | ||
196 | const LLUUID& other_participant_id, | ||
197 | EInstantMessage dialog); | ||
198 | #endif // USE_OTR // [/$PLOTR$] | ||
199 | |||
178 | class LLFloaterIMPanel : public LLFloater | 200 | class LLFloaterIMPanel : public LLFloater |
179 | { | 201 | { |
180 | public: | 202 | public: |
@@ -299,7 +321,44 @@ private: | |||
299 | void removeTypingIndicator(const LLIMInfo* im_info); | 321 | void removeTypingIndicator(const LLIMInfo* im_info); |
300 | 322 | ||
301 | void sendTypingState(BOOL typing); | 323 | void sendTypingState(BOOL typing); |
302 | 324 | ||
325 | #if USE_OTR // [$PLOTR$] | ||
326 | public: | ||
327 | static void onClickOtr(LLUICtrl* source, void* userdata); | ||
328 | void doOtrMenu(); | ||
329 | void showOtrStatus(); | ||
330 | void otrLogMessage(std::string message); | ||
331 | void otrLogMessageGetstring(const char *message_name); | ||
332 | void otrLogMessageGetstringName(const char *message_name); | ||
333 | bool otherIsOtrAuthenticated(); | ||
334 | void otrAuthenticateKey(const char *trust); | ||
335 | void doOtrStart(); | ||
336 | void doOtrStop(bool pretend_they_did=false); | ||
337 | void pretendTheyOtrStop(); | ||
338 | ConnContext *getOtrContext(int add_if_not = 0, int *context_added = NULL); | ||
339 | void startSmpProgress(LLUUID session_id, LLUUID other_id, | ||
340 | std::string a_question, std::string a_secret_answer, | ||
341 | bool is_reply = false); | ||
342 | void startSmpProgress(LLUUID session_id, LLUUID other_id, | ||
343 | std::string a_secret, | ||
344 | bool is_reply = false); | ||
345 | void endSmpProgress(); | ||
346 | void endSmpDialog(); | ||
347 | void handleOtrTlvs(OtrlTLV *tlvs); | ||
348 | private: | ||
349 | void startSmpDialog(LLUUID session_id, LLUUID other_id, | ||
350 | std::string my_fingerprint, std::string other_fingerprint); | ||
351 | void startSmpDialogQA(LLUUID session_id, LLUUID other_id, | ||
352 | std::string question, OtrlTLV *tlv); | ||
353 | void startSmpDialogSS(LLUUID session_id, LLUUID other_id, | ||
354 | OtrlTLV *tlv); | ||
355 | void doOtrAuth(); | ||
356 | OtrlMessageState mOtrLastStatus; | ||
357 | OtrFloaterSmpDialog *mOtrSmpDialog; | ||
358 | OtrFloaterSmpProgress *mOtrSmpProgress; | ||
359 | bool isEncrypted(); | ||
360 | #endif // USE_OTR // [/$PLOTR$] | ||
361 | |||
303 | private: | 362 | private: |
304 | LLLineEditor* mInputEditor; | 363 | LLLineEditor* mInputEditor; |
305 | LLViewerTextEditor* mHistoryEditor; | 364 | LLViewerTextEditor* mHistoryEditor; |