1 /* Definition of class NSExtensionItem
2    Copyright (C) 2019 Free Software Foundation, Inc.
3 
4    By: Gregory Casamento <greg.casamento@gmail.com>
5    Date: Sun Nov 10 03:59:46 EST 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 _NSExtensionItem_h_GNUSTEP_BASE_INCLUDE
26 #define _NSExtensionItem_h_GNUSTEP_BASE_INCLUDE
27 
28 #include <Foundation/NSObject.h>
29 
30 #if OS_API_VERSION(MAC_OS_X_VERSION_10_10, GS_API_LATEST)
31 
32 #if	defined(__cplusplus)
33 extern "C" {
34 #endif
35 
36 @class NSAttributedString, NSArray, NSDictionary;
37 
38 @interface NSExtensionItem : NSObject
39 {
40   NSAttributedString *_attributedTitle;
41   NSAttributedString *_attributedContentText;
42   NSArray *_attachments;
43   NSDictionary *_userInfo;
44 }
45 
46 - (NSAttributedString *) attributedTitle;
47 - (void) setAttributedTitle: (NSAttributedString *)string;
48 
49 - (NSAttributedString *) attributedContentText;
50 - (void) setAttributedContentText: (NSAttributedString *)string;
51 
52 - (NSArray *) attachments;
53 - (void) setAttachments: (NSArray *)attachments;
54 
55 - (NSDictionary *) userInfo;
56 - (void) setUserInfo: (NSDictionary *) userInfo;
57 
58 @end
59 
60 GS_EXPORT NSString * const NSExtensionItemAttributedTitleKey;
61 
62 GS_EXPORT NSString * const NSExtensionItemAttributedContentTextKey;
63 
64 GS_EXPORT NSString * const NSExtensionItemAttachmentsKey;
65 
66 #if	defined(__cplusplus)
67 }
68 #endif
69 
70 #endif	/* GS_API_MACOSX */
71 
72 #endif	/* _NSExtensionItem_h_GNUSTEP_BASE_INCLUDE */
73 
74