00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Stephen Bridges * 00003 * widget@widget.dynu.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00024 // $Id$ 00025 00026 00027 #ifndef FILE_H 00028 #define FILE_H 00029 00030 #include <iostream> // For NULL? 00031 // #include <string> 00032 00036 typedef struct { 00038 int x; 00040 int y;// depth; 00041 } scrnsize; 00042 00044 00051 class FileConfig { 00052 scrnsize screen; 00053 bool fullScreen; 00054 char favouredfile[100]; 00055 public: 00056 FileConfig(); 00057 int loadConfig(const char *filename = NULL); 00058 int FileConfig::saveConfig(void); 00060 const scrnsize getScreenSize(void) {return screen;}; 00062 const int getScreenSizeX(void) {return screen.x;}; 00064 const int getScreenSizeY(void) {return screen.y;}; 00065 // /** Return the screen depth. */ 00066 // const int getScreenDepth(void) {return screen.depth;}; 00068 const bool getFS(void) {return fullScreen;}; 00069 ~FileConfig(); 00070 00071 }; 00072 00073 #endif 00074 00075 /* 00076 * $Log$ 00077 */ 00078 00079 // EOF