summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_notes.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-18 22:32:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-19 19:24:16 +0300
commit6e9ba17bef418a058e84ff5e248ea479d4836669 (patch)
treed49f0c620d3c06092900ff7374b22ccfa646a0b7 /protocols/JabberG/src/jabber_notes.h
parentd05f7096cd384679e9dcab92a6efc81c68977628 (diff)
Jabber -> TinyXml2
Diffstat (limited to 'protocols/JabberG/src/jabber_notes.h')
-rw-r--r--protocols/JabberG/src/jabber_notes.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/protocols/JabberG/src/jabber_notes.h b/protocols/JabberG/src/jabber_notes.h
index c501a501b0..c2867970b3 100644
--- a/protocols/JabberG/src/jabber_notes.h
+++ b/protocols/JabberG/src/jabber_notes.h
@@ -30,26 +30,27 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
class CNoteItem
{
private:
- wchar_t *m_szTitle;
- wchar_t *m_szFrom;
- wchar_t *m_szText;
- wchar_t *m_szTags;
- wchar_t *m_szTagsStr;
+ char *m_szTitle = 0;
+ char *m_szFrom = 0;
+ char *m_szTags = 0;
+ char *m_szTagsStr = 0;
+
+ wchar_t *m_szText = 0;
public:
CNoteItem();
- CNoteItem(HXML hXml, wchar_t *szFrom = nullptr);
+ CNoteItem(const TiXmlElement *hXml, const char *szFrom = nullptr);
~CNoteItem();
- void SetData(wchar_t *title, wchar_t *from, wchar_t *text, wchar_t *tags);
+ void SetData(const char *title, const char *from, const wchar_t *text, const char *tags);
- wchar_t *GetTitle() const { return m_szTitle; }
- wchar_t *GetFrom() const { return m_szFrom; }
- wchar_t *GetText() const { return m_szText; }
- wchar_t *GetTags() const { return m_szTags; }
- wchar_t *GetTagsStr() const { return m_szTagsStr; }
+ char* GetTitle() const { return m_szTitle; }
+ char* GetFrom() const { return m_szFrom; }
+ char* GetTags() const { return m_szTags; }
+ char* GetTagsStr() const { return m_szTagsStr; }
+ wchar_t* GetText() const { return m_szText; }
- bool HasTag(const wchar_t *szTag);
+ bool HasTag(const char *szTag);
bool IsNotEmpty()
{
@@ -76,9 +77,9 @@ public:
OBJLIST<CNoteItem>::remove(p);
}
- void AddNote(HXML hXml, wchar_t *szFrom = nullptr);
- void LoadXml(HXML hXml);
- void SaveXml(HXML hXmlParent);
+ void AddNote(TiXmlElement *hXml, const char *szFrom = nullptr);
+ void LoadXml(const TiXmlElement *hXml);
+ void SaveXml(TiXmlElement *hXmlParent);
bool IsModified() { return m_bIsModified; }
void Modify() { m_bIsModified = true; }