commonutilities/externalutility/src/glxexternalutility.cpp
changeset 23 74c9f037fd5d
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <hbmainwindow.h>
       
    21 #include "glxexternalutility.h"
       
    22 #include "glxexternalinterfacedefs.h"
       
    23 
       
    24 
       
    25 GlxExternalUtility* GlxExternalUtility::instance()
       
    26 { 
       
    27 	static GlxExternalUtility theExternalUtility;
       
    28 	return &theExternalUtility;
       
    29 }
       
    30 void GlxExternalUtility::setMainWindow(HbMainWindow* mainWindow)
       
    31 {
       
    32 	mMainWindow = mainWindow;
       
    33 }
       
    34 
       
    35 HbMainWindow* GlxExternalUtility::getMainWindow()
       
    36 {
       
    37 	return mMainWindow;
       
    38 }
       
    39 void GlxExternalUtility::setExternalData(GlxExternalData* externalData)
       
    40 {
       
    41 	mExternalData = externalData;
       
    42 }
       
    43 
       
    44 GlxExternalData* GlxExternalUtility::getExternalData()
       
    45 {
       
    46 	return mExternalData;
       
    47 }