From 39f2c6a84cd715b11fb3ffa82a86abf2fb9bcd70 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Thu, 1 Oct 2015 17:05:29 +0200 Subject: Initial import of kooldock 0.4.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/dinfo.cpp | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/dinfo.cpp (limited to 'src/dinfo.cpp') diff --git a/src/dinfo.cpp b/src/dinfo.cpp new file mode 100644 index 0000000..f6cf476 --- /dev/null +++ b/src/dinfo.cpp @@ -0,0 +1,56 @@ +/*************************************************************************** + * Copyright (C) 2007 by bisiek * + * bisiek9@gmail.com * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#include "dinfo.h" + +dInfo::dInfo() +{ + mBool=false; + mInt=0; +} + + +dInfo::~dInfo() +{ +} + +bool dInfo::gBool() +{ + return mBool; +} + +void dInfo::sBool(bool nVal) +{ + mBool=nVal; +} + +int dInfo::gInt() +{ + return mInt; +} + +void dInfo::sInt(int nVal) +{ + mInt=nVal; +} + +void dInfo::inc(int val) +{ + mInt+=val; +} -- cgit v1.2.3