ipsservices/ipssosplugin/inc/ipsplgoperationwait.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Operation waiter for running asyncronous operations
       
    15 *                synchronously
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef IPSOPERATIONWAIT_H
       
    20 #define IPSOPERATIONWAIT_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 NONSHARABLE_CLASS( CIpsPlgOperationWait ) : public CActive
       
    26     {
       
    27     public:
       
    28     
       
    29         /**
       
    30         *
       
    31         */    
       
    32         static CIpsPlgOperationWait* NewL( TInt aPriority = EPriorityStandard );
       
    33         
       
    34         /**
       
    35         *
       
    36         */    
       
    37         static CIpsPlgOperationWait* NewLC( TInt aPriority = EPriorityStandard );
       
    38     
       
    39         /**
       
    40         *
       
    41         */
       
    42         CIpsPlgOperationWait( TInt aPriority );
       
    43 
       
    44         /**
       
    45         *
       
    46         */
       
    47         virtual ~CIpsPlgOperationWait();
       
    48 
       
    49         /**
       
    50         *
       
    51         */
       
    52         void ConstructL();
       
    53 
       
    54         /**
       
    55         *
       
    56         */
       
    57         void Start();
       
    58 
       
    59 
       
    60     protected:
       
    61 
       
    62         /**
       
    63         * From CActive
       
    64         */
       
    65         virtual void DoCancel();
       
    66 
       
    67         /**
       
    68         * From CActive
       
    69         */
       
    70         virtual void RunL();
       
    71 
       
    72     private:
       
    73         
       
    74         /**
       
    75         *
       
    76         */    
       
    77         void StopScheduler();
       
    78 
       
    79     private: // Data
       
    80 
       
    81         CActiveSchedulerWait iWait;
       
    82 
       
    83     };
       
    84 
       
    85 
       
    86 
       
    87 #endif /* IPSOPERATIONWAIT_H */