equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declares a interface for session-attached objects |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __HUISESSIONOBJECT_H__ |
|
21 #define __HUISESSIONOBJECT_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 /** |
|
26 * Interface for session-aware objects, providing a setter and getter for session id. |
|
27 * Object type information is included too. |
|
28 */ |
|
29 class MHuiSessionObject |
|
30 { |
|
31 public: |
|
32 enum TType |
|
33 { |
|
34 ETypeVisual, |
|
35 ETypeControl, |
|
36 ETypeControlGroup, |
|
37 ETypeBrush, |
|
38 ETypeTexture, |
|
39 ETypeRenderSurface, |
|
40 ETypeMesh, |
|
41 }; |
|
42 |
|
43 /** |
|
44 * Gets the object type. |
|
45 */ |
|
46 virtual TType Type() const = 0; |
|
47 |
|
48 /** |
|
49 * Gets the session id for object. |
|
50 */ |
|
51 virtual TInt SessionId() const = 0; |
|
52 |
|
53 /** |
|
54 * Sets the session id for object. |
|
55 */ |
|
56 virtual void SetSessionId(TInt aSessionId) = 0; |
|
57 }; |
|
58 |
|
59 #endif // __HUISESSIONOBJECT_H__ |
|
60 |