You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/Signal/src/call/RecentCallManager.h

35 lines
1.3 KiB
C

12 years ago
#import <Foundation/Foundation.h>
#import "RecentCall.h"
#import "PhoneManager.h"
/**
*
* RecentCallManager is used for adding and reading RecentCall objects from NSUserDefaults.
* Recent Call objects that are non-archived are to be displayed in the Inbox and persist in RecentCallViewController.
* This class also contains an observable value that can be subscribed to which gives updates.
*
*/
@interface RecentCallManager : NSObject {
@private ObservableValueController* observableRecentsController;
}
- (ObservableValue *)getObservableRecentCalls;
- (void)watchForCallsThrough:(PhoneManager*)phoneManager
untilCancelled:(TOCCancelToken*)untilCancelledToken;
12 years ago
- (void)watchForContactUpdatesFrom:(ContactsManager*) contactManager
untillCancelled:(TOCCancelToken*) cancelToken;
12 years ago
- (void)addRecentCall:(RecentCall *)recentCall;
- (void)removeRecentCall:(RecentCall *)recentCall;
- (void)archiveRecentCall:(RecentCall *)recentCall;
- (void)clearRecentCalls;
- (void)addMissedCallDueToBusy:(ResponderSessionDescriptor*)incomingCallDescriptor;
- (NSArray *)recentsForSearchString:(NSString *)optionalSearchString
andExcludeArchived:(BOOL)excludeArchived;
- (void)saveContactsToDefaults;
- (BOOL)isPhoneNumberPresentInRecentCalls:(PhoneNumber*) phoneNumber;
- (NSUInteger)missedCallCount;
@end