| // Copyright 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef IOS_CHROME_BROWSER_WEBUI_SHOW_MAIL_COMPOSER_CONTEXT_H_ |
| #define IOS_CHROME_BROWSER_WEBUI_SHOW_MAIL_COMPOSER_CONTEXT_H_ |
| |
| #import <Foundation/Foundation.h> |
| |
| namespace base { |
| class FilePath; |
| } |
| |
| @interface ShowMailComposerContext : NSObject |
| |
| // Mark inherited initializer as unavailable to prevent calling it by mistake. |
| - (instancetype)init NS_UNAVAILABLE; |
| |
| // Initializes a context used to open the mail composer with pre-filled |
| // recipients, subject, body. |
| - (instancetype)initWithToRecipients:(NSArray<NSString*>*)toRecipients |
| subject:(NSString*)subject |
| body:(NSString*)body |
| emailNotConfiguredAlertTitleId:(int)alertTitleId |
| emailNotConfiguredAlertMessageId:(int)alertMessageId |
| NS_DESIGNATED_INITIALIZER; |
| |
| // List of email recipients. |
| @property(strong, nonatomic, readonly) NSArray<NSString*>* toRecipients; |
| |
| // Pre-filled default email subject. |
| @property(copy, nonatomic, readonly) NSString* subject; |
| |
| // Pre-filled default email body. |
| @property(copy, nonatomic, readonly) NSString* body; |
| |
| // Path to file to attach to email. |
| @property(nonatomic, assign) const base::FilePath& textFileToAttach; |
| |
| // Identifier for alert if the email title is empty. |
| @property(nonatomic, readonly) int emailNotConfiguredAlertTitleId; |
| |
| // Identifier for alert if the email body is empty. |
| @property(nonatomic, readonly) int emailNotConfiguredAlertMessageId; |
| |
| @end |
| |
| #endif // IOS_CHROME_BROWSER_WEBUI_SHOW_MAIL_COMPOSER_CONTEXT_H_ |