1/* Implementation of class NSExtensionItem
2   Copyright (C) 2019 Free Software Foundation, Inc.
3
4   By: heron
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#include <Foundation/NSExtensionItem.h>
26#include <Foundation/NSAttributedString.h>
27#include <Foundation/NSDictionary.h>
28#include <Foundation/NSArray.h>
29
30@implementation NSExtensionItem
31
32- (NSAttributedString *) attributedTitle
33{
34  return _attributedTitle;
35}
36
37- (void) setAttributedTitle: (NSAttributedString *)string
38{
39  ASSIGNCOPY(_attributedTitle, string);
40}
41
42- (NSAttributedString *) attributedContentText
43{
44  return _attributedContentText;
45}
46
47- (void) setAttributedContentText: (NSAttributedString *)string
48{
49  ASSIGNCOPY(_attributedContentText, string);
50}
51
52- (NSArray *) attachments
53{
54  return _attachments;
55}
56
57- (void) setAttachments: (NSArray *)attachments
58{
59  ASSIGNCOPY(_attachments, attachments);
60}
61
62- (NSDictionary *) userInfo
63{
64  return _userInfo;
65}
66
67- (void) setUserInfo: (NSDictionary *) userInfo
68{
69  ASSIGNCOPY(_userInfo, userInfo);
70}
71
72@end
73
74NSString * const NSExtensionItemAttributedTitleKey = @"NSExtensionItemAttributedTitleKey";
75
76NSString * const NSExtensionItemAttributedContentTextKey = @"NSExtensionItemAttributedContentTextKey";
77
78NSString * const NSExtensionItemAttachmentsKey = @"NSExtensionItemAttachmentsKey";
79
80
81
82