pimappservices/calendar/tsrc/tcal_observer_manager.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 // Copyright (c) 2005-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 __TCAL_OBSERVER_MANAGER_H__
       
    17 #define __TCAL_OBSERVER_MANAGER_H__
       
    18 
       
    19 #include "tcal_observer.h"
       
    20 
       
    21 class CTestAppManager : public CTestApp, public MCalChangeCallBack2
       
    22 	{
       
    23 public:
       
    24 	static CTestAppManager* NewLC();
       
    25 	~CTestAppManager();
       
    26 	
       
    27 	void RunTestL();
       
    28 private:
       
    29 	void ConstructL();
       
    30 	
       
    31 private:
       
    32 	static TInt StopWaitingForNotification(TAny*);
       
    33 	void DoStopWaitingForNotification();
       
    34 	
       
    35 	void NextTestL();
       
    36 	void TestFetchEntryByGuidL(TCalLocalUid localId);
       
    37 	
       
    38 private: // from MCalChangeCallBack2
       
    39 	void CalChangeNotification(RArray<TCalChangeEntry>& aChangeItems);
       
    40 
       
    41 private:
       
    42 	RThread				iThread;
       
    43 	TBool				iNotified;
       
    44 	TInt				iNumChangesFound;
       
    45 	TBool				iExpectingNotification;
       
    46 	};
       
    47 	
       
    48 #endif // __TCAL_OBSERVER_MANAGER_H__