Public Member Functions | Static Public Member Functions | Protected Attributes | Properties

DistributedCalendarAppDelegate Class Reference

Application's central class. More...

#import <DistributedCalendarAppDelegate.h>

List of all members.

Public Member Functions

(void) - showPeerList
 Used to show peer list view.
(void) - showCalendar
 Used to show calendar view.
(void) - showAddEventView
 Used to show add event view.
(void) - showCalendarBack
 Will show Calendar back.
(void) - showEventDetailView:
 Will show details of a particular event.
(void) - showEventEditView
 Will show EventEditViewController.
(void) - showEventsListViewBack
 Will show events list back.
(void) - showPolicyView
 Will show policy view.
(void) - showPolicyEditView:
 Will show policy edit view.
(void) - showPolicyPageBack
 Will show modified policy page back.
(id) - getPeerBrowser
 Will return peer browser (Bonjour service browser) from peerListViewController.
(void) - setSelectedEventIndex:
 Will set the index of event which is going to be edited/deleted.
(NSInteger) - getSelectedEventIndex
 Will return selected event index from calendarViewController.
(PeerServer *) - getPeerServer
 Will return PeerServer Reference.
(Synchronization *) - getSynchronization
 Will return reference of Synchronization class.
(AccessControl *) - getAccessControl
 Will return reference of access control class.
(void) - broadcastRequestMessageForward:
 Will call welcomeViewController's broadcastRequestMessage method.
(CalendarViewController *) - getCalendarViewController
 Will return calendarViewController.
(void) - refreshEventsList
 Will refresh Events List.

Static Public Member Functions

(DistributedCalendarAppDelegate *) + getInstance
 Used when we need the instance of this class.

Protected Attributes

UIWindow * window
 Application window where all views of application are put.
WelcomeViewControllerwelcomeViewController
 First view of the application prompting user to enter his/her name.
PeerListViewControllerpeerListViewController
 Second view of the application showing list of peers available/online.
CalendarViewControllercalendarViewController
 Lists all events in sorted order of 'Date and Time' of events.
AddEventViewControlleraddEventViewController
 View enabling user to insert new event in the calendar.
EventDetailViewControllereventDetailViewController
 User can see the details of the event and if authorized, can delete/edit an event.
EventEditViewControllereventEditViewController
 Enables user to edit the event but user will be able to save the edited event only if (s)he is authorized.
PolicyViewControllerpolicyViewController
 To manage the policy.
PolicyEditViewControllerpolicyEditViewController
 Enables user to add new rule in the policy.
UINavigationController * theNavController
 Navigation controller to navigate through all views of the application.
NSInteger selectedEventIndex
 Stores the row number corresponding to the event selected by the user for interaction between classes.

Properties

IBOutlet UIWindow * window
IBOutlet WelcomeViewControllerwelcomeViewController
IBOutlet PeerListViewControllerpeerListViewController
IBOutlet CalendarViewControllercalendarViewController
IBOutlet AddEventViewControlleraddEventViewController
IBOutlet
EventDetailViewController
eventDetailViewController
IBOutlet EventEditViewControllereventEditViewController
IBOutlet PolicyViewControllerpolicyViewController
IBOutlet PolicyEditViewControllerpolicyEditViewController
IBOutlet UINavigationController * theNavController
Synchronizationsynchronization
 Reference to Synchronization class if we want to use it's methods or variables.
AccessControlaccessControl
 Reference to AccessControl class if we want to use it's methods or variables.
PolicyDictionarypolicyDictionary
 Dictionary having the policy of all peers.
AdminLogDictionaryadminLogDictionary
 Dictionary having the adminLog of all peers.
NSInteger selectedPolicyIndex
 Stores the index of the rule in the policy which is selected in Policy view.

Detailed Description

Application's central class.


Member Function Documentation

- (void) broadcastRequestMessageForward: (NSDictionary*)  packet

Will call welcomeViewController's broadcastRequestMessage method.

Parameters:
packetPacket in the form of dictionary
- (AccessControl *) getAccessControl

Will return reference of access control class.

Returns:
Reference to class AccessControl
- (CalendarViewController *) getCalendarViewController

Will return calendarViewController.

Returns:
CalendarViewController
+ (DistributedCalendarAppDelegate *) getInstance

Used when we need the instance of this class.

Note that there will be only one instance of this class throughtout the application execution..

Returns:
Main instance of the app delegate
- (PeerBrowser *) getPeerBrowser

Will return peer browser (Bonjour service browser) from peerListViewController.

Returns:
PeerBrowser object
- (PeerServer *) getPeerServer

Will return PeerServer Reference.

Returns:
Pointer to class PeerServer
- (NSInteger) getSelectedEventIndex

Will return selected event index from calendarViewController.

Returns:
index of the event selected by the user
- (Synchronization *) getSynchronization

Will return reference of Synchronization class.

Returns:
Synchronization class reference
- (void) refreshEventsList

Will refresh Events List.

- (void) setSelectedEventIndex: (NSInteger)  eventIndex

Will set the index of event which is going to be edited/deleted.

Parameters:
eventIndexthe index of the row corresponding to an event selected by user
- (void) showAddEventView

Used to show add event view.

- (void) showCalendar

Used to show calendar view.

- (void) showCalendarBack

Will show Calendar back.

- (void) showEventDetailView: (NSInteger)  index

Will show details of a particular event.

- (void) showEventEditView
- (void) showEventsListViewBack

Will show events list back.

- (void) showPeerList

Used to show peer list view.

- (void) showPolicyEditView: (NSInteger)  selectedPolicyIndex

Will show policy edit view.

Parameters:
selectedPolicyIndexthe index of rule selected in the policy
- (void) showPolicyPageBack

Will show modified policy page back.

- (void) showPolicyView

Will show policy view.


Member Data Documentation

View enabling user to insert new event in the calendar.

Lists all events in sorted order of 'Date and Time' of events.

User can see the details of the event and if authorized, can delete/edit an event.

Enables user to edit the event but user will be able to save the edited event only if (s)he is authorized.

Second view of the application showing list of peers available/online.

Enables user to add new rule in the policy.

To manage the policy.

- (NSInteger) selectedEventIndex [protected]

Stores the row number corresponding to the event selected by the user for interaction between classes.

- (UINavigationController*) theNavController [protected]

Navigation controller to navigate through all views of the application.

First view of the application prompting user to enter his/her name.

- (UIWindow*) window [protected]

Application window where all views of application are put.


Property Documentation

- (AccessControl *) accessControl [read, write, retain]

Reference to AccessControl class if we want to use it's methods or variables.

- (IBOutlet AddEventViewController*) addEventViewController [read, write, retain]
- (AdminLogDictionary *) adminLogDictionary [read, write, retain]

Dictionary having the adminLog of all peers.

- (IBOutlet CalendarViewController*) calendarViewController [read, write, retain]
- (IBOutlet EventDetailViewController*) eventDetailViewController [read, write, retain]
- (IBOutlet EventEditViewController*) eventEditViewController [read, write, retain]
- (IBOutlet PeerListViewController*) peerListViewController [read, write, retain]
- (PolicyDictionary *) policyDictionary [read, write, retain]

Dictionary having the policy of all peers.

- (IBOutlet PolicyEditViewController*) policyEditViewController [read, write, retain]
- (IBOutlet PolicyViewController*) policyViewController [read, write, retain]
- (NSInteger) selectedPolicyIndex [read, write, assign]

Stores the index of the rule in the policy which is selected in Policy view.

- (Synchronization *) synchronization [read, write, retain]

Reference to Synchronization class if we want to use it's methods or variables.

- (IBOutlet UINavigationController*) theNavController [read, write, retain]
- (IBOutlet WelcomeViewController*) welcomeViewController [read, write, retain]
- (IBOutlet UIWindow*) window [read, write, retain]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties