vmbx/vmbxengine/src/dialogwaiter.cpp
changeset 19 e44a8c097b15
child 27 7eb70891911c
equal deleted inserted replaced
15:d7fc66ccd6fb 19:e44a8c097b15
       
     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: dialog waiter
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 #include "dialogwaiter.h"
       
    20 
       
    21 HbAction* DialogWaiter::wait()
       
    22 {
       
    23     mLoop.exec();
       
    24     HbAction* a=mResult;
       
    25     mResult=0;
       
    26     return a;
       
    27 }
       
    28 
       
    29 void DialogWaiter::done(HbAction* result)
       
    30 {
       
    31     mResult=result;
       
    32     mLoop.quit();
       
    33 }
       
    34