source: branches/CoreData/SapphireFrappliance/Settings/SapphireSettings.h @ 814

Revision 814, 4.0 KB checked in by gbooker, 5 years ago (diff)

Restructured the settings so that it is easier to understand.

Line 
1/*
2 * SapphireSettings.h
3 * Sapphire
4 *
5 * Created by pnmerrill on Jun. 23, 2007.
6 * Copyright 2007 Sapphire Development Team and/or www.nanopi.net
7 * All rights reserved.
8 *
9 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
10 * General Public License as published by the Free Software Foundation; either version 3 of the License,
11 * or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
14 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
15 * Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with this program; if not,
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 */
20
21#import <SapphireCompatClasses/SapphireMediaMenuController.h>
22
23/*!
24 * @brief The Settings
25 *
26 * This class contains all the settings for the frapp.  It is also a subclass of SapphireMediaMenuController so it has the ability to provide a UI for them as well.
27 */
28@interface SapphireSettings : SapphireMediaMenuController
29{
30        NSArray                                         *settings;                              /*!< @brief Settings for the UI*/
31        NSMutableDictionary                     *options;                               /*!< @brief The settings, in order*/
32        NSString                                        *path;                                  /*!< @brief The persistent store path*/
33        NSDictionary                            *defaults;                              /*!< @brief The default settings, in order*/
34        NSManagedObjectContext          *moc;                                   /*!< @brief The context*/
35        int                                                     lastCommand;                    /*!< @brief The last command issued*/
36}
37
38/*!
39 * @brief Get the shared settings object
40 *
41 * This will not create the shared instance.
42 *
43 * @return The settings object
44 */
45+ (SapphireSettings *)sharedSettings;
46
47/*!
48 * @brief Allow the shared settings object to be freed
49 */
50+ (void)relinquishSettings;
51
52
53/*!
54 * @brief Create a settings object
55 *
56 * @param scene The scene
57 * @param dictionaryPath The path of the saved setting
58 * @param context The managed object context
59 * @return The settings object
60 */
61- (id) initWithScene: (BRRenderScene *) scene settingsPath:(NSString *)dictionaryPath context:(NSManagedObjectContext *)context;
62
63/*!
64 * @brief Returns whether to display unwatched
65 *
66 * @return YES if set, NO otherwise
67 */
68- (BOOL)displayUnwatched;
69
70/*!
71 * @brief Returns whether to display favorites
72 *
73 * @return YES if set, NO otherwise
74 */
75- (BOOL)displayFavorites;
76
77/*!
78 * @brief Returns whether to display top shows
79 *
80 * @return YES if set, NO otherwise
81 */
82- (BOOL)displayTopShows;
83
84/*!
85 * @brief Returns whether to display spoilers
86 *
87 * @return YES if set, NO otherwise
88 */
89- (BOOL)displaySpoilers;
90
91/*!
92 * @brief Returns whether to display audio info
93 *
94 * @return YES if set, NO otherwise
95 */
96- (BOOL)displayAudio;
97
98/*!
99 * @brief Returns whether to display video info
100 *
101 * @return YES if set, NO otherwise
102 */
103- (BOOL)displayVideo;
104
105/*!
106 * @brief Returns whether to display poster chooser
107 *
108 * @return YES if set, NO otherwise
109 */
110- (BOOL)displayPosterChooser;
111
112/*!
113 * @brief Returns whether to disable UI quit
114 *
115 * @return YES if set, NO otherwise
116 */
117- (BOOL)disableUIQuit;
118
119/*!
120 * @brief Returns whether to disable anonymous reporting
121 *
122 * @return YES if set, NO otherwise
123 */
124- (BOOL)disableAnonymousReporting;
125
126/*!
127 * @brief Returns whether to use AC3 passthrough
128 *
129 * @return YES if set, NO otherwise
130 */
131- (BOOL)useAC3Passthrough;
132
133/*!
134 * @brief Returns whether to use fast directory switching
135 *
136 * @return YES if set, NO otherwise
137 */
138- (BOOL)fastSwitching;
139
140/*!
141 * @brief Returns whether to use directory based lookup
142 *
143 * @return YES if set, NO otherwise
144 */
145- (BOOL)dirLookup;
146
147/*!
148 * @brief Returns whether auto-selection for movies/shows is in use
149 *
150 * @return YES if set, NO otherwise
151 */
152- (BOOL)autoSelection;
153
154/*!
155 * @brief Returns the index of the last predicate used
156 *
157 * @return The index of the last predicate used
158 */
159- (int)indexOfLastPredicate;
160
161/*!
162 * @brief Sets the index of the last predicate
163 *
164 * @param index The index of the last predicate used
165 */
166- (void)setIndexOfLastPredicate:(int)index;
167@end
Note: See TracBrowser for help on using the repository browser.