equal
deleted
inserted
replaced
163 init(); |
163 init(); |
164 #if defined(Q_OS_SYMBIAN) |
164 #if defined(Q_OS_SYMBIAN) |
165 _LIT_SECURITY_POLICY_PASS(KRdPolicy); // all pass |
165 _LIT_SECURITY_POLICY_PASS(KRdPolicy); // all pass |
166 _LIT_SECURITY_POLICY_S0(KWrPolicy, KHbPsForegroundAppOrientationCategoryUid.iUid); // pass device dialog server |
166 _LIT_SECURITY_POLICY_S0(KWrPolicy, KHbPsForegroundAppOrientationCategoryUid.iUid); // pass device dialog server |
167 |
167 |
168 int error = mHbOriProperty.Define(KHbPsForegroundAppOrientationCategoryUid, |
168 mHbOriProperty.Define(KHbPsForegroundAppOrientationCategoryUid, |
169 KHbPsForegroundAppOrientationKey, |
169 KHbPsForegroundAppOrientationKey, |
170 RProperty::EInt, KRdPolicy, KWrPolicy); |
170 RProperty::EInt, KRdPolicy, KWrPolicy); |
171 if (error == KErrNone) { |
171 mHbOriProperty.Attach(KHbPsForegroundAppOrientationCategoryUid, |
172 mHbOriProperty.Attach(KHbPsForegroundAppOrientationCategoryUid, |
172 KHbPsForegroundAppOrientationKey); |
173 KHbPsForegroundAppOrientationKey); |
|
174 } |
|
175 #endif |
173 #endif |
176 TRACE_EXIT |
174 TRACE_EXIT |
177 } |
175 } |
178 |
176 |
179 /*! |
177 /*! |
181 Destructor. |
179 Destructor. |
182 */ |
180 */ |
183 HbDeviceDialogManagerPrivate::~HbDeviceDialogManagerPrivate() |
181 HbDeviceDialogManagerPrivate::~HbDeviceDialogManagerPrivate() |
184 { |
182 { |
185 TRACE_ENTRY |
183 TRACE_ENTRY |
186 killTimer(mHousekeeperTimerId); |
184 if (mHousekeeperTimerId) { |
|
185 killTimer(mHousekeeperTimerId); |
|
186 } |
187 #if defined(Q_OS_SYMBIAN) |
187 #if defined(Q_OS_SYMBIAN) |
188 mScene->removeItem(&mMousePressCatcher); |
188 mScene->removeItem(&mMousePressCatcher); |
189 mWindowRegion.Close(); |
189 mWindowRegion.Close(); |
190 mHbOriProperty.Close(); |
190 mHbOriProperty.Close(); |
191 #endif // Q_OS_SYMBIAN |
191 #endif // Q_OS_SYMBIAN |