messagingapp/msgutils/unieditorutils/editorgenutils/inc/MuiuOperationWait.h
changeset 25 84d9eb65b26f
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
       
     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: Allows a synchronous wait on a operation
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef __MUIUOPERATIONWAIT_H__
       
    19 #define __MUIUOPERATIONWAIT_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include "muiuutilsdefines.h"
       
    23 #include <e32base.h>
       
    24 #include <e32const.h>
       
    25 
       
    26 QT_BEGIN_HEADER
       
    27 
       
    28 QT_BEGIN_NAMESPACE
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *
       
    33 * Deprecated! Use internal CMsgOperationWait instead!
       
    34 *
       
    35 * Allows a synchronous wait on a operation.
       
    36 */
       
    37 class MUIU_UTILS_EXPORT CMuiuOperationWait: public CActive
       
    38     {
       
    39     public:
       
    40         static CMuiuOperationWait* NewLC( TInt aPriority = EPriorityStandard );
       
    41         ~CMuiuOperationWait();
       
    42         void Start();
       
    43     protected:
       
    44         CMuiuOperationWait( TInt aPriority );
       
    45         void RunL();
       
    46         void DoCancel();
       
    47     protected:
       
    48         CActiveSchedulerWait iWait;
       
    49     };
       
    50 
       
    51 QT_END_NAMESPACE
       
    52 
       
    53 QT_END_HEADER
       
    54 
       
    55 #endif //__MUIUOPERATIONWAIT_H__
       
    56 
       
    57 // End of file