Files
MacPass/MacPass/MPPickfieldTableModel.h
2017-11-28 18:33:37 +01:00

34 lines
773 B
Objective-C

//
// MPPickfieldTableModel.h
// MacPass
//
// Created by Michael Starke on 28.11.17.
// Copyright © 2017 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@class MPDocument;
@class KPKEntry;
@interface MPPickFieldTableModelRowItem : NSObject
@property (copy) NSString *name;
@property (copy) NSString *value;
@property BOOL isGroup;
+ (instancetype)groupItemWithName:(NSString *)name;
+ (instancetype)itemWithName:(NSString *)name value:(NSString *)value;
@end
@interface MPPickfieldTableModel : NSObject
@property (copy) NSArray<MPPickFieldTableModelRowItem *> *items;
- (instancetype)initWithEntry:(KPKEntry *)entry inDocument:(MPDocument *)document;
- (MPPickFieldTableModelRowItem *)itemAtIndex:(NSUInteger)index;
@end