sysanadatacapture/piprofiler/piprofiler/engine/inc/ProfilerErrorChecker.h
changeset 1 3ff3fecb12fe
equal deleted inserted replaced
0:f0f2b8682603 1:3ff3fecb12fe
       
     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 PROFILERERRORCHECKER_H_
       
    20 #define PROFILERERRORCHECKER_H_
       
    21 
       
    22 // CLASS DECLARATIONS
       
    23 class MProfilerErrorObserver
       
    24     {
       
    25     public: // New
       
    26         virtual void HandleProfilerErrorChangeL( TInt aError ) = 0;
       
    27     };
       
    28 
       
    29 
       
    30 class CProfilerErrorChecker : public CActive
       
    31     {
       
    32 public:
       
    33     static CProfilerErrorChecker* CProfilerErrorChecker::NewL();
       
    34     ~CProfilerErrorChecker();
       
    35     void SetObserver(MProfilerErrorObserver* aObserver);
       
    36 private:
       
    37     CProfilerErrorChecker();
       
    38     void ConstructL();
       
    39     void RunL();
       
    40     TInt RunError(TInt aError);
       
    41     void DoCancel();
       
    42 private:
       
    43     MProfilerErrorObserver*     iObserver;
       
    44     RProperty                   iErrorStatus;
       
    45     };
       
    46 
       
    47 #endif /* PROFILERERRORCHECKER_H_ */