calendarui/application/src/main.cpp
author hgs
Mon, 26 Jul 2010 13:54:38 +0530
changeset 55 2c54b51f39c4
parent 45 b6db4fd4947b
child 57 bb2d3e476f29
permissions -rw-r--r--
201029

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  main implementation.
*
*/

// system includes
#include <QtGui>
#include <hbmainwindow.h>
#include <hbtranslator.h>

// user includes
#include "calenapplication.h"

/*!
	The main() function.

	Responsible for constructing the CalenApplication object and showing the
	main window.
 */
int main(int argc, char *argv[])
{
	// Create and initialize an CalenApplication instance
	QScopedPointer<CalenApplication> application(
				new CalenApplication(argc, argv));
	//CalenApplication *application = new CalenApplication(argc, argv);

	// Main window for providing the scene context
	HbMainWindow window;
	
	//For translation, loading and installing translator
	HbTranslator translator("calendar");
	translator.loadCommon();
	
	// Backup and restore code need to write here.
	
	application->createController();

	int retValue = 0;
	
	retValue = application->execution();
	application->releaseController();
	
	return retValue;
}

//End of file