📄 openfireprefpane.h
字号:
//// openfirePrefPane.h// Preference panel for Openfire//// Created by Daniel Henninger on 7/7/06.// Copyright (c) 2006 Jive Software. All rights reserved.//// Concept taken from MySQL preference panel, as well as some borrowed code.//#import <PreferencePanes/PreferencePanes.h>#import <Security/Security.h>#import <SecurityInterface/SFAuthorizationView.h>#include <unistd.h>// 'ps' command to use to check for running openfire daemonchar *pscmd = "/bin/ps auxww | fgrep -v 'fgrep' | fgrep openfire/lib/startup.jar";// The path to the plist fileNSString *plistPath = @"/Library/LaunchDaemons/org.jivesoftware.openfire.plist";@interface openfirePrefPane : NSPreferencePane { IBOutlet NSButton *startButton; IBOutlet NSButton *autoStartCheckbox; IBOutlet NSButton *viewAdminButton; IBOutlet NSTextField *statusMessage; IBOutlet NSTextField *statusDescription; IBOutlet NSProgressIndicator *statusProgress; IBOutlet SFAuthorizationView *authView; NSTimer *statusTimer;}- (IBAction)toggleServer:(id)sender;- (IBAction)toggleAutoStart:(id)sender;- (IBAction)openAdminInterface:(id)sender;- (void)mainViewDidLoad;- (void)updateStatus;- (void)startServer;- (void)stopServer;- (void)checkStatus;- (BOOL)isRunning;@end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -