OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "me2me_preference_pane_confirm_pin.h" |
| 6 |
| 7 @implementation Me2MePreferencePaneConfirmPin |
| 8 |
| 9 @synthesize delegate = delegate_; |
| 10 |
| 11 - (id)init { |
| 12 self = [super initWithNibName:@"me2me_preference_pane_confirm_pin" |
| 13 bundle:[NSBundle bundleForClass:[self class]]]; |
| 14 return self; |
| 15 } |
| 16 |
| 17 - (void)dealloc { |
| 18 [delegate_ release]; |
| 19 [super dealloc]; |
| 20 } |
| 21 |
| 22 - (void)setEmail:(NSString*)email { |
| 23 [email_ setStringValue:email]; |
| 24 } |
| 25 |
| 26 - (void)setButtonText:(NSString*)text { |
| 27 [apply_button_ setTitle:text]; |
| 28 } |
| 29 |
| 30 - (void)setEnabled:(BOOL)enabled { |
| 31 [apply_button_ setEnabled:enabled]; |
| 32 [pin_ setEnabled:enabled]; |
| 33 } |
| 34 |
| 35 - (void)resetPin { |
| 36 [pin_ setStringValue:@""]; |
| 37 } |
| 38 |
| 39 - (void)onApply:(id)sender { |
| 40 [delegate_ applyConfiguration:self |
| 41 pin:[pin_ stringValue]]; |
| 42 } |
| 43 |
| 44 @end |
OLD | NEW |