common/tools/ats/smoketest/graphics/wserv/inc/T_DataWsGraphic.h
changeset 833 6ffc235847d0
child 872 17498133d9ad
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/smoketest/graphics/wserv/inc/T_DataWsGraphic.h	Fri Dec 18 14:46:04 2009 +0000
@@ -0,0 +1,61 @@
+/*
+* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+
+#if (!defined __T_GRAPHICS_WSERV_WSGRAPHIC_H__)
+#define __T_GRAPHICS_WSERV_WSGRAPHIC_H__
+
+//	User Includes
+#include "DataWrapperBase.h"
+
+//	EPOC Includes
+#include <w32std.h>
+
+/**
+ * Test Active Notification class
+ *
+ */
+class CT_DataWsGraphic : public CDataWrapperBase
+	{
+public:
+	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
+
+protected:
+	/**
+	* Protected constructor. First phase construction
+	*/
+	CT_DataWsGraphic();
+
+	virtual CWsGraphic*	GetWsGraphic() const = 0;
+	virtual TInt		Share(TSecureId aClientId) = 0;
+	virtual TInt		ShareGlobally() = 0;
+	virtual TInt		UnShare(TSecureId aClientId) = 0;
+	virtual TInt		UnShareGlobally() = 0;
+
+private:
+	//	Helper methods
+	void	DoCmdDestructorL();
+	void	DoCmdDestroy();
+	void	DoCmdIdL(const TDesC& aEntry);
+	void	DoCmdIsActive(const TDesC& aEntry);
+	void	DoCmdShareGlobally();
+	void	DoCmdShare(const TDesC& aEntry);
+	void	DoCmdUnShare(const TDesC& aEntry);
+	void	DoCmdUnShareGlobally();
+	};
+
+#endif /* __T_GRAPHICS_WSERV_WSGRAPHIC_H__ */