ginebra2/Application.cpp
branchGCC_SURGE
changeset 8 2e16851ffecd
parent 5 0f2326c2a325
child 9 b39122337a00
equal deleted inserted replaced
2:bf4420e9fa4d 8:2e16851ffecd
     1 /*
     1 /*
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
     4 *
     9 * Initial Contributors:
     5 * This program is free software: you can redistribute it and/or modify
    10 * Nokia Corporation - initial contribution.
     6 * it under the terms of the GNU Lesser General Public License as published by
       
     7 * the Free Software Foundation, version 2.1 of the License.
    11 *
     8 *
    12 * Contributors:
     9 * This program is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12 * GNU Lesser General Public License for more details.
    13 *
    13 *
    14 * Description: 
    14 * You should have received a copy of the GNU Lesser General Public License
       
    15 * along with this program.  If not,
       
    16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
       
    17 *
       
    18 * Description:
    15 *
    19 *
    16 */
    20 */
    17 
       
    18 
    21 
    19 #include <QtGui>
    22 #include <QtGui>
    20 #include "Application.h"
    23 #include "Application.h"
    21 
    24 
    22 /* Application wraps the QApplication class to provide a JS interface. This could be implemented 
    25 /* Application wraps the QApplication class to provide a JS interface. This could be implemented
    23  * as a derived class, but this would force the application developer to use this class instead 
    26  * as a derived class, but this would force the application developer to use this class instead
    24  * of QApplication.
    27  * of QApplication.
    25  */
    28  */
    26 
    29 
    27 namespace GVA {
    30 namespace GVA {
    28 
    31 
    43 {
    46 {
    44   m_app->quit();
    47   m_app->quit();
    45 }
    48 }
    46 
    49 
    47 void GinebraApplication::debug(const QString &msg) {
    50 void GinebraApplication::debug(const QString &msg) {
    48 	  qDebug() << msg;
    51       qDebug() << msg;
    49 }
    52 }
    50 
    53 
    51 }
    54 }