stifui/qt/inc/istfqtuimodel.h
branchRCL_3
changeset 20 48060abbbeaf
parent 19 d40e813b23c0
child 21 b3cee849fa46
equal deleted inserted replaced
19:d40e813b23c0 20:48060abbbeaf
     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: QT C++ based Class.
       
    15 *              IStfQtUIModel is interface of appliction data model.
       
    16 *              IStifModelEventListener is used to listen event from data model.
       
    17 *
       
    18 */
       
    19 #ifndef ISTFQTUIMODEL_H
       
    20 #define ISTFQTUIMODEL_H
       
    21 
       
    22 #include "cstfcase.h"
       
    23 #include "cstfmodule.h"
       
    24 #include <UIStoreIf.h>
       
    25 #include <UIStore.h>
       
    26 #include <UIEngine.h>
       
    27 
       
    28 class IStifModelEventListener
       
    29     {    
       
    30 public:
       
    31     virtual void OnCaseStatisticChanged() = 0; 
       
    32     virtual void OnRunningCaseChanged() = 0;
       
    33     };
       
    34 
       
    35 class IStfQtUIModel
       
    36 {  
       
    37 public:
       
    38     inline virtual ~IStfQtUIModel(){}
       
    39     virtual void ClearCasesStatus() = 0;
       
    40     virtual QList<CSTFCase> GetCasesByStatus(const TSTFCaseStatusType& type) = 0;
       
    41     virtual void AddRunningCase(const CStartedTestCase* startedCase, const CSTFCase& stfCase) = 0;
       
    42     virtual void RemoveRunningCase(const CStartedTestCase* startedCase) = 0;
       
    43     virtual void AddCaseByStatus(const TSTFCaseStatusType& type, const CSTFCase& aCase) = 0;
       
    44     virtual CSTFCase GetRunningCase(const CStartedTestCase* startedCase) = 0;
       
    45     virtual void PauseCase() = 0;
       
    46     virtual void ResumeCase() = 0;
       
    47     virtual void AbortCase() = 0;
       
    48     
       
    49     virtual void AddStifModelEventListener(IStifModelEventListener* listener) = 0;
       
    50     virtual void RemoveStifModelEventListener(IStifModelEventListener* listener) = 0;
       
    51     
       
    52 
       
    53 };
       
    54 
       
    55 #endif // ISTFQTUIMODEL_H
       
    56 
       
    57 // End of File