pimappservices/calendar/tsrc/caltestoom.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CALTESTOOM_H__
       
    17 #define __CALTESTOOM_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CCalSession;
       
    22 
       
    23 class MCalTestOomCallBack
       
    24 	{
       
    25 public:
       
    26 	enum TType
       
    27 		{
       
    28 		EClient,
       
    29 		EServer
       
    30 		};
       
    31 public:
       
    32 	virtual void OomTestL(TType aType, TInt aFailAt) = 0;
       
    33 	};
       
    34 
       
    35 class CalTestOom : public CBase
       
    36 	{
       
    37 public:
       
    38 	IMPORT_C static void OutOfMemoryTestL(MCalTestOomCallBack& aCallBack, MCalTestOomCallBack::TType aType, CCalSession& aCalSession);
       
    39 	};
       
    40 	
       
    41 #endif // __CALTESTOOM_H__