/.attic/sshfs-gui/AppController.h

http://macfuse.googlecode.com/ · C Header · 40 lines · 21 code · 6 blank · 13 comment · 0 complexity · 3b9c1473c2305afaab9a21c7309a01c8 MD5 · raw file

  1. // Copyright (C) 2007 Google Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import <Cocoa/Cocoa.h>
  15. @interface AppController : NSObject
  16. {
  17. IBOutlet NSPanel *connectPanel_;
  18. IBOutlet NSTextField *pathField_;
  19. IBOutlet NSTextField *serverField_;
  20. IBOutlet NSTextField *usernameField_;
  21. }
  22. - (IBAction)showConnect:(id)sender;
  23. - (IBAction)connectCancel:(id)sender;
  24. - (IBAction)connectOK:(id)sender;
  25. - (IBAction)clearRecents:(id)sender;
  26. - (void)sshConnect:(NSString *)server
  27. username:(NSString *)username
  28. path:(NSString *)path;
  29. - (void)addToRecents:(NSString *)server
  30. username:(NSString *)username
  31. path:(NSString *)path;
  32. - (void)menuNeedsUpdate:(NSMenu *)menu;
  33. - (void)connectToRecent:(id)sender;
  34. @end