~ubuntu-branches/debian/squeeze/pcsx-df/squeeze

« back to all changes in this revision

Viewing changes to plugins/dfbinimage/Preferences.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Schultz
  • Date: 2007-10-16 15:10:58 UTC
  • Revision ID: james.westby@ubuntu.com-20071016151058-l0x8seo83invlwgf
Tags: upstream-1.813
ImportĀ upstreamĀ versionĀ 1.813

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/************************************************************************
 
2
 
 
3
Preferences.hpp
 
4
 
 
5
Copyright (C) 2007 Virus
 
6
Copyright (C) 2002 mooby
 
7
 
 
8
This program is free software; you can redistribute it and/or
 
9
modify it under the terms of the GNU General Public License
 
10
as published by the Free Software Foundation; either version 2
 
11
of the License, or (at your option) any later version.
 
12
 
 
13
This program is distributed in the hope that it will be useful,
 
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
GNU General Public License for more details.
 
17
 
 
18
You should have received a copy of the GNU General Public License
 
19
along with this program; if not, write to the Free Software
 
20
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
21
 
 
22
************************************************************************/
 
23
 
 
24
#pragma warning(disable:4786)
 
25
 
 
26
#ifndef PREFERENCES_HPP
 
27
#define PREFERENCES_HPP
 
28
 
 
29
#include <map>
 
30
#include <list>
 
31
#include <string>
 
32
#include <FL/Fl_Preferences.H>
 
33
 
 
34
static char* repeatString = "repeat";
 
35
static char* volumeString = "volume";
 
36
static char* autorunString = "autorun";
 
37
static char* lastrunString = "lastrun";
 
38
static char* cacheSizeString = "cachesize";
 
39
static char* cachingModeString = "cachemode";
 
40
static char* subEnableString = "subenable";
 
41
 
 
42
// these are the repeat mode strings
 
43
static char* repeatAllString = "repeatAll";
 
44
static char* repeatOneString = "repeatOne";
 
45
static char* playOneString = "playOne";
 
46
static char* oldCachingString = "old";
 
47
static char* newCachingString = "new";
 
48
 
 
49
// a wrapper for preference information.
 
50
class Preferences
 
51
{
 
52
public:
 
53
   Preferences();
 
54
   ~Preferences();
 
55
        void write();
 
56
 
 
57
private:
 
58
        void open();
 
59
        bool initialized;
 
60
 
 
61
public:
 
62
   std::map<std::string, std::string> prefsMap;
 
63
   std::list<std::string> allPrefs;
 
64
};
 
65
 
 
66
#endif