mmsharing/mmshui/inc/musuiactivitymanger.h
branchRCL_3
changeset 33 bc78a40cd63c
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MUSUIACTIVITYMANGER_H
       
    21 #define MUSUIACTIVITYMANGER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 class CMusUiActivityManager : public CActive
       
    27     {
       
    28 
       
    29 public:
       
    30 
       
    31     static CMusUiActivityManager* NewL( TInt aTimeout = 60 );
       
    32 
       
    33     ~CMusUiActivityManager();
       
    34 
       
    35 
       
    36 protected:
       
    37 
       
    38     CMusUiActivityManager( TInt aTimeout );
       
    39 
       
    40     void ConstructL();
       
    41 
       
    42 
       
    43 public:     // new functions:
       
    44 
       
    45     void SetTimeout(TInt aTimeout);
       
    46 
       
    47     void Start();
       
    48 
       
    49     void Reset();
       
    50 
       
    51  
       
    52 protected: // from CActive
       
    53 
       
    54     void DoCancel();
       
    55 
       
    56     void RunL();
       
    57     
       
    58     TInt RunError( TInt aError );
       
    59 
       
    60 
       
    61 protected:
       
    62 
       
    63     RTimer iTimer;
       
    64 
       
    65     TInt iTimeout;
       
    66 
       
    67 };
       
    68 
       
    69 #endif // MUSUIACTIVITYMANGER_H
       
    70 
       
    71 // end of file