session-ios/Signal/src/phone/signaling/CallConnectUtil_Responder.h
Craig Gidney ced4fc8947 Initial work to depend on external futures library instead of internal implementation
Still need to:
- Fix indentation
- Check for any FutureSource being returned instead of FutureSource.future
- Check for then: vs thenTry: mixups
- Check for main thread related issues
- Check for other exception catching issues
- Adjust directory layout
- Manual end-to-end testing
2014-08-20 08:08:32 -04:00

27 lines
910 B
Objective-C

#import <Foundation/Foundation.h>
#import "HttpManager.h"
#import "ResponderSessionDescriptor.h"
#import "CallController.h"
/**
*
* CallConnectUtil_Responder is a utility class that deals with the details of responding to a call:
* - Contacting the described signaling server
* - Signalling busy or ringing
* - Forwarding later signals like 'hangup'
* - Contacting the described relay server
* - Starting the zrtp handshake
* - etc
*
**/
@interface CallConnectUtil_Responder : NSObject
/// Result has type Future(CallConnectResult)
+(TOCFuture*) asyncConnectToIncomingCallWithSessionDescriptor:(ResponderSessionDescriptor*)sessionDescriptor
andCallController:(CallController*)callController;
/// Result has type Future(HttpResponse)
+(TOCFuture*) asyncSignalTooBusyToAnswerCallWithSessionDescriptor:(ResponderSessionDescriptor*)sessionDescriptor;
@end