diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-01-07 02:22:40 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-01-07 02:22:40 +0000 |
commit | 838f03d71305a62e2372f6999d4aaf096c6a2145 (patch) | |
tree | 9a333ce542019cf3c2c42df501383f5ce62c9a28 /Protocols/IAX/IAXProto.cpp | |
parent | ffc65c1f90f685e98f2f6d0a5d72c661b69cb3df (diff) |
iax: 0.1.2.0
* Fix for wrong voiceservice version
+ Added protocol icon (thanks Angeli-Ka)
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@208 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Protocols/IAX/IAXProto.cpp')
-rw-r--r-- | Protocols/IAX/IAXProto.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Protocols/IAX/IAXProto.cpp b/Protocols/IAX/IAXProto.cpp index b1f81de..e1d77bc 100644 --- a/Protocols/IAX/IAXProto.cpp +++ b/Protocols/IAX/IAXProto.cpp @@ -90,6 +90,14 @@ IAXProto::IAXProto(const char *aProtoName, const TCHAR *aUserName) hCallStateEvent = CreateProtoEvent(PE_VOICE_CALL_STATE);
+ char icon[512];
+ mir_snprintf(icon, MAX_REGS(icon), "%s_main", m_szModuleName);
+
+ TCHAR section[100];
+ mir_sntprintf(section, MAX_REGS(section), _T("%s/%s"), LPGENT("Protocols"), m_tszUserName);
+
+ IcoLib_Register(icon, section, LPGENT("Protocol icon"), IDI_PROTO);
+
HookProtoEvent(ME_OPT_INITIALISE, &IAXProto::OnOptionsInit);
}
@@ -137,6 +145,20 @@ DWORD_PTR __cdecl IAXProto::GetCaps( int type, HANDLE hContact ) }
+HICON __cdecl IAXProto::GetIcon(int iconIndex)
+{
+ if (LOWORD(iconIndex) == PLI_PROTOCOL)
+ {
+ char icon[512];
+ mir_snprintf(icon, MAX_REGS(icon), "%s_main", m_szModuleName);
+
+ return IcoLib_LoadIcon(icon, TRUE);
+ }
+
+ return NULL;
+}
+
+
INT_PTR __cdecl IAXProto::SetStatus( int iNewStatus )
{
if (m_iStatus == iNewStatus)
|