calendarui/application/src/main.cpp
author hgs
Mon, 28 Jun 2010 15:22:02 +0530
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 55 2c54b51f39c4
permissions -rw-r--r--
201025

/*
* 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.
*
*/


#include <QtGui>
#include <xqserviceutil.h>
#include <hbapplication.h>
#include <hbmainwindow.h>
#include <hbtranslator.h>
#include "calencontroller.h"
#include "calenserviceprovider.h"


 int main(int argc, char *argv[])
    {
    HbApplication app(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.
	
    CCalenController *controller = new CCalenController();

	int retValue = 0;
	if (controller) {
	    controller->constructController();
    	// Create the Calendar service provider
	    CalenServiceProvider service(controller);
    
    	retValue = app.exec();
    
	    // delete the controller
    	controller->ReleaseCustomisations();
	    controller->Release();
	}
    return retValue;
    }


 //End of file