From 23da585729242bc135e7a6da0dc5bf699e6c9b54 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 19 Apr 2015 21:12:24 +0000 Subject: - all strings operations were rewritten using CMString instead of ugly self-made buffers; - CComPtr<> introduced to simplify COM calls processing; - version bump. git-svn-id: http://svn.miranda-ng.org/main/trunk@12946 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/HTMLBuilder.h | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'plugins/IEView/src/HTMLBuilder.h') diff --git a/plugins/IEView/src/HTMLBuilder.h b/plugins/IEView/src/HTMLBuilder.h index 9e2f2e3939..dcf4324e58 100644 --- a/plugins/IEView/src/HTMLBuilder.h +++ b/plugins/IEView/src/HTMLBuilder.h @@ -50,33 +50,35 @@ protected: ENF_CHAT_FORMATTING = 256 }; // virtual char *encode(const char *text, const char *proto, bool replaceSmiley); - virtual char *encodeUTF8(MCONTACT hContact, const char *proto, const wchar_t *text, int flags, bool isSent); - virtual char *encodeUTF8(MCONTACT hContact, const char *proto, const char *text, int flags, bool isSent); - virtual char *encodeUTF8(MCONTACT hContact, const char *proto, const char *text, int cp, int flags, bool isSent); - virtual wchar_t *encode(MCONTACT hContact, const char *proto, const wchar_t *text, int flags, bool isSent); - virtual bool encode(MCONTACT hContact, const char *proto, const wchar_t *text, wchar_t **output, int *outputSize, int level, int flags, bool isSent); - virtual char* getProto(MCONTACT hContact); - virtual char* getProto(const char *proto, MCONTACT hContact); - virtual char* getRealProto(MCONTACT hContact); - virtual char* getRealProto(MCONTACT hContact, const char *proto); - virtual wchar_t *getContactName(MCONTACT hContact, const char* szProto); - virtual char *getEncodedContactName(MCONTACT hContact, const char *szProto, const char *szSmileyProto); - virtual void getUINs(MCONTACT hContact, char *&uinIn, char *&uinOut); + virtual char* encodeUTF8(MCONTACT hContact, const char *proto, const wchar_t *text, int flags, bool isSent); + virtual char* encodeUTF8(MCONTACT hContact, const char *proto, const char *text, int flags, bool isSent); + virtual char* encodeUTF8(MCONTACT hContact, const char *proto, const char *text, int cp, int flags, bool isSent); + virtual bool encode(MCONTACT hContact, const char *proto, const wchar_t *text, CMStringW &str, int level, int flags, bool isSent); + virtual char* getProto(MCONTACT hContact); + virtual char* getProto(const char *proto, MCONTACT hContact); + virtual char* getRealProto(MCONTACT hContact); + virtual char* getRealProto(MCONTACT hContact, const char *proto); + virtual wchar_t* getContactName(MCONTACT hContact, const char* szProto); + virtual char* getEncodedContactName(MCONTACT hContact, const char *szProto, const char *szSmileyProto); + virtual void getUINs(MCONTACT hContact, char *&uinIn, char *&uinOut); virtual MCONTACT getRealContact(MCONTACT hContact); - virtual DWORD getLastEventTime(); - virtual void setLastEventTime(DWORD); - virtual int getLastEventType(); - virtual void setLastEventType(int); - virtual bool isSameDate(time_t time1, time_t time2); - virtual bool isDbEventShown(DBEVENTINFO * dbei) = 0; + virtual DWORD getLastEventTime(); + virtual void setLastEventTime(DWORD); + virtual int getLastEventType(); + virtual void setLastEventType(int); + virtual bool isSameDate(time_t time1, time_t time2); + virtual bool isDbEventShown(DBEVENTINFO * dbei) = 0; + virtual ProtocolSettings *getSRMMProtocolSettings(const char *protocolName); virtual ProtocolSettings *getSRMMProtocolSettings(MCONTACT hContact); virtual ProtocolSettings *getHistoryProtocolSettings(const char *protocolName); virtual ProtocolSettings *getHistoryProtocolSettings(MCONTACT hContact); virtual ProtocolSettings *getChatProtocolSettings(const char *protocolName); virtual ProtocolSettings *getChatProtocolSettings(MCONTACT hContact); + void setLastIEViewEvent(IEVIEWEVENT *event); virtual void buildHead(IEView *, IEVIEWEVENT *event) = 0; + public: HTMLBuilder(); virtual ~HTMLBuilder(); -- cgit v1.2.3