uiservicetab/vimpststorage/tsrc/vimpststorage_ut/src/s_cactive.cpp
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2007 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 #include <e32base.h>
       
    20 
       
    21 CActiveScheduler::TLoopOwner gTLoop ;
       
    22 
       
    23 TBool gSetActive = EFalse;
       
    24 /*
       
    25 	IMPORT_C ~CActive();
       
    26 	IMPORT_C void Deque();
       
    27 	IMPORT_C void SetPriority(TInt aPriority);
       
    28 	inline TBool IsAdded() const;
       
    29 	inline TInt Priority() const;
       
    30 	IMPORT_C virtual TInt RunError(TInt aError);
       
    31 	IMPORT_C virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
       
    32 */
       
    33 
       
    34 void CActive::Cancel()
       
    35     {
       
    36     iStatus.iFlags = 0;
       
    37     }
       
    38 
       
    39 CActive::CActive(TInt /*aPriority*/)
       
    40     {
       
    41     }
       
    42 
       
    43 void CActive::SetActive()
       
    44     {
       
    45     iStatus.iFlags = TRequestStatus::EActive;
       
    46     }
       
    47 
       
    48 CActive::~CActive()
       
    49     {
       
    50     }
       
    51 
       
    52 void CActive::Deque()
       
    53     {
       
    54     }
       
    55 
       
    56 void CActive::SetPriority(TInt /*aPriority*/)
       
    57     {
       
    58     }
       
    59 
       
    60 TInt CActive::RunError(TInt /*aError*/)
       
    61     {
       
    62     return KErrNone;
       
    63     }
       
    64 
       
    65 TInt CActive::Extension_(TUint /*aExtensionId*/, TAny*& /*a0*/, TAny* /*a1*/)
       
    66     {
       
    67     return KErrNone;
       
    68     }
       
    69 
       
    70 void CActiveScheduler::Add(CActive* /*aActive*/)
       
    71     {
       
    72     }
       
    73 
       
    74 
       
    75 void CPeriodic::Start(TTimeIntervalMicroSeconds32 /*aDelay*/,
       
    76                       TTimeIntervalMicroSeconds32 /*anInterval*/,
       
    77                       TCallBack /*aCallBack*/)
       
    78     {
       
    79     }
       
    80 
       
    81 
       
    82 CActiveSchedulerWait::CActiveSchedulerWait() 
       
    83 	{		
       
    84 	}
       
    85 CActiveSchedulerWait::~CActiveSchedulerWait()
       
    86 	{		
       
    87 	}
       
    88 
       
    89 void CActiveSchedulerWait::Start()
       
    90 	{
       
    91 	CActiveScheduler::TLoopOwner temp = NULL;	
       
    92 	iLoop = temp; //assign some local variable with junk value
       
    93 	}
       
    94 
       
    95 void CActiveSchedulerWait::AsyncStop()
       
    96 	{	
       
    97 	iLoop = NULL;	
       
    98 	}
       
    99 
       
   100 	
       
   101