--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiSessionObject.h Tue Feb 02 07:56:43 2010 +0200
@@ -0,0 +1,60 @@
+/*
+* Copyright (c) 2006-2007 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: Declares a interface for session-attached objects
+*
+*/
+
+
+
+#ifndef __HUISESSIONOBJECT_H__
+#define __HUISESSIONOBJECT_H__
+
+#include <e32base.h>
+
+/**
+ * Interface for session-aware objects, providing a setter and getter for session id.
+ * Object type information is included too.
+ */
+class MHuiSessionObject
+ {
+public:
+ enum TType
+ {
+ ETypeVisual,
+ ETypeControl,
+ ETypeControlGroup,
+ ETypeBrush,
+ ETypeTexture,
+ ETypeRenderSurface,
+ ETypeMesh,
+ };
+
+ /**
+ * Gets the object type.
+ */
+ virtual TType Type() const = 0;
+
+ /**
+ * Gets the session id for object.
+ */
+ virtual TInt SessionId() const = 0;
+
+ /**
+ * Sets the session id for object.
+ */
+ virtual void SetSessionId(TInt aSessionId) = 0;
+ };
+
+#endif // __HUISESSIONOBJECT_H__
+