|
From: <ane...@us...> - 2011-11-12 03:20:35
|
Revision: 939
http://vision.svn.sourceforge.net/vision/?rev=939&view=rev
Author: anevilyak
Date: 2011-11-12 03:20:28 +0000 (Sat, 12 Nov 2011)
Log Message:
-----------
Fix some gcc4 build issues + update notifications to take into account recent API changes.
Modified Paths:
--------------
trunk/Vision/Makefile.gcc4
trunk/Vision/src/ChannelAgent.cpp
trunk/Vision/src/MessageAgent.cpp
trunk/Vision/src/ParseCmd.cpp
trunk/Vision/src/ParseENums.cpp
trunk/Vision/src/ServerAgent.cpp
Modified: trunk/Vision/Makefile.gcc4
===================================================================
--- trunk/Vision/Makefile.gcc4 2011-11-02 16:44:20 UTC (rev 938)
+++ trunk/Vision/Makefile.gcc4 2011-11-12 03:20:28 UTC (rev 939)
@@ -16,7 +16,7 @@
# the file name, ...
BINARY := Vision
-VERSION := 0.9.8-20100726
+VERSION := 0.9.8-20111111
BUILDDATE := $(shell date +%b_%d_%Y)
BUILD_TYPE := Release
Modified: trunk/Vision/src/ChannelAgent.cpp
===================================================================
--- trunk/Vision/src/ChannelAgent.cpp 2011-11-02 16:44:20 UTC (rev 938)
+++ trunk/Vision/src/ChannelAgent.cpp 2011-11-12 03:20:28 UTC (rev 939)
@@ -915,14 +915,14 @@
}
BNotification notification(B_INFORMATION_NOTIFICATION);
- notification.SetApplication(BString("Vision"));
+ notification.SetGroup(BString("Vision"));
entry_ref ref = vision_app->AppRef();
notification.SetOnClickFile(&ref);
notification.SetTitle(fServerName.String());
BString content;
content << fId << " - " << theNick << " said: " << tempString;
notification.SetContent(content);
- be_roster->Notify(notification);
+ notification.Send();
}
#endif
#ifdef USE_INFOPOPPER
Modified: trunk/Vision/src/MessageAgent.cpp
===================================================================
--- trunk/Vision/src/MessageAgent.cpp 2011-11-02 16:44:20 UTC (rev 938)
+++ trunk/Vision/src/MessageAgent.cpp 2011-11-12 03:20:28 UTC (rev 939)
@@ -343,7 +343,7 @@
{
#ifdef __HAIKU__
BNotification notification(B_INFORMATION_NOTIFICATION);
- notification.SetApplication(BString("Vision"));
+ notification.SetGroup(BString("Vision"));
entry_ref ref = vision_app->AppRef();
notification.SetOnClickFile(&ref);
notification.SetTitle(fServerName.String());
@@ -358,7 +358,7 @@
content << nick << " said: " << tempString.String();
notification.SetContent(content);
- be_roster->Notify(notification);
+ notification.Send();
#endif
#ifdef USE_INFOPOPPER
if (be_roster->IsRunning(InfoPopperAppSig) == true) {
Modified: trunk/Vision/src/ParseCmd.cpp
===================================================================
--- trunk/Vision/src/ParseCmd.cpp 2011-11-02 16:44:20 UTC (rev 938)
+++ trunk/Vision/src/ParseCmd.cpp 2011-11-12 03:20:28 UTC (rev 939)
@@ -1360,7 +1360,7 @@
if (result == 0)
{
result = getnameinfo(info->ai_addr, info->ai_addrlen, addr_buf,
- sizeof(addr_buf), NULL, NULL, reverse ? NI_NAMEREQD : NI_NUMERICHOST);
+ sizeof(addr_buf), NULL, 0, reverse ? NI_NAMEREQD : NI_NUMERICHOST);
freeaddrinfo(info);
}
Modified: trunk/Vision/src/ParseENums.cpp
===================================================================
--- trunk/Vision/src/ParseENums.cpp 2011-11-02 16:44:20 UTC (rev 938)
+++ trunk/Vision/src/ParseENums.cpp 2011-11-12 03:20:28 UTC (rev 939)
@@ -407,7 +407,7 @@
{
char addr_buf[INET6_ADDRSTRLEN];
getnameinfo(info->ai_addr, info->ai_addrlen, addr_buf, sizeof(addr_buf),
- NULL, NULL, NI_NUMERICHOST);
+ NULL, 0, NI_NUMERICHOST);
fLocalip = addr_buf;
printf("Got address: %s\n", fLocalip.String());
freeaddrinfo(info);
@@ -502,7 +502,7 @@
if (offlined.Length())
{
BNotification notification(B_INFORMATION_NOTIFICATION);
- notification.SetApplication(BString("Vision"));
+ notification.SetGroup(BString("Vision"));
entry_ref ref = vision_app->AppRef();
notification.SetOnClickFile(&ref);
notification.SetTitle(fServerName.String());
@@ -515,12 +515,12 @@
notification.SetContent(content);
- be_roster->Notify(notification);
+ notification.Send();
}
if (onlined.Length())
{
BNotification notification(B_INFORMATION_NOTIFICATION);
- notification.SetApplication(BString("Vision"));
+ notification.SetGroup(BString("Vision"));
entry_ref ref = vision_app->AppRef();
notification.SetOnClickFile(&ref);
notification.SetTitle(fServerName.String());
@@ -533,7 +533,7 @@
notification.SetContent(content);
- be_roster->Notify(notification);
+ notification.Send();
}
#endif
}
Modified: trunk/Vision/src/ServerAgent.cpp
===================================================================
--- trunk/Vision/src/ServerAgent.cpp 2011-11-02 16:44:20 UTC (rev 938)
+++ trunk/Vision/src/ServerAgent.cpp 2011-11-12 03:20:28 UTC (rev 939)
@@ -784,7 +784,7 @@
socklen_t slen = sizeof(storage);
getsockname(fConnectionID, (struct sockaddr *)&storage, &slen);
char buf[128];
- getnameinfo(reinterpret_cast<sockaddr *>(&storage), slen, buf, sizeof(buf), NULL, NULL, NI_NUMERICHOST);
+ getnameinfo(reinterpret_cast<sockaddr *>(&storage), slen, buf, sizeof(buf), NULL, 0, NI_NUMERICHOST);
fLocalip = buf;
fLocalip_private = PrivateIPCheck(buf);
if (fLocalip_private && vision_app->GetBool("dccPrivateCheck"))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|