/* * GNUnet Setup (Cocoa UI) * Copyright (C) 2009 Heikki Lindholm * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ #import #import #include #include @interface GNSetupAssistant : NSObject { struct GNUNET_GE_Context *errorContext; struct GNUNET_GNS_Context *gnsContext; struct GNUNET_GC_Configuration *config; NSMutableArray *gnsOptionsArray; char *configFilename; AuthorizationRef authRef; BOOL isPreauthorized; IBOutlet NSWindow *window; IBOutlet NSTabView *tabView; } - (id)init; - (void)awakeFromNib; - (struct GNUNET_GC_Configuration *)gnunetGCConfiguration; - (struct GNUNET_GE_Context *)gnunetGEContext; - (BOOL)setConfigurationOption:(const char *)option inSection:(const char *)section toValue:(const char *)value fromControl:(NSControl *)control; - (BOOL)preauthorize; - (BOOL)isAuthorized; //- (AuthorizationRef)authorization; - (int)saveConfig; - (int)privilegedSaveConfig; - (int)createUserGroup; - (int)setupAutostart; - (void)nextPage; - (void)previousPage; - (void)finishSetup; - (void)displayErrorAlert:(NSString *)message; - (void)alertDidEnd:(NSAlert *)alert returnCode:(int)returnCode contextInfo:(void *)contextInfo; - (void)applicationWillTerminate:(NSNotification *)notification; - (void)getDefaultsFrom:(struct GNUNET_GNS_TreeNode *)pos optionsTo:(NSMutableArray *)optionsArray; @end