| 1 |
1 |
jhriggs |
/*
|
| 2 |
|
|
* Copyright (c) 2009, Jim Riggs, Christian Serving, L.L.C.
|
| 3 |
|
|
* All rights reserved.
|
| 4 |
|
|
*
|
| 5 |
|
|
* Redistribution and use in source and binary forms, with or without
|
| 6 |
|
|
* modification, are permitted provided that the following conditions are
|
| 7 |
|
|
* met:
|
| 8 |
|
|
* * Redistributions of source code must retain the above copyright
|
| 9 |
|
|
* notice, this list of conditions and the following disclaimer.
|
| 10 |
|
|
* * Redistributions in binary form must reproduce the above
|
| 11 |
|
|
* copyright notice, this list of conditions and the following
|
| 12 |
|
|
* disclaimer in the documentation and/or other materials provided
|
| 13 |
|
|
* with the distribution.
|
| 14 |
|
|
* * Neither the name of Christian Serving, L.L.C. nor the names of
|
| 15 |
|
|
* its contributors may be used to endorse or promote products
|
| 16 |
|
|
* derived from this software without specific prior written
|
| 17 |
|
|
* permission.
|
| 18 |
|
|
*
|
| 19 |
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 20 |
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 21 |
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 22 |
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 23 |
|
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 24 |
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 25 |
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 26 |
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 27 |
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 28 |
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 29 |
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 30 |
|
|
*/
|
| 31 |
|
|
|
| 32 |
|
|
/*!
|
| 33 |
|
|
* @header
|
| 34 |
|
|
* Defines the <code>TruePreviewPreferencesModule</code>
|
| 35 |
|
|
* <code>NSPreferencesModule</code> subclass.
|
| 36 |
|
|
* @copyright Copyright (c) 2009 Jim Riggs, Christian Serving, L.L.C. All rights reserved.
|
| 37 |
|
|
* @version \@(#) $Id: TruePreviewPreferencesModule.h 2 2009-06-27 07:02:45Z jhriggs $
|
| 38 |
|
|
* @updated $Date: 2009-06-27 02:02:45 -0500 (Sat, 27 Jun 2009) $
|
| 39 |
|
|
*/
|
| 40 |
|
|
|
| 41 |
|
|
#import <AppKit/NSPreferences.h>
|
| 42 |
|
|
#import <AppKit/NSPreferencesModule.h>
|
| 43 |
|
|
#import <Message/MailAccount.h>
|
| 44 |
|
|
|
| 45 |
|
|
#import "TruePreview.h"
|
| 46 |
|
|
|
| 47 |
|
|
/*!
|
| 48 |
|
|
* @class
|
| 49 |
|
|
* The <code>TruePreviewPreferencesModule</code> class is the subclass of
|
| 50 |
|
|
* <code>NSPreferencesModule</code> that displays and manages preferences
|
| 51 |
|
|
* specific to the TruePreview plugin.
|
| 52 |
|
|
* @version \@(#) $Id: TruePreviewPreferencesModule.h 2 2009-06-27 07:02:45Z jhriggs $
|
| 53 |
|
|
* @updated $Date: 2009-06-27 02:02:45 -0500 (Sat, 27 Jun 2009) $
|
| 54 |
|
|
*/
|
| 55 |
|
|
@interface TruePreviewPreferencesModule : NSPreferencesModule {
|
| 56 |
|
|
#pragma mark IBOutlets
|
| 57 |
|
|
/*! @group IBOutlets */
|
| 58 |
|
|
|
| 59 |
|
|
/*!
|
| 60 |
|
|
* The <code>NSArrayController</code> containing the account information
|
| 61 |
|
|
* displayed in the TruePreview preferences panel.
|
| 62 |
|
|
*/
|
| 63 |
|
|
IBOutlet NSArrayController* fldAccountArrayController;
|
| 64 |
|
|
}
|
| 65 |
|
|
|
| 66 |
|
|
#pragma mark NSPreferencesModule instance methods
|
| 67 |
|
|
/*! @group NSPreferencesModule instance methods */
|
| 68 |
|
|
|
| 69 |
|
|
/*!
|
| 70 |
|
|
* Returns the name of the nib file containing the TruePreview preferences
|
| 71 |
|
|
* panel.
|
| 72 |
|
|
* @result
|
| 73 |
|
|
* <code>TruePreviewPreferencesPanel</code>.
|
| 74 |
|
|
*/
|
| 75 |
|
|
- (NSString*)preferencesNibName;
|
| 76 |
|
|
|
| 77 |
|
|
/*!
|
| 78 |
|
|
* Loads the account information for the TruePreview preferences panel.
|
| 79 |
|
|
*/
|
| 80 |
|
|
- (void)willBeDisplayed;
|
| 81 |
|
|
|
| 82 |
|
|
#pragma mark NSKeyValueObserving instance methods
|
| 83 |
|
|
/*! @group NSKeyValueObserving instance methods */
|
| 84 |
|
|
|
| 85 |
|
|
/*!
|
| 86 |
|
|
* Converts the account settings from the TruePreview preferences panel to a
|
| 87 |
|
|
* dictionary and saves the dictionary into the user defaults.
|
| 88 |
|
|
* @param inPath
|
| 89 |
|
|
* Unused.
|
| 90 |
|
|
* @param inObject
|
| 91 |
|
|
* Unused.
|
| 92 |
|
|
* @param inChange
|
| 93 |
|
|
* Unused.
|
| 94 |
|
|
* @param inContext
|
| 95 |
|
|
* The <code>NSArray</code> containing the account settings from the
|
| 96 |
|
|
* TruePreview preferences panel.
|
| 97 |
|
|
*/
|
| 98 |
|
|
- (void)observeValueForKeyPath:(NSString*)inPath
|
| 99 |
|
|
ofObject:(id)inObject
|
| 100 |
|
|
change:(NSDictionary*)inChange
|
| 101 |
|
|
context:(void*)inContext;
|
| 102 |
|
|
|
| 103 |
|
|
@end
|