Skip to content

Front End Interface Guide

Donny Chen Reynolds edited this page Jun 14, 2014 · 2 revisions

MainController.m Interface and Protocol

This document contains two parts.

Part I: documents what MainController.m provides for DataManager.m to use Part II: documents what InterfaceProtocol requires DataManager to have

Part I: Provided Interface

###Login Procedures

/*
@param url NSURL object containing the authentication URL
*/
- (void)promptForLoginWithPreparedURL:(NSURL *)url;
/*
Closes login sheet after login completes
*/
- (void)closeLoginSheet; 
/*
@param url NSURL object that contains logout parameters
Instruct the front end to handle logout procedures
*/
- (void)logOutWithURL:(NSURL*)url;

###Notifications

/*
@param note DNNotification custom notification
Tells front end to send an NSNotification. Information is encapsulated in DNNotification class
*/
- (void)notifyUser:(DNNotification *)note;

##Part II: InterfaceProtocol Requirements

Clone this wiki locally