tsrc/Apastub/src/apgtask.cpp
changeset 0 f0cf47e981f9
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     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 #include "apgtask.h"
       
    18 
       
    19 
       
    20 // =============================================================================
       
    21 // Stub variables for TApaTask
       
    22 // =============================================================================
       
    23 
       
    24 TBool TApaTask::iApplicationExist = EFalse;
       
    25 
       
    26 TInt TApaTask::iApaTaskCalledFunction = 0;
       
    27 
       
    28 
       
    29 // =============================================================================
       
    30 // Stub functions for TApaTask
       
    31 // =============================================================================
       
    32 
       
    33 TApaTask::TApaTask(RWsSession& aWsSession)
       
    34     : iWsSession( aWsSession )
       
    35     {
       
    36 
       
    37     }
       
    38 
       
    39 TBool TApaTask::Exists()
       
    40     {
       
    41     iApaTaskCalledFunction = EExists;
       
    42     return iApplicationExist;
       
    43     }
       
    44 
       
    45  void TApaTask::BringToForeground()
       
    46     {
       
    47     iApaTaskCalledFunction = EBringToForeground;
       
    48     }
       
    49  void TApaTask::SendToBackground()
       
    50     {
       
    51     iApaTaskCalledFunction = ESendToBackground;
       
    52     }
       
    53  void TApaTask::EndTask()
       
    54     {
       
    55     iApaTaskCalledFunction = EEndTask;
       
    56     }
       
    57 void TApaTask::KillTask()
       
    58     {
       
    59     iApaTaskCalledFunction = EKillTask;
       
    60     }
       
    61 
       
    62 
       
    63 
       
    64 
       
    65 
       
    66 // =============================================================================
       
    67 // Stub functions for TApaTaskList
       
    68 // =============================================================================
       
    69 
       
    70 TInt TApaTaskList::iCalledFunction = 0;
       
    71 
       
    72 
       
    73 TApaTaskList::TApaTaskList(RWsSession& aWsSession)
       
    74     : iWsSession (aWsSession)
       
    75     {
       
    76     }
       
    77     
       
    78     
       
    79 TApaTask TApaTaskList::FindApp(const TDesC& /*aAppName*/ )
       
    80     {
       
    81     return TApaTask( iWsSession );
       
    82     }
       
    83 
       
    84 TApaTask TApaTaskList::FindDoc(const TDesC& /*aDocName*/ )
       
    85     {
       
    86     return TApaTask( iWsSession );
       
    87     }
       
    88 
       
    89 TApaTask TApaTaskList::FindByPos(TInt /*aPos*/ )
       
    90     {
       
    91     return TApaTask( iWsSession );
       
    92     }
       
    93 
       
    94 TApaTask TApaTaskList::FindApp(TUid /*aAppUid*/ )
       
    95     {
       
    96     iCalledFunction = EFindApp;    
       
    97     return TApaTask( iWsSession );
       
    98     }