homescreenapp/hsdomainmodel/src/hssystemevents.cpp
changeset 98 e6f74eb7f69f
equal deleted inserted replaced
97:66b5fe3c07fd 98:e6f74eb7f69f
       
     1 /*
       
     2 * Copyright (c) 2010 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 #include "hssystemevents.h"
       
    19 
       
    20 /*!
       
    21     Constructor
       
    22 */
       
    23 HsSystemEvents::HsSystemEvents(QObject *parent) : QObject(parent)
       
    24 {
       
    25 
       
    26 }
       
    27 
       
    28 /*!
       
    29     Destructor
       
    30 */
       
    31 HsSystemEvents::~HsSystemEvents()
       
    32 {
       
    33 
       
    34 }
       
    35 
       
    36 /*!
       
    37     Returns the current instance.
       
    38 */
       
    39 HsSystemEvents *HsSystemEvents::instance()
       
    40 {
       
    41     if (!mInstance)
       
    42         mInstance = new HsSystemEvents();
       
    43     return mInstance;
       
    44 }
       
    45 
       
    46 void HsSystemEvents::setInstance(HsSystemEvents *instance)
       
    47 {
       
    48     delete mInstance;
       
    49     mInstance = instance;
       
    50 }
       
    51 
       
    52 /*!
       
    53     Stores the current instance.
       
    54 */
       
    55 HsSystemEvents *HsSystemEvents::mInstance = 0;