loadgen/inc/loadgen_loadbase.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LOADGEN_LOADBASE_H
       
    20 #define LOADGEN_LOADBASE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 #include "loadgen_loadbase.h"
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 
       
    32 
       
    33 // CLASS DECLARATIONS
       
    34 
       
    35 class CLoadBase : public CBase
       
    36     {
       
    37 public:
       
    38     enum TLoadState
       
    39         {
       
    40         ELoadStateInvalid = -1,
       
    41         ELoadStateConstructed,
       
    42         ELoadStateRunning,
       
    43         ELoadStateSuspended,
       
    44         ELoadStateClosed
       
    45         };
       
    46         
       
    47 protected: // Constructors
       
    48     CLoadBase();
       
    49     void ConstructL();
       
    50 
       
    51 public:  // New methods
       
    52     virtual void Resume();
       
    53     virtual void Suspend();
       
    54     virtual void SetPriority();
       
    55     virtual void Close();
       
    56     virtual TPtrC Description();
       
    57     inline TInt State() { return iState; }
       
    58     inline TInt Type() { return iType; }
       
    59 
       
    60 protected: // Data
       
    61     TInt iState;
       
    62     TInt iType;
       
    63     };
       
    64  
       
    65 
       
    66 #endif