equal
deleted
inserted
replaced
19 #ifndef __DEVICELIWRESULT_H |
19 #ifndef __DEVICELIWRESULT_H |
20 #define __DEVICELIWRESULT_H |
20 #define __DEVICELIWRESULT_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 |
30 */ |
31 */ |
31 |
32 |
32 |
33 |
33 namespace KJS |
34 namespace KJS |
34 { |
35 { |
35 class DeviceLiwResultPrivate; |
36 class DeviceLiwResult; |
|
37 |
|
38 class DeviceLiwResultPrivate : public DevicePrivateBase |
|
39 { |
|
40 friend class DeviceLiwResult; |
|
41 friend class DeviceLiwResultFunc; |
|
42 public: |
|
43 DeviceLiwResultPrivate(DeviceLiwResult* jsobj); |
|
44 ~DeviceLiwResultPrivate(); |
|
45 Identifier m_propName; |
|
46 DeviceLiwResult* m_jsobj; // not owned |
|
47 }; |
|
48 |
36 class DeviceLiwResult: public JSObject |
49 class DeviceLiwResult: public JSObject |
37 { |
50 { |
38 |
51 friend class DeviceLiwResultPrivate; |
39 public: // constructor and destructor |
52 public: // constructor and destructor |
40 |
53 |
41 /** |
54 /** |
42 * Constructor |
55 * Constructor |
43 * @return none |
56 * @return none |
79 /** |
92 /** |
80 * whether this object is valid |
93 * whether this object is valid |
81 * @return boolean |
94 * @return boolean |
82 * @since 5.0 |
95 * @since 5.0 |
83 */ |
96 */ |
84 const bool isValid() const { return m_valid; } |
97 const TBool isValid() const { return m_valid; } |
|
98 |
|
99 /** |
|
100 * getResultData |
|
101 * @return DevicePrivateBase* |
|
102 * @since 7.x |
|
103 */ |
|
104 DevicePrivateBase* getResultData() { return m_privateData; } |
85 |
105 |
86 /** |
106 /** |
87 * close jsobject array |
107 * close jsobject array |
88 * @return |
108 * @return |
89 * @since 5.0 |
109 * @since 5.0 |
90 **/ |
110 **/ |
91 void Close(ExecState* exec, bool unmark ); |
111 void Close(); |
92 |
|
93 /** |
|
94 * close jsobject array |
|
95 * @return |
|
96 * @since 5.0 |
|
97 **/ |
|
98 void quickClose(); |
|
99 |
112 |
100 static const ClassInfo info; |
113 static const ClassInfo info; |
101 |
114 |
102 |
115 |
103 /** |
116 /** |
113 }; |
126 }; |
114 |
127 |
115 private: |
128 private: |
116 |
129 |
117 DeviceLiwResultPrivate* m_privateData; // private object to hold data |
130 DeviceLiwResultPrivate* m_privateData; // private object to hold data |
118 bool m_valid; // bject is valid or not |
131 TBool m_valid; // bject is valid or not |
119 |
132 |
120 |
133 |
121 }; |
|
122 |
|
123 class DeviceLiwResultPrivate |
|
124 { |
|
125 friend class DeviceLiwResult; |
|
126 friend class DeviceLiwResultFunc; |
|
127 public: |
|
128 DeviceLiwResultPrivate(); |
|
129 ~DeviceLiwResultPrivate() { Close(); } |
|
130 void Close(); |
|
131 Identifier m_propName; |
|
132 }; |
134 }; |
133 |
135 |
134 class DeviceLiwResultFunc : public JSObject |
136 class DeviceLiwResultFunc : public JSObject |
135 { |
137 { |
136 public: // constructor and destructor |
138 public: // constructor and destructor |