Main Page   Class Hierarchy   Data Structures   File List   Data Fields  

preferences.cpp

00001 /***************************************************************************
00002                           preferences.cpp  -  description
00003                              -------------------
00004     begin                : Wed Jan 29 2003
00005     copyright            : (C) 2003 by Michael Otto
00006     email                : Michael.Otto@saskathex.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "preferences.h"
00019  
00023 Preferences::Preferences() {
00024   autoSaveOnExit = false;
00025   saveDialogOnExit = true;
00026 }
00027 
00031 Preferences::~Preferences() {
00032 }
00033 
00034  
00035   
00036   /* Getter */  
00040 bool Preferences::getAutoSaveOnExit() const {
00041   return autoSaveOnExit;
00042 }
00043 
00047 bool Preferences::getSaveDialogOnExit() const {
00048   return saveDialogOnExit;
00049 }
00050 
00051 
00052   /* Setter */
00056 void Preferences::setAutoSaveOnExit(bool autoSaveOnExit) {
00057   Preferences::autoSaveOnExit = autoSaveOnExit;
00058 }
00059 
00063 void Preferences::setSaveDialogOnExit(bool saveDialogOnExit) {
00064   Preferences::saveDialogOnExit = saveDialogOnExit;
00065 }
00066 

Generated on Tue May 27 21:24:02 2003 for gstockcalc by doxygen1.3-rc3