calendarui/application/src/calenserviceprovider.cpp
changeset 45 b6db4fd4947b
parent 18 c198609911f9
child 57 bb2d3e476f29
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 //#include <qdatetime.h>
    17 //#include <qdatetime.h>
    18 #include <qdebug.h>
       
    19 #include <hbmainwindow.h>
    18 #include <hbmainwindow.h>
       
    19 
       
    20 #include <CalenLauncher>
    20 
    21 
    21 #include "calencontroller.h"
    22 #include "calencontroller.h"
    22 #include "caleneditor.h"
    23 #include "caleneditor.h"
    23 #include "calenserviceprovider.h"
    24 #include "calenserviceprovider.h"
    24 
    25 
    34 {
    35 {
    35 }
    36 }
    36 
    37 
    37 void CalenServiceProvider::launchCalendarApp(const QDateTime& date, int viewId)
    38 void CalenServiceProvider::launchCalendarApp(const QDateTime& date, int viewId)
    38 {	
    39 {	
    39 	qDebug() << "launchCalendarApp slot getting called -->";
       
    40 	
    40 	
    41 	// Check the view ID and launch the corresponding view
    41 	// Check the view ID and launch the corresponding view
    42 	switch(viewId) {
    42 	switch(viewId) {
    43 		case 0:
    43 		case CalenLauncher::MonthView:
    44 			// Launch the month view
    44 			// Launch the month view
    45 			mController->handleServiceManagerSlot(ECalenMonthView, date);
    45 			mController->handleServiceManagerSlot(ECalenMonthView, date);
    46 			break;
    46 			break;
    47 		case 1:
    47 		case CalenLauncher::AgendaView:
    48 			// Launch the month view
    48 			// Launch the agenda view
    49 			mController->handleServiceManagerSlot(ECalenDayView, date);
    49 			mController->handleServiceManagerSlot(ECalenAgendaView, date);
    50 			break;
    50 			break;
    51 		default:
    51 		default:
    52 			// Keep Quiet
    52 			// Keep Quiet
    53 			break;
    53 			break;
    54 	}
    54 	}