os/graphics/graphicscomposition/surfaceupdate/tsrc/trequestorder.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef __TREQUESTORDER_H__
    23 #define __TREQUESTORDER_H__
    24 
    25 #include <e32base.h>
    26 
    27 enum TOrderType
    28     {
    29     EOrderErr = 0,
    30     EOrderBefore,
    31     EOrderComposition,
    32     EOrderAfter,
    33     };
    34 
    35 NONSHARABLE_CLASS(CRequestOrder): public CBase
    36     {
    37 public:
    38     static CRequestOrder* NewL(TInt aNumberAsynchronousRequests);
    39     ~CRequestOrder();
    40     
    41     void ResetAll();
    42     TInt GetIndex();
    43     
    44     void SetOrder(TOrderType aOrderType) ;
    45     TOrderType GetOrderType(TInt aIndex);
    46     TInt GetOrderNumber(TInt aIndex);
    47     
    48 private:
    49     void ConstructL();
    50     CRequestOrder(const TInt aNumberAsynchronousRequests);
    51 
    52     struct TOrderArray
    53         {
    54         TOrderType iType;
    55         TInt iNumber;
    56         };
    57     
    58     TInt iIndex;
    59     TInt iOrderIndexBefore;
    60     TInt iOrderIndexComposition;
    61     TInt iOrderIndexAfter;
    62     TInt iNumberAsynchronousRequests;
    63     TOrderArray* iOrderArray;
    64     RFastLock iLock;
    65     };
    66 
    67 #endif /*__TREQUESTORDER_H__*/