traceservices/tracefw/ulogger/src/uloggerserver/uloggerwatcher.h
changeset 0 08ec8eefde2f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/traceservices/tracefw/ulogger/src/uloggerserver/uloggerwatcher.h	Fri Jan 22 11:06:30 2010 +0200
@@ -0,0 +1,76 @@
+// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// ULogger data watcher
+// 
+//
+
+/**
+ @file
+ @internalTechnology
+ @prototype
+*/
+
+
+#ifndef __ULOGGERWATCHER_H__
+#define __ULOGGERWATCHER_H__
+
+#include <e32base.h>
+
+namespace Ulogger
+{
+	
+
+/**MDataWatcherObserver class
+*/
+class MDataWatcherObserver
+	{
+	public:
+		virtual void DataNotification() = 0;
+		
+	};
+
+
+
+/**CULoggerWatcher class
+*/
+class CULoggerWatcher : public CActive
+	{
+	public:
+		static CULoggerWatcher* NewL();
+		static CULoggerWatcher* NewLC();
+		~CULoggerWatcher();
+		
+		//from CActive
+		void RunL();
+		
+		//own methods
+		inline TRequestStatus& GetStatus(){return iStatus;}
+		void StartWatching(MDataWatcherObserver* aObserver);
+		inline void StopWatching()
+		{
+			Cancel();
+		}
+	
+	private:
+		CULoggerWatcher();
+		void ConstructL();
+		
+		//from CActive
+		void DoCancel();
+	
+		//data 
+		MDataWatcherObserver* iObserver;
+	};
+}
+#endif //__ULOGGERWATCHER_H__