"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/shared/SerialKeyType.cpp" between
synergy-core-1.14.4.37-stable.tar.gz and synergy-core-1.14.5.13-stable.tar.gz

About: Synergy is software for sharing one mouse and one keyboard between multiple computers on your desk allowing to seamlessly move the mouse cursor from one screen to another (works on Linux, Windows and Mac OS X). Synergy 1.

SerialKeyType.cpp  (synergy-core-1.14.4.37-stable):SerialKeyType.cpp  (synergy-core-1.14.5.13-stable)
skipping to change at line 22 skipping to change at line 22
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "SerialKeyType.h" #include "SerialKeyType.h"
const std::string SerialKeyType::TRIAL = "trial"; const std::string SerialKeyType::TRIAL = "trial";
const std::string SerialKeyType::SUBSCRIPTION = "subscription"; const std::string SerialKeyType::SUBSCRIPTION = "subscription";
const std::string SerialKeyType::MAINTENANCE = "maintenance";
SerialKeyType::SerialKeyType() SerialKeyType::SerialKeyType()
{ {
} }
void void
SerialKeyType::setKeyType(const std::string& Type) SerialKeyType::setKeyType(const std::string& Type)
{ {
m_isTrial = false; m_isTrial = (Type == SerialKeyType::TRIAL);
m_isTemporary = false; m_isTemporary = (m_isTrial || (Type == SerialKeyType::SUBSCRIPTION));
m_isMaintenance = (Type == SerialKeyType::MAINTENANCE);
if (Type == SerialKeyType::TRIAL){
m_isTrial = true;
m_isTemporary = true;
}
else if (Type == SerialKeyType::SUBSCRIPTION){
m_isTemporary = true;
}
} }
bool bool
SerialKeyType::isTrial() const SerialKeyType::isTrial() const
{ {
return m_isTrial; return m_isTrial;
} }
bool bool
SerialKeyType::isTemporary() const SerialKeyType::isTemporary() const
{ {
return m_isTemporary; return m_isTemporary;
} }
bool bool
SerialKeyType::isPermanent() const SerialKeyType::isMaintenance() const
{ {
return (!m_isTemporary); return m_isMaintenance;
} }
 End of changes. 4 change blocks. 
12 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)