camerauis/cameraxui/cxui/src/cxuisettingdialog.cpp
changeset 19 d9aefe59d544
child 21 fa6d9f75d6a6
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     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 #include <HbAction>
       
    19 #include "cxutils.h"
       
    20 #include "CxuiSettingDialog.h"
       
    21 
       
    22 CxuiSettingDialog::CxuiSettingDialog(QGraphicsItem *parent)
       
    23     : HbDialog(parent),
       
    24       mAction(NULL)
       
    25 {
       
    26 }
       
    27 
       
    28 CxuiSettingDialog::~CxuiSettingDialog()
       
    29 {
       
    30 }
       
    31 
       
    32 void CxuiSettingDialog::setStarterAction(HbAction *action)
       
    33 {
       
    34     mAction = action;
       
    35 }
       
    36 
       
    37 void CxuiSettingDialog::showEvent(QShowEvent *event)
       
    38 {
       
    39     emit dialogAboutToShow(mAction);
       
    40     HbDialog::showEvent(event);
       
    41 }
       
    42 
       
    43 
       
    44 void CxuiSettingDialog::closeEvent(QCloseEvent *event)
       
    45 {
       
    46     HbDialog::closeEvent(event);
       
    47     emit dialogAboutToClose(mAction);
       
    48 }
       
    49 
       
    50 // end of file