notes/notesui/notesapplication/src/main.cpp
changeset 23 fd30d51f876b
parent 18 c198609911f9
child 45 b6db4fd4947b
equal deleted inserted replaced
18:c198609911f9 23:fd30d51f876b
    14 * Description: Contains main, the entry point for notes application.
    14 * Description: Contains main, the entry point for notes application.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // System includes
    18 // System includes
    19 #include <qdebug.h>
       
    20 #include <QScopedPointer>
    19 #include <QScopedPointer>
    21 #include <QTranslator>
    20 #include <QTranslator>
    22 #include <hbapplication.h>
    21 #include <hbapplication.h>
    23 #include <hbmainwindow.h>
    22 #include <hbmainwindow.h>
    24 
    23 
    31 	Responsible for constructing the NotesAppController object and showing the
    30 	Responsible for constructing the NotesAppController object and showing the
    32 	main window.
    31 	main window.
    33  */
    32  */
    34 int main(int argc, char *argv[])
    33 int main(int argc, char *argv[])
    35 {
    34 {
    36 	qDebug() << "notes: main -->";
       
    37 
       
    38 	// Create and initialize an HbApplication instance
    35 	// Create and initialize an HbApplication instance
    39 	HbApplication app(argc, argv);
    36 	HbApplication app(argc, argv);
    40 
    37 
    41 	// Main window for providing the scene context
    38 	// Main window for providing the scene context
    42 	HbMainWindow window;
    39 	HbMainWindow window;
    53 	QScopedPointer<NotesAppController> controller(new NotesAppController);
    50 	QScopedPointer<NotesAppController> controller(new NotesAppController);
    54 	Q_UNUSED(controller)
    51 	Q_UNUSED(controller)
    55 
    52 
    56 	// Show the main window.
    53 	// Show the main window.
    57 	window.show();
    54 	window.show();
    58 
       
    59 	qDebug() << "notes: main <--";
       
    60 
       
    61 	// Start the event loop for the application
    55 	// Start the event loop for the application
    62 	return app.exec();
    56 	return app.exec();
    63 }
    57 }
    64 
    58 
    65 // End of file	--Don't remove this.
    59 // End of file	--Don't remove this.