linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #07059
[Branch ~dcplusplus-team/dcpp-plugin-sdk-cpp/DescriptionRotator] Rev 40: Don't reset the online timer when sending a new description
------------------------------------------------------------
revno: 40
committer: poy <poy@xxxxxxxxxx>
branch nick: DescriptionRotator
timestamp: Thu 2013-06-20 19:25:56 +0200
message:
Don't reset the online timer when sending a new description
added:
NEWS
modified:
packaging/info.xml
src/Plugin.cpp
src/Plugin.h
src/version.h
--
lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/DescriptionRotator
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/DescriptionRotator
Your team Dcplusplus-team is subscribed to branch lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/DescriptionRotator.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/DescriptionRotator/+edit-subscription
=== added file 'NEWS'
--- NEWS 1970-01-01 00:00:00 +0000
+++ NEWS 2013-06-20 17:25:56 +0000
@@ -0,0 +1,8 @@
+2.1 - 2013-06-20
+- Don't reset the online timer when sending a new description.
+
+2.0 - 2013-06-18
+- Add the ability to show the online time in the description.
+
+1.0 - 2013-06-08
+- Initial release.
=== modified file 'packaging/info.xml'
--- packaging/info.xml 2013-06-18 21:20:58 +0000
+++ packaging/info.xml 2013-06-20 17:25:56 +0000
@@ -21,7 +21,7 @@
<dcext>
<UUID>{f2a7dea1-d6bf-4759-8b46-86857c117052}</UUID>
<Name>Description rotator</Name>
- <Version>2</Version>
+ <Version>2.1</Version>
<ApiVersion>8</ApiVersion>
<Author>DC++</Author>
<Description>Rotate between multiple descriptions, show the online time.</Description>
=== modified file 'src/Plugin.cpp'
--- src/Plugin.cpp 2013-06-18 21:14:12 +0000
+++ src/Plugin.cpp 2013-06-20 17:25:56 +0000
@@ -245,7 +245,6 @@
info.sid = cmd.getFrom();
info.description = initial_desc;
info.next = 0;
- info.init = 0;
info.sending = true;
Hubs::handle()->send_protocol_cmd(hub, cmd.toString(cmd.getFrom()).c_str());
@@ -276,7 +275,6 @@
info.sid = 0;
info.description = cmd;
info.next = 0;
- info.init = 0;
info.sending = true;
Hubs::handle()->send_protocol_cmd(hub, cmd.c_str());
@@ -340,3 +338,8 @@
++counter;
}
}
+
+Plugin::HubInfo::HubInfo() :
+ init(0)
+{
+}
=== modified file 'src/Plugin.h'
--- src/Plugin.h 2013-06-18 21:14:12 +0000
+++ src/Plugin.h 2013-06-20 17:25:56 +0000
@@ -67,6 +67,7 @@
string description;
uint64_t init;
uint64_t next;
+ HubInfo();
};
unordered_map<string, HubInfo> hubs;
=== modified file 'src/version.h'
--- src/version.h 2013-06-18 21:20:58 +0000
+++ src/version.h 2013-06-20 17:25:56 +0000
@@ -35,7 +35,7 @@
/* Version of the plugin (note: not API version) */
#define PLUGIN_VERSION_MAJOR 2
-#define PLUGIN_VERSION_MINOR 0
+#define PLUGIN_VERSION_MINOR 1
/* Plugin website, set to "N/A" if none */
#define PLUGIN_WEB "http://dcplusplus.sourceforge.net/"