equal
deleted
inserted
replaced
19 #ifndef __DEVICELIWMAP_H |
19 #ifndef __DEVICELIWMAP_H |
20 #define __DEVICELIWMAP_H |
20 #define __DEVICELIWMAP_H |
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <object.h> |
23 #include <object.h> |
|
24 #include "Device.h" |
24 |
25 |
25 /** |
26 /** |
26 * Device |
27 * Device |
27 * |
28 * |
28 * @lib jsdevice.dll |
29 * @lib jsdevice.dll |
31 |
32 |
32 class CLiwMap; |
33 class CLiwMap; |
33 namespace KJS |
34 namespace KJS |
34 { |
35 { |
35 class CDeviceLiwBinding; |
36 class CDeviceLiwBinding; |
36 class DeviceLiwMapPrivate; |
37 class DeviceLiwMap; |
|
38 |
|
39 class DeviceLiwMapPrivate : public DevicePrivateBase |
|
40 { |
|
41 friend class DeviceLiwMap; |
|
42 friend class DeviceLiwMapFunc; |
|
43 public: |
|
44 DeviceLiwMapPrivate(DeviceLiwMap* jsobj, const CLiwMap* liwMap, CDeviceLiwBinding* liwBinding); |
|
45 ~DeviceLiwMapPrivate(); |
|
46 CDeviceLiwBinding* m_liwBinding; // not Owned |
|
47 Identifier m_propName; |
|
48 CLiwMap* m_liwMap; // not owned |
|
49 DeviceLiwMap* m_jsobj; // not owned |
|
50 }; |
|
51 |
37 class DeviceLiwMap: public JSObject |
52 class DeviceLiwMap: public JSObject |
38 { |
53 { |
39 |
54 friend class DeviceLiwMapPrivate; |
40 public: // constructor and destructor |
55 public: // constructor and destructor |
41 |
56 |
42 /** |
57 /** |
43 * Constructor |
58 * Constructor |
44 * @return none |
59 * @return none |
80 /** |
95 /** |
81 * whether this object is valid |
96 * whether this object is valid |
82 * @return boolean |
97 * @return boolean |
83 * @since 5.0 |
98 * @since 5.0 |
84 */ |
99 */ |
85 const bool isValid() const { return m_valid; } |
100 const TBool isValid() const { return m_valid; } |
86 |
101 |
|
102 /** |
|
103 * getMapData |
|
104 * @return DevicePrivateBase* |
|
105 * @since 7.x |
|
106 */ |
|
107 DevicePrivateBase* getMapData() { return m_privateData; } |
|
108 |
87 /** |
109 /** |
88 * close jsobject array |
110 * close jsobject array |
89 * @return |
111 * @return |
90 * @since 5.0 |
112 * @since 5.0 |
91 **/ |
113 **/ |
92 void Close(ExecState* exec, bool unmark ); |
114 void Close(); |
93 |
115 |
94 /** |
116 /** |
95 * toString |
117 * toString |
96 * @return UString |
118 * @return UString |
97 * @since 5.0 |
119 * @since 5.0 |
105 }; |
127 }; |
106 |
128 |
107 private: |
129 private: |
108 |
130 |
109 DeviceLiwMapPrivate* m_privateData; // private object to hold data |
131 DeviceLiwMapPrivate* m_privateData; // private object to hold data |
110 bool m_valid; // object is valid or not |
132 TBool m_valid; // object is valid or not |
111 }; |
133 }; |
112 |
134 |
113 class DeviceLiwMapPrivate |
|
114 { |
|
115 friend class DeviceLiwMap; |
|
116 friend class DeviceLiwMapFunc; |
|
117 public: |
|
118 DeviceLiwMapPrivate(const CLiwMap* liwMap, CDeviceLiwBinding* liwBinding); |
|
119 ~DeviceLiwMapPrivate() { Close(); } |
|
120 void Close(); |
|
121 CDeviceLiwBinding* m_liwBinding; // not Owned |
|
122 Identifier m_propName; |
|
123 CLiwMap* m_liwMap; // not owned |
|
124 }; |
|
125 |
|
126 class DeviceLiwMapFunc : public JSObject |
135 class DeviceLiwMapFunc : public JSObject |
127 { |
136 { |
128 public: // constructor and destructor |
137 public: // constructor and destructor |
129 |
138 |
130 /** |
139 /** |