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