ximpfw/tsrc/tsrcutils/testcaseutils/prfwgeneralwaiter.h
changeset 51 61fad867f68e
equal deleted inserted replaced
-1:000000000000 51:61fad867f68e
       
     1 /*
       
     2 * Copyright (c) 2006 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:  XIMP Framework Test code 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPRFWTESTGENERALWAITER_H
       
    21 #define CPRFWTESTGENERALWAITER_H 
       
    22 
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 class T_MWaitObserver;
       
    28 
       
    29 
       
    30 /**
       
    31  * ?one_line_short_description
       
    32  *
       
    33  * ?more_complete_description
       
    34  *
       
    35  * @lib ?library
       
    36  * @since S60 v4.0
       
    37  */
       
    38 class CXIMPTestGeneralWaiter : public CActive
       
    39     {
       
    40 public:
       
    41 
       
    42     IMPORT_C static CXIMPTestGeneralWaiter* NewL( T_MWaitObserver* aObserver );
       
    43 
       
    44 
       
    45     virtual ~CXIMPTestGeneralWaiter();
       
    46 
       
    47 
       
    48 private:
       
    49 
       
    50     CXIMPTestGeneralWaiter( T_MWaitObserver* aObserver );
       
    51     void ConstructL();
       
    52 
       
    53 
       
    54 public:
       
    55 
       
    56     /**
       
    57      * ?description
       
    58      *
       
    59      * @since S60 ?S60_version
       
    60      * @param ?arg1 ?description
       
    61      * @param ?arg2 ?description
       
    62      * @return ?description
       
    63      */
       
    64     IMPORT_C void WaitForL( TInt aSeconds );
       
    65 
       
    66 
       
    67 private:
       
    68 
       
    69     void RunL();
       
    70 
       
    71 
       
    72     void DoCancel();
       
    73 
       
    74 
       
    75     TInt RunErrorL( TInt aError );
       
    76 
       
    77 
       
    78 private: // data
       
    79 
       
    80 
       
    81     T_MWaitObserver* iObserver;
       
    82 
       
    83     RTimer iTimer;
       
    84 
       
    85     };
       
    86 
       
    87 #endif // CPRFWTESTGENERALWAITER_H