mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
72adb320ea
shared object owned by the main controller so other objects can easily get to it to ask about prefs. reworked the code that gets the homepage so that it conditionally checks if it should check the startup page mode (obviously the home button doesn't want that). bug# 148936.
29 lines
663 B
Objective-C
29 lines
663 B
Objective-C
//
|
|
// CHPreferenceManager.h
|
|
// Chimera
|
|
//
|
|
// Created by William Dell Wisner on Wed Apr 17 2002.
|
|
// Copyright (c) 2001 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Carbon/Carbon.h>
|
|
|
|
@interface CHPreferenceManager : NSObject {
|
|
NSUserDefaults *defaults;
|
|
ICInstance internetConfig;
|
|
}
|
|
|
|
+ (CHPreferenceManager *)sharedInstance;
|
|
|
|
- (id) init;
|
|
- (void) dealloc;
|
|
- (BOOL) initInternetConfig;
|
|
- (BOOL) initMozillaPrefs;
|
|
- (void) syncMozillaPrefs;
|
|
// - (BOOL) getICBoolPref:(ConstStr255Param) prefKey;
|
|
- (NSString *) getICStringPref:(ConstStr255Param) prefKey;
|
|
- (NSString *) homePage:(BOOL) checkStartupPagePref;
|
|
|
|
@end
|