calendarui/controller/src/calendocloader.cpp
changeset 55 2c54b51f39c4
parent 51 0b38fc5b94c6
child 63 a3cb48f6c889
equal deleted inserted replaced
51:0b38fc5b94c6 55:2c54b51f39c4
    13 *
    13 *
    14 * Description:  Definition file for class CalenDocLoader.
    14 * Description:  Definition file for class CalenDocLoader.
    15  *
    15  *
    16 */
    16 */
    17 
    17 
       
    18 // System includes
       
    19 #include <HbGroupBox>
    18 
    20 
    19 // User includes
    21 // User includes
    20 #include "calendocloader.h"
    22 #include "calendocloader.h"
    21 #include "calenagendaview.h"
    23 #include "calenagendaview.h"
    22 #include "calenagendaviewwidget.h"
    24 #include "calenagendaviewwidget.h"
    25 #include "calenpreviewpane.h"
    27 #include "calenpreviewpane.h"
    26 #include "calencontroller.h"
    28 #include "calencontroller.h"
    27 #include "calenthicklinesdrawer.h"
    29 #include "calenthicklinesdrawer.h"
    28 #include "calencommon.h"
    30 #include "calencommon.h"
    29 #include "calenpluginlabel.h"
    31 #include "calenpluginlabel.h"
       
    32 #include "calendayview.h"
       
    33 #include "calendayhourscrollarea.h"
       
    34 #include "calendaycontentscrollarea.h"
    30 #include "OstTraceDefinitions.h"
    35 #include "OstTraceDefinitions.h"
    31 #ifdef OST_TRACE_COMPILER_IN_USE
    36 #ifdef OST_TRACE_COMPILER_IN_USE
    32 #include "calendocloaderTraces.h"
    37 #include "calendocloaderTraces.h"
    33 #endif
    38 #endif
    34 
    39 
   138 	} else if (name == QString(CALEN_NEXTREGIONALINFO)) {
   143 	} else if (name == QString(CALEN_NEXTREGIONALINFO)) {
   139 		QObject *calenNextRegionalLabel = new CalenPluginLabel(services);
   144 		QObject *calenNextRegionalLabel = new CalenPluginLabel(services);
   140 		calenNextRegionalLabel->setObjectName(name);
   145 		calenNextRegionalLabel->setObjectName(name);
   141 		OstTraceFunctionExit0( DUP11_CALENDOCLOADER_CREATEOBJECT_EXIT );
   146 		OstTraceFunctionExit0( DUP11_CALENDOCLOADER_CREATEOBJECT_EXIT );
   142 		return calenNextRegionalLabel;
   147 		return calenNextRegionalLabel;
       
   148 	} else if (name == QString(CALEN_DAYVIEW)) {
       
   149         QObject *calenDayView = new CalenDayView(services);
       
   150         calenDayView->setObjectName(name);
       
   151         return calenDayView;
       
   152 	} else if (name == QString(CALEN_DAYVIEW_DAYINFO)) {
       
   153 	        QObject *calenDayInfo = new HbGroupBox();
       
   154 	        calenDayInfo->setObjectName(name);
       
   155 	        return calenDayInfo;
       
   156 	} else if (name == QString(CALEN_DAYVIEW_REGIONALINFO)) {
       
   157         QObject *calenRegionalInfo = new HbGroupBox();
       
   158         calenRegionalInfo->setObjectName(name);
       
   159         return calenRegionalInfo;
       
   160     } else if (name == QString(CALEN_DAYVIEW_CONTENTWIDGET)) {
       
   161         QObject *calenContentWidget = new HbWidget();
       
   162         calenContentWidget->setObjectName(name);
       
   163         return calenContentWidget;
       
   164     } else if (name == QString(CALEN_DAYVIEW_HOURSCROLLAREA)) {
       
   165             QObject *hourScrollArea = new CalenDayHourScrollArea();
       
   166             hourScrollArea->setObjectName(name);
       
   167             return hourScrollArea;
       
   168     } else if (name == QString(CALEN_DAYVIEW_CONTENTSCROLLAREA)) {
       
   169             QObject *contentScrollArea = new CalenDayContentScrollArea();
       
   170             contentScrollArea->setObjectName(name);
       
   171             return contentScrollArea;
   143 	} else {
   172 	} else {
   144         OstTraceFunctionExit0( DUP12_CALENDOCLOADER_CREATEOBJECT_EXIT );
   173         OstTraceFunctionExit0( DUP12_CALENDOCLOADER_CREATEOBJECT_EXIT );
   145 		return HbDocumentLoader::createObject(type, name);
   174 		return HbDocumentLoader::createObject(type, name);
   146 	}
   175 	}
   147 }
   176 }