mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
34 lines
773 B
Objective-C
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
|
|
|