vmbx/vmbxengine/src/dialogwaiter.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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 #include "vmbxlogger.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ==================================================
       
    23 
       
    24 // ----------------------------------------------------------------------------
       
    25 // DialogWaiter::wait
       
    26 // 
       
    27 // ----------------------------------------------------------------------------
       
    28 //
       
    29 HbAction* DialogWaiter::wait()
       
    30 {
       
    31     VMBLOGSTRING("DialogWaiter::wait=>")
       
    32     mLoop.exec();
       
    33     HbAction* a=mResult;
       
    34     mResult=0;
       
    35     VMBLOGSTRING2("VMBX: DialogWaiter::wait action a %d <=",a)
       
    36     return a;
       
    37 }
       
    38 
       
    39 // ----------------------------------------------------------------------------
       
    40 // DialogWaiter::done
       
    41 // 
       
    42 // ----------------------------------------------------------------------------
       
    43 //
       
    44 void DialogWaiter::done(HbAction* result)
       
    45 {
       
    46     VMBLOGSTRING("DialogWaiter::done=>")
       
    47     mResult=result;
       
    48     mLoop.quit();
       
    49     VMBLOGSTRING("DialogWaiter::done<=")
       
    50 }
       
    51 
       
    52 //End of file