summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-14 17:59:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-14 17:59:03 +0300
commitf12d6a4000cfce521392200635d1cadc63dba934 (patch)
tree86d408068682d7b1e239877df857ac95f7f25297 /include
parentaa5197082f1567e37b85911752b92a489d6515c3 (diff)
SRMM code unification
Diffstat (limited to 'include')
-rw-r--r--include/m_database.h4
-rw-r--r--include/m_srmm_int.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/include/m_database.h b/include/m_database.h
index a3e7a09af9..28e0d78c17 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -517,8 +517,8 @@ __forceinline MCONTACT DbGetAuthEventContact(DBEVENTINFO *dbei)
// Function returns a pointer to a string in the required format.
// This string should be freed by a call of mir_free
-EXTERN_C MIR_APP_DLL(char*) DbEvent_GetTextA(DBEVENTINFO *dbei, int codepage);
-EXTERN_C MIR_APP_DLL(wchar_t*) DbEvent_GetTextW(DBEVENTINFO *dbei, int codepage);
+EXTERN_C MIR_APP_DLL(char*) DbEvent_GetTextA(const DBEVENTINFO *dbei, int codepage);
+EXTERN_C MIR_APP_DLL(wchar_t*) DbEvent_GetTextW(const DBEVENTINFO *dbei, int codepage);
/////////////////////////////////////////////////////////////////////////////////////////
// Retrieves the event's icon
diff --git a/include/m_srmm_int.h b/include/m_srmm_int.h
index 27dc5d0ebf..9e3b8e0c7a 100644
--- a/include/m_srmm_int.h
+++ b/include/m_srmm_int.h
@@ -134,6 +134,10 @@ public:
virtual void UpdateOptions() {};
virtual INT_PTR Notify(WPARAM, LPARAM) { return 0; }
+
+ __inline CMsgDialog& GetDialog() const
+ { return m_pDlg;
+ }
};
typedef CSrmmLogWindow *(MIR_CDECL *pfnSrmmLogCreator)(CMsgDialog &pDlg);
@@ -149,10 +153,13 @@ class MIR_APP_EXPORT CRtfLogWindow : public CSrmmLogWindow
protected:
CCtrlRichEdit &m_rtf;
+ void InsertFileLink(CMStringA &buf, MEVENT hEvent, const DB::FILE_BLOB &blob);
+
public:
CRtfLogWindow(CMsgDialog &pDlg);
~CRtfLogWindow() override;
+ virtual void AppendUnicodeString(CMStringA &str, const wchar_t *pwszBuf) = 0;
virtual INT_PTR WndProc(UINT msg, WPARAM wParam, LPARAM lParam);
////////////////////////////////////////////////////////////////////////////////////////