1 /* Definition of class NSPersonNameComponents 2 Copyright (C) 2019 Free Software Foundation, Inc. 3 4 Implemented by: Gregory Casamento <greg.casamento@gmail.com> 5 Date: Sep 2019 6 7 This file is part of the GNUstep Library. 8 9 This library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU Lesser General Public 11 License as published by the Free Software Foundation; either 12 version 2 of the License, or (at your option) any later version. 13 14 This library is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Lesser General Public License for more details. 18 19 You should have received a copy of the GNU Lesser General Public 20 License along with this library; if not, write to the Free 21 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 Boston, MA 02110 USA. 23 */ 24 25 #ifndef __NSPersonNameComponents_h_GNUSTEP_BASE_INCLUDE 26 #define __NSPersonNameComponents_h_GNUSTEP_BASE_INCLUDE 27 28 #if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST) 29 30 #import <Foundation/NSObject.h> 31 32 @class NSString; 33 34 @interface NSPersonNameComponents : NSObject <NSCopying, NSCoding> 35 { 36 @private 37 NSString *_namePrefix; 38 NSString *_givenName; 39 NSString *_middleName; 40 NSString *_familyName; 41 NSString *_nameSuffix; 42 NSString *_nickname; 43 NSPersonNameComponents *_phoneticRepresentation; 44 } 45 46 - (NSString *) namePrefix; 47 - (void) setNamePrefix: (NSString *)namePrefix; 48 - (NSString *) givenName; 49 - (void) setGivenName: (NSString *)givenName; 50 - (NSString *) middleName; 51 - (void) setMiddleName: (NSString *)middleName; 52 - (NSString *) familyName; 53 - (void) setFamilyName: (NSString *)familyName; 54 - (NSString *) nameSuffix; 55 - (void) setNameSuffix: (NSString *)nameSuffix; 56 - (NSString *) nickname; 57 - (void) setNickname: (NSString *)nickname; 58 59 - (NSPersonNameComponents *) phoneticRepresentation; 60 - (void) setPhoneticRepresentation: (NSPersonNameComponents *)pr; 61 62 @end 63 64 #endif 65 #endif 66