equal
deleted
inserted
replaced
33 class ExecState; |
33 class ExecState; |
34 class UString; |
34 class UString; |
35 class ServiceEventHandler; |
35 class ServiceEventHandler; |
36 class MDeviceBinding; |
36 class MDeviceBinding; |
37 class ServiceObjectFunc; |
37 class ServiceObjectFunc; |
38 class ServiceObjectPrivate; |
38 class ServiceObject; |
39 |
39 |
|
40 class ServiceObjectPrivate : public DevicePrivateBase |
|
41 { |
|
42 friend class ServiceObject; |
|
43 friend class ServiceObjectFunc; |
|
44 public: |
|
45 ServiceObjectPrivate(ServiceObject* jsobj, HBufC8* svcName, MDeviceBinding* deviceBinding ); |
|
46 ~ServiceObjectPrivate(); |
|
47 MDeviceBinding* m_deviceBinding; // Not owned |
|
48 Identifier m_propName; |
|
49 HBufC8* m_svcName; // owned |
|
50 ServiceObject* m_jsobj; |
|
51 }; |
|
52 |
40 class ServiceObject : public JSObject |
53 class ServiceObject : public JSObject |
41 { |
54 { |
|
55 friend class ServiceObjectPrivate; |
42 friend class ServiceObjectFunc; |
56 friend class ServiceObjectFunc; |
43 |
57 |
44 public: // constructor and destructor |
58 public: // constructor and destructor |
45 |
59 |
46 /** |
60 /** |
82 TBool IsRunningCallBack(ExecState *exec); |
96 TBool IsRunningCallBack(ExecState *exec); |
83 |
97 |
84 /** |
98 /** |
85 * isValid |
99 * isValid |
86 */ |
100 */ |
87 bool isValid() const { return m_valid; } |
101 TBool isValid() const { return m_valid; } |
|
102 |
|
103 /** |
|
104 * getServiceData |
|
105 * @return DevicePrivateBase* |
|
106 * @since 7.x |
|
107 */ |
|
108 DevicePrivateBase* getServiceData() { return m_privateData; } |
88 |
109 |
89 /** |
110 /** |
90 * Get class info |
111 * Get class info |
91 * @return const ClassInfo* |
112 * @return const ClassInfo* |
92 * @since 5.0 |
113 * @since 5.0 |
101 * @since 5.0 |
122 * @since 5.0 |
102 **/ |
123 **/ |
103 virtual UString toString( ExecState* exec ) const; |
124 virtual UString toString( ExecState* exec ) const; |
104 |
125 |
105 public: |
126 public: |
106 void Close( ExecState* exec, bool unmark ); |
127 void Close(); |
107 enum |
128 enum |
108 { |
129 { |
109 close |
130 close |
110 }; |
131 }; |
111 private: |
132 private: |
112 ServiceObjectPrivate* m_privateData; // private object to hold data |
133 ServiceObjectPrivate* m_privateData; // private object to hold data |
113 bool m_valid; // object is valid or not |
134 TBool m_valid; // object is valid or not |
114 }; |
135 }; |
115 |
|
116 class ServiceObjectPrivate |
|
117 { |
|
118 friend class ServiceObject; |
|
119 friend class ServiceObjectFunc; |
|
120 public: |
|
121 ServiceObjectPrivate(HBufC8* svcName, MDeviceBinding* deviceBinding ); |
|
122 ~ServiceObjectPrivate() { Close(); } |
|
123 void Close(); |
|
124 MDeviceBinding* m_deviceBinding; // Not owned |
|
125 Identifier m_propName; |
|
126 HBufC8* m_svcName; // owned |
|
127 bool isClosing; |
|
128 }; |
|
129 |
136 |
130 class ServiceObjectFunc : public JSObject |
137 class ServiceObjectFunc : public JSObject |
131 { |
138 { |
132 |
139 |
133 public: // constructor and destructor |
140 public: // constructor and destructor |