wvuing/wvuipresence/src/TCARequestQueue.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  Request queue handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCAREQUESTQUEUE_H
       
    21 #define TCAREQUESTQUEUE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Request queue handler
       
    30 *
       
    31 *  @lib CAPresence.lib
       
    32 *  @since 2.1
       
    33 */
       
    34 class TCARequestQueue
       
    35     {
       
    36     public: // Enums
       
    37         enum TWaitCategory
       
    38             {
       
    39             EFetcherWait,
       
    40             EPublisherWait,
       
    41             EContactListUpdater,
       
    42             EAttributeListUpdater,
       
    43             EDecodeAttrWait,
       
    44             EAppendContactsWait,
       
    45             EReactiveAuthWait,
       
    46             ENoWaitNeeded    // This can be used to tell if wait is needed.
       
    47             };
       
    48 
       
    49     public: // New functions
       
    50 
       
    51         void WaitForResponseL( TWaitCategory aCategory );
       
    52         void ResponseReceived( TWaitCategory aCategory );
       
    53 
       
    54     private:
       
    55         CActiveSchedulerWait* Wait( TWaitCategory aCategory );
       
    56 
       
    57     private:    // Data
       
    58         CActiveSchedulerWait iFetcherWait;
       
    59         CActiveSchedulerWait iPublisherWait;
       
    60         CActiveSchedulerWait iContactListUpdaterWait;
       
    61         CActiveSchedulerWait iAttributeListUpdaterWait;
       
    62         CActiveSchedulerWait iDecodeAttrWait;
       
    63         CActiveSchedulerWait iAppendContactsWait;
       
    64         CActiveSchedulerWait iReactiveAuthWait;
       
    65     };
       
    66 
       
    67 #endif      // TCAREQUESTQUEUE_H
       
    68 
       
    69 // End of File