forked from Awful/Awful.app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAwfulPrivateMessageComposeViewController.h
42 lines (30 loc) · 1.45 KB
/
AwfulPrivateMessageComposeViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// AwfulPrivateMessageComposeViewController.h
// Awful
//
// Created by Nolan Waite on 2013-02-26.
// Copyright (c) 2013 Regular Berry Software LLC. All rights reserved.
//
#import "AwfulComposeViewController.h"
#import "AwfulModels.h"
@protocol AwfulPrivateMessageComposeViewControllerDelegate;
@interface AwfulPrivateMessageComposeViewController : AwfulComposeViewController
@property (weak, nonatomic) id <AwfulPrivateMessageComposeViewControllerDelegate> delegate;
- (void)setRecipient:(NSString *)recipient;
- (void)setSubject:(NSString *)subject;
- (void)setPostIcon:(NSString *)postIcon;
- (void)setMessageBody:(NSString *)messageBody;
// If this is a reply to another message, send this to prepopulate the recipient and subject, and
// link the new message as a reply to the regardingMessage.
- (void)setRegardingMessage:(AwfulPrivateMessage *)regardingMessage;
// To forward a message, send this to prepopulate the subject and link the new message as a forward
// of the forwardedMessage.
- (void)setForwardedMessage:(AwfulPrivateMessage *)forwardedMessage;
@end
@protocol AwfulPrivateMessageComposeViewControllerDelegate <NSObject>
@optional
// Sent after successfully sending a new message.
- (void)privateMessageComposeControllerDidSendMessage:(AwfulPrivateMessageComposeViewController *)controller;
// Sent if the user cancels the message.
- (void)privateMessageComposeControllerDidCancel:(AwfulPrivateMessageComposeViewController *)controller;
@end