summaryrefslogtreecommitdiff
path: root/plugins/IEView
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-07-31 18:07:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-07-31 18:07:27 +0300
commit500dd4848842f6d4207584417448586d060fbd6a (patch)
tree569ac641e814da1d706d36b12eaf35183a3ce7a5 /plugins/IEView
parentb47e4b4b32698470bf52c0dc1c2d1af56c46c9b5 (diff)
Contact: group of functions gathered into the personal namespace
Diffstat (limited to 'plugins/IEView')
-rw-r--r--plugins/IEView/src/HTMLBuilder.cpp8
-rw-r--r--plugins/IEView/src/TemplateHTMLBuilder.cpp12
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp
index 3398d2b003..6af035fbc9 100644
--- a/plugins/IEView/src/HTMLBuilder.cpp
+++ b/plugins/IEView/src/HTMLBuilder.cpp
@@ -150,20 +150,20 @@ void HTMLBuilder::getUINs(MCONTACT hContact, char *&uinIn, char *&uinOut)
{
hContact = getRealContact(hContact);
- ptrW id(Contact_GetInfo(CNF_UNIQUEID, hContact));
+ ptrW id(Contact::GetInfo(CNF_UNIQUEID, hContact));
uinIn = mir_utf8encodeW(id ? id.get() : L"");
- id = Contact_GetInfo(CNF_UNIQUEID, NULL);
+ id = Contact::GetInfo(CNF_UNIQUEID, NULL);
uinOut = mir_utf8encodeW(id ? id.get() : L"");
}
wchar_t* HTMLBuilder::getContactName(MCONTACT hContact, const char *szProto)
{
- wchar_t *str = Contact_GetInfo(CNF_DISPLAY, hContact, szProto);
+ wchar_t *str = Contact::GetInfo(CNF_DISPLAY, hContact, szProto);
if (str != nullptr)
return str;
- str = Contact_GetInfo(CNF_UNIQUEID, hContact, szProto);
+ str = Contact::GetInfo(CNF_UNIQUEID, hContact, szProto);
if (str != nullptr)
return str;
diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp
index b9688859b6..c35ed05512 100644
--- a/plugins/IEView/src/TemplateHTMLBuilder.cpp
+++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp
@@ -173,13 +173,13 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr
db_free(&dbv);
}
- ptrW tszNick(Contact_GetInfo(CNF_NICK, event->hContact, szRealProto));
+ ptrW tszNick(Contact::GetInfo(CNF_NICK, event->hContact, szRealProto));
if (tszNick != nullptr)
szNickIn = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true);
- tszNick = Contact_GetInfo(CNF_CUSTOMNICK, 0, szRealProto);
+ tszNick = Contact::GetInfo(CNF_CUSTOMNICK, 0, szRealProto);
if (tszNick == nullptr)
- Contact_GetInfo(CNF_NICK, 0, szRealProto);
+ Contact::GetInfo(CNF_NICK, 0, szRealProto);
if (tszNick != nullptr)
szNickOut = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true);
@@ -347,13 +347,13 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event,
}
}
- ptrW tszNick(Contact_GetInfo(CNF_NICK, event->hContact, szProto));
+ ptrW tszNick(Contact::GetInfo(CNF_NICK, event->hContact, szProto));
if (tszNick != nullptr)
szNickIn = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true);
- tszNick = Contact_GetInfo(CNF_CUSTOMNICK, 0, szProto);
+ tszNick = Contact::GetInfo(CNF_CUSTOMNICK, 0, szProto);
if (tszNick == nullptr)
- tszNick = Contact_GetInfo(CNF_NICK, 0, szProto);
+ tszNick = Contact::GetInfo(CNF_NICK, 0, szProto);
if (tszNick != nullptr)
szNickOut = encodeUTF8(event->hContact, tszNick, ENF_NAMESMILEYS, true);