videocollection/videocollectionview/tsrc/testvideooperatorservice_p/stub/inc/apgtaskstub.h
changeset 55 4bfa887905cf
equal deleted inserted replaced
50:21fe8338c6bf 55:4bfa887905cf
       
     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 #ifndef __APGTASK_H__
       
    19 #define __APGTASK_H__
       
    20 
       
    21 #include "coemainstub.h"
       
    22 #include <e32base.h>
       
    23 
       
    24 class TApaTask
       
    25 {
       
    26 public:
       
    27     TApaTask(RWsSession& /*aWsSession*/) {}
       
    28     
       
    29     TBool Exists() const { return mExistsReturnValue; }
       
    30     void BringToForeground() { mBringToForegroundCallcount++; }
       
    31 
       
    32     static bool mExistsReturnValue;
       
    33     static int mExistsCallCount;
       
    34     static int mBringToForegroundCallcount;
       
    35 };
       
    36 
       
    37 class TApaTaskList
       
    38 {
       
    39 public:
       
    40     TApaTaskList(RWsSession& /*aWsSession*/) {}
       
    41     TApaTask FindApp(TUid /*aAppUid*/) { mFindAppCallCount++; return TApaTask(CCoeEnv::mSession); }
       
    42 
       
    43     static int mFindAppCallCount;
       
    44 };
       
    45 
       
    46 #endif
       
    47 
       
    48 // End of file