mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 03:32:40 +00:00
38 lines
995 B
Objective-C
38 lines
995 B
Objective-C
//
|
|
// KdbEntry+Undo.h
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 12.05.13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "Kdb.h"
|
|
|
|
APPKIT_EXTERN NSString *const MPEntryTitleUndoableKey;
|
|
APPKIT_EXTERN NSString *const MPEntryUsernameUndoableKey;
|
|
APPKIT_EXTERN NSString *const MPEntryPasswordUndoableKey;
|
|
APPKIT_EXTERN NSString *const MPEntryUrlUndoableKey;
|
|
APPKIT_EXTERN NSString *const MPEntryNotesUndoableKey;
|
|
|
|
|
|
@interface KdbEntry (Undo)
|
|
|
|
+ (NSUndoManager *)undoManager;
|
|
|
|
- (NSString *)titleUndoable;
|
|
- (NSString *)usernameUndoable;
|
|
- (NSString *)passwordUndoable;
|
|
- (NSString *)urlUndoable;
|
|
- (NSString *)notesUndoable;
|
|
|
|
- (void)setTitleUndoable:(NSString *)title;
|
|
- (void)setUsernameUndoable:(NSString *)username;
|
|
- (void)setPasswordUndoable:(NSString *)password;
|
|
- (void)setUrlUndoable:(NSString *)url;
|
|
- (void)setNotesUndoable:(NSString *)notes;
|
|
|
|
- (void)moveToIndexUndoable:(NSNumber *)index;
|
|
- (void)moveToGroupUndoable:(KdbGroup *)newGroup;
|
|
|
|
@end
|