summaryrefslogtreecommitdiff
path: root/plugins/NewStory
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/NewStory
parentb47e4b4b32698470bf52c0dc1c2d1af56c46c9b5 (diff)
Contact: group of functions gathered into the personal namespace
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history.cpp6
-rw-r--r--plugins/NewStory/src/options.cpp4
-rw-r--r--plugins/NewStory/src/templates.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index 1f07f11105..040f67e2c4 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -633,7 +633,7 @@ public:
for (int i = 0; i < subcount; i++) {
MCONTACT hSubContact = db_mc_getSub(m_hContact, i);
char *subproto = Proto_GetBaseAccountName(hSubContact);
- ptrW subid(Contact_GetInfo(CNF_UNIQUEID, hSubContact, subproto));
+ ptrW subid(Contact::GetInfo(CNF_UNIQUEID, hSubContact, subproto));
if (FirstTime)
SubContactsList.Append(subid);
else
@@ -645,8 +645,8 @@ public:
return;
}
char* proto = Proto_GetBaseAccountName(m_hContact);
- ptrW id(Contact_GetInfo(CNF_UNIQUEID, m_hContact, proto));
- ptrW nick(Contact_GetInfo(CNF_DISPLAY, m_hContact, proto));
+ ptrW id(Contact::GetInfo(CNF_UNIQUEID, m_hContact, proto));
+ ptrW nick(Contact::GetInfo(CNF_DISPLAY, m_hContact, proto));
const char* uid = Proto_GetUniqueId(proto);
OPENFILENAME ofn = { 0 };
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp
index a8bb78a9b2..0e32405a02 100644
--- a/plugins/NewStory/src/options.cpp
+++ b/plugins/NewStory/src/options.cpp
@@ -84,8 +84,8 @@ public:
m_hContact = db_add_contact();
Proto_AddToContact(m_hContact, META_PROTO);
- Contact_Hide(m_hContact);
- Contact_RemoveFromList(m_hContact);
+ Contact::Hide(m_hContact);
+ Contact::RemoveFromList(m_hContact);
db_set_ws(m_hContact, META_PROTO, "Nick", TranslateT("Test contact"));
DBEVENTINFO dbei = {};
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 88189452cc..727adc24c5 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -114,7 +114,7 @@ void vfGlobal(int, TemplateVars *vars, MCONTACT hContact, ItemData *)
// %S: my nick (not for messages)
char* proto = Proto_GetBaseAccountName(hContact);
- ptrW nick(Contact_GetInfo(CNF_DISPLAY, 0, proto));
+ ptrW nick(Contact::GetInfo(CNF_DISPLAY, 0, proto));
vars->SetVar('S', nick, false);
}
@@ -149,7 +149,7 @@ void vfEvent(int, TemplateVars *vars, MCONTACT, ItemData *item)
// %N: Nickname
if (item->dbe.flags & DBEF_SENT) {
char *proto = Proto_GetBaseAccountName(item->hContact);
- ptrW nick(Contact_GetInfo(CNF_DISPLAY, 0, proto));
+ ptrW nick(Contact::GetInfo(CNF_DISPLAY, 0, proto));
vars->SetVar('N', nick, false);
}
else {